Interface InstanceTypeSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceTypeSpecification.Builder,,InstanceTypeSpecification> SdkBuilder<InstanceTypeSpecification.Builder,,InstanceTypeSpecification> SdkPojo
- Enclosing class:
- InstanceTypeSpecification
@Mutable
@NotThreadSafe
public static interface InstanceTypeSpecification.Builder
extends SdkPojo, CopyableBuilder<InstanceTypeSpecification.Builder,InstanceTypeSpecification>
-
Method Summary
Modifier and TypeMethodDescriptionsupportedInstanceTypes(Collection<InstanceTypeItem> supportedInstanceTypes) The instance types that the AMI supports.supportedInstanceTypes(Consumer<InstanceTypeItem.Builder>... supportedInstanceTypes) The instance types that the AMI supports.supportedInstanceTypes(InstanceTypeItem... supportedInstanceTypes) The instance types that the AMI supports.unsupportedInstanceTypes(Collection<InstanceTypeItem> unsupportedInstanceTypes) The instance types that the AMI does not support.unsupportedInstanceTypes(Consumer<InstanceTypeItem.Builder>... unsupportedInstanceTypes) The instance types that the AMI does not support.unsupportedInstanceTypes(InstanceTypeItem... unsupportedInstanceTypes) The instance types that the AMI does not support.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
-
supportedInstanceTypes
InstanceTypeSpecification.Builder supportedInstanceTypes(Collection<InstanceTypeItem> supportedInstanceTypes) The instance types that the AMI supports.
- Parameters:
supportedInstanceTypes- The instance types that the AMI supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedInstanceTypes
InstanceTypeSpecification.Builder supportedInstanceTypes(InstanceTypeItem... supportedInstanceTypes) The instance types that the AMI supports.
- Parameters:
supportedInstanceTypes- The instance types that the AMI supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedInstanceTypes
InstanceTypeSpecification.Builder supportedInstanceTypes(Consumer<InstanceTypeItem.Builder>... supportedInstanceTypes) The instance types that the AMI supports.
This is a convenience method that creates an instance of theInstanceTypeItem.Builderavoiding the need to create one manually viaInstanceTypeItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosupportedInstanceTypes(List<InstanceTypeItem>).- Parameters:
supportedInstanceTypes- a consumer that will call methods onInstanceTypeItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unsupportedInstanceTypes
InstanceTypeSpecification.Builder unsupportedInstanceTypes(Collection<InstanceTypeItem> unsupportedInstanceTypes) The instance types that the AMI does not support.
- Parameters:
unsupportedInstanceTypes- The instance types that the AMI does not support.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unsupportedInstanceTypes
InstanceTypeSpecification.Builder unsupportedInstanceTypes(InstanceTypeItem... unsupportedInstanceTypes) The instance types that the AMI does not support.
- Parameters:
unsupportedInstanceTypes- The instance types that the AMI does not support.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unsupportedInstanceTypes
InstanceTypeSpecification.Builder unsupportedInstanceTypes(Consumer<InstanceTypeItem.Builder>... unsupportedInstanceTypes) The instance types that the AMI does not support.
This is a convenience method that creates an instance of theInstanceTypeItem.Builderavoiding the need to create one manually viaInstanceTypeItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tounsupportedInstanceTypes(List<InstanceTypeItem>).- Parameters:
unsupportedInstanceTypes- a consumer that will call methods onInstanceTypeItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-