Interface ServiceSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceSpecification.Builder,
,ServiceSpecification> SdkBuilder<ServiceSpecification.Builder,
,ServiceSpecification> SdkPojo
- Enclosing class:
ServiceSpecification
public static interface ServiceSpecification.Builder
extends SdkPojo, CopyableBuilder<ServiceSpecification.Builder,ServiceSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceSpecification.Builder
ec2Specification
(Consumer<EC2Specification.Builder> ec2Specification) The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.ec2Specification
(EC2Specification ec2Specification) The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
ec2Specification
The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.
- Parameters:
ec2Specification
- The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2Specification
default ServiceSpecification.Builder ec2Specification(Consumer<EC2Specification.Builder> ec2Specification) The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.
This is a convenience method that creates an instance of theEC2Specification.Builder
avoiding the need to create one manually viaEC2Specification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toec2Specification(EC2Specification)
.- Parameters:
ec2Specification
- a consumer that will call methods onEC2Specification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-