Interface AwsAutoScalingLaunchConfigurationDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsAutoScalingLaunchConfigurationDetails.Builder,
,AwsAutoScalingLaunchConfigurationDetails> SdkBuilder<AwsAutoScalingLaunchConfigurationDetails.Builder,
,AwsAutoScalingLaunchConfigurationDetails> SdkPojo
- Enclosing class:
AwsAutoScalingLaunchConfigurationDetails
-
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress
(Boolean associatePublicIpAddress) For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.blockDeviceMappings
(Collection<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> blockDeviceMappings) Specifies the block devices for the instance.blockDeviceMappings
(Consumer<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails.Builder>... blockDeviceMappings) Specifies the block devices for the instance.blockDeviceMappings
(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails... blockDeviceMappings) Specifies the block devices for the instance.classicLinkVpcId
(String classicLinkVpcId) The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.classicLinkVpcSecurityGroups
(String... classicLinkVpcSecurityGroups) The identifiers of one or more security groups for the VPC that is specified inClassicLinkVPCId
.classicLinkVpcSecurityGroups
(Collection<String> classicLinkVpcSecurityGroups) The identifiers of one or more security groups for the VPC that is specified inClassicLinkVPCId
.createdTime
(String createdTime) The creation date and time for the launch configuration.ebsOptimized
(Boolean ebsOptimized) Whether the launch configuration is optimized for Amazon EBS I/O.iamInstanceProfile
(String iamInstanceProfile) The name or the ARN of the instance profile associated with the IAM role for the instance.The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.instanceMonitoring
(Consumer<AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails.Builder> instanceMonitoring) Indicates the type of monitoring for instances in the group.instanceMonitoring
(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring) Indicates the type of monitoring for instances in the group.instanceType
(String instanceType) The instance type for the instances.The identifier of the kernel associated with the AMI.The name of the key pair.launchConfigurationName
(String launchConfigurationName) The name of the launch configuration.metadataOptions
(Consumer<AwsAutoScalingLaunchConfigurationMetadataOptions.Builder> metadataOptions) The metadata options for the instances.metadataOptions
(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions) The metadata options for the instances.placementTenancy
(String placementTenancy) The tenancy of the instance.The identifier of the RAM disk associated with the AMI.securityGroups
(String... securityGroups) The security groups to assign to the instances in the Auto Scaling group.securityGroups
(Collection<String> securityGroups) The security groups to assign to the instances in the Auto Scaling group.The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.The user data to make available to the launched EC2 instances.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
-
associatePublicIpAddress
AwsAutoScalingLaunchConfigurationDetails.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.
- Parameters:
associatePublicIpAddress
- For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
AwsAutoScalingLaunchConfigurationDetails.Builder blockDeviceMappings(Collection<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> blockDeviceMappings) Specifies the block devices for the instance.
- Parameters:
blockDeviceMappings
- Specifies the block devices for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
AwsAutoScalingLaunchConfigurationDetails.Builder blockDeviceMappings(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails... blockDeviceMappings) Specifies the block devices for the instance.
- Parameters:
blockDeviceMappings
- Specifies the block devices for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
AwsAutoScalingLaunchConfigurationDetails.Builder blockDeviceMappings(Consumer<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails.Builder>... blockDeviceMappings) Specifies the block devices for the instance.
This is a convenience method that creates an instance of theAwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails.Builder
avoiding the need to create one manually viaAwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappings(List<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails>)
.- Parameters:
blockDeviceMappings
- a consumer that will call methods onAwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
classicLinkVpcId
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
- Parameters:
classicLinkVpcId
- The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
classicLinkVpcSecurityGroups
AwsAutoScalingLaunchConfigurationDetails.Builder classicLinkVpcSecurityGroups(Collection<String> classicLinkVpcSecurityGroups) The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId
.- Parameters:
classicLinkVpcSecurityGroups
- The identifiers of one or more security groups for the VPC that is specified inClassicLinkVPCId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
classicLinkVpcSecurityGroups
AwsAutoScalingLaunchConfigurationDetails.Builder classicLinkVpcSecurityGroups(String... classicLinkVpcSecurityGroups) The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId
.- Parameters:
classicLinkVpcSecurityGroups
- The identifiers of one or more security groups for the VPC that is specified inClassicLinkVPCId
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
The creation date and time for the launch configuration.
This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
- Parameters:
createdTime
- The creation date and time for the launch configuration.This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
ebsOptimized
Whether the launch configuration is optimized for Amazon EBS I/O.
- Parameters:
ebsOptimized
- Whether the launch configuration is optimized for Amazon EBS I/O.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- Parameters:
iamInstanceProfile
- The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
- Parameters:
imageId
- The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMonitoring
AwsAutoScalingLaunchConfigurationDetails.Builder instanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring) Indicates the type of monitoring for instances in the group.
- Parameters:
instanceMonitoring
- Indicates the type of monitoring for instances in the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMonitoring
default AwsAutoScalingLaunchConfigurationDetails.Builder instanceMonitoring(Consumer<AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails.Builder> instanceMonitoring) Indicates the type of monitoring for instances in the group.
This is a convenience method that creates an instance of theAwsAutoScalingLaunchConfigurationInstanceMonitoringDetails.Builder
avoiding the need to create one manually viaAwsAutoScalingLaunchConfigurationInstanceMonitoringDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails)
.- Parameters:
instanceMonitoring
- a consumer that will call methods onAwsAutoScalingLaunchConfigurationInstanceMonitoringDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type for the instances.
- Parameters:
instanceType
- The instance type for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kernelId
The identifier of the kernel associated with the AMI.
- Parameters:
kernelId
- The identifier of the kernel associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchConfigurationName
AwsAutoScalingLaunchConfigurationDetails.Builder launchConfigurationName(String launchConfigurationName) The name of the launch configuration.
- Parameters:
launchConfigurationName
- The name of the launch configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementTenancy
The tenancy of the instance. An instance with
dedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC.- Parameters:
placementTenancy
- The tenancy of the instance. An instance withdedicated
tenancy runs on isolated, single-tenant hardware and can only be launched into a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ramdiskId
The identifier of the RAM disk associated with the AMI.
- Parameters:
ramdiskId
- The identifier of the RAM disk associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups to assign to the instances in the Auto Scaling group.
- Parameters:
securityGroups
- The security groups to assign to the instances in the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups to assign to the instances in the Auto Scaling group.
- Parameters:
securityGroups
- The security groups to assign to the instances in the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotPrice
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
- Parameters:
spotPrice
- The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
The user data to make available to the launched EC2 instances. Must be base64-encoded text.
- Parameters:
userData
- The user data to make available to the launched EC2 instances. Must be base64-encoded text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
AwsAutoScalingLaunchConfigurationDetails.Builder metadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions) The metadata options for the instances.
- Parameters:
metadataOptions
- The metadata options for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
default AwsAutoScalingLaunchConfigurationDetails.Builder metadataOptions(Consumer<AwsAutoScalingLaunchConfigurationMetadataOptions.Builder> metadataOptions) The metadata options for the instances.
This is a convenience method that creates an instance of theAwsAutoScalingLaunchConfigurationMetadataOptions.Builder
avoiding the need to create one manually viaAwsAutoScalingLaunchConfigurationMetadataOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions)
.- Parameters:
metadataOptions
- a consumer that will call methods onAwsAutoScalingLaunchConfigurationMetadataOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-