Interface Ec2AutoScalingGroupConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2AutoScalingGroupConfiguration.Builder,,Ec2AutoScalingGroupConfiguration> SdkBuilder<Ec2AutoScalingGroupConfiguration.Builder,,Ec2AutoScalingGroupConfiguration> SdkPojo
- Enclosing class:
Ec2AutoScalingGroupConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy(String allocationStrategy) The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.allocationStrategy(AllocationStrategy allocationStrategy) The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.instance(Consumer<InstanceConfiguration.Builder> instance) Details about the instance for the EC2 Auto Scaling group with a single instance type.instance(InstanceConfiguration instance) Details about the instance for the EC2 Auto Scaling group with a single instance type.mixedInstances(Collection<MixedInstanceConfiguration> mixedInstances) A list of instance types for an EC2 Auto Scaling group with mixed instance types.mixedInstances(Consumer<MixedInstanceConfiguration.Builder>... mixedInstances) A list of instance types for an EC2 Auto Scaling group with mixed instance types.mixedInstances(MixedInstanceConfiguration... mixedInstances) A list of instance types for an EC2 Auto Scaling group with mixed instance types.The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or mixed instance types.type(Ec2AutoScalingGroupType type) The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or mixed instance types.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
-
instance
Details about the instance for the EC2 Auto Scaling group with a single instance type.
- Parameters:
instance- Details about the instance for the EC2 Auto Scaling group with a single instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instance
default Ec2AutoScalingGroupConfiguration.Builder instance(Consumer<InstanceConfiguration.Builder> instance) Details about the instance for the EC2 Auto Scaling group with a single instance type.
This is a convenience method that creates an instance of theInstanceConfiguration.Builderavoiding the need to create one manually viaInstanceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstance(InstanceConfiguration).- Parameters:
instance- a consumer that will call methods onInstanceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mixedInstances
Ec2AutoScalingGroupConfiguration.Builder mixedInstances(Collection<MixedInstanceConfiguration> mixedInstances) A list of instance types for an EC2 Auto Scaling group with mixed instance types.
- Parameters:
mixedInstances- A list of instance types for an EC2 Auto Scaling group with mixed instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mixedInstances
Ec2AutoScalingGroupConfiguration.Builder mixedInstances(MixedInstanceConfiguration... mixedInstances) A list of instance types for an EC2 Auto Scaling group with mixed instance types.
- Parameters:
mixedInstances- A list of instance types for an EC2 Auto Scaling group with mixed instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mixedInstances
Ec2AutoScalingGroupConfiguration.Builder mixedInstances(Consumer<MixedInstanceConfiguration.Builder>... mixedInstances) A list of instance types for an EC2 Auto Scaling group with mixed instance types.
This is a convenience method that creates an instance of theMixedInstanceConfiguration.Builderavoiding the need to create one manually viaMixedInstanceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomixedInstances(List<MixedInstanceConfiguration>).- Parameters:
mixedInstances- a consumer that will call methods onMixedInstanceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or mixed instance types.
- Parameters:
type- The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or mixed instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or mixed instance types.
- Parameters:
type- The type of EC2 Auto Scaling group, showing whether it consists of a single instance type or mixed instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationStrategy
The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.
- Parameters:
allocationStrategy- The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationStrategy
The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.
- Parameters:
allocationStrategy- The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-