Interface ServiceSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceSpecification.Builder,,ServiceSpecification> SdkBuilder<ServiceSpecification.Builder,,ServiceSpecification> SdkPojo
- Enclosing class:
ServiceSpecification
@Mutable
@NotThreadSafe
public static interface ServiceSpecification.Builder
extends SdkPojo, CopyableBuilder<ServiceSpecification.Builder,ServiceSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceSpecification.Builderec2Specification(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaEC2Specification.builder().When the
Consumercompletes,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:
-