@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsAutoScalingLaunchConfigurationDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about a launch configuration.
Constructor and Description |
---|
AwsAutoScalingLaunchConfigurationDetails() |
Modifier and Type | Method and Description |
---|---|
AwsAutoScalingLaunchConfigurationDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
List<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> |
getBlockDeviceMappings()
Specifies the block devices for the instance.
|
String |
getClassicLinkVpcId()
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
|
List<String> |
getClassicLinkVpcSecurityGroups()
The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId . |
String |
getCreatedTime()
The creation date and time for the launch configuration.
|
Boolean |
getEbsOptimized()
Whether the launch configuration is optimized for Amazon EBS I/O.
|
String |
getIamInstanceProfile()
The name or the ARN of the instance profile associated with the IAM role for the instance.
|
String |
getImageId()
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
|
AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails |
getInstanceMonitoring()
Indicates the type of monitoring for instances in the group.
|
String |
getInstanceType()
The instance type for the instances.
|
String |
getKernelId()
The identifier of the kernel associated with the AMI.
|
String |
getKeyName()
The name of the key pair.
|
String |
getLaunchConfigurationName()
The name of the launch configuration.
|
AwsAutoScalingLaunchConfigurationMetadataOptions |
getMetadataOptions()
The metadata options for the instances.
|
String |
getPlacementTenancy()
The tenancy of the instance.
|
String |
getRamdiskId()
The identifier of the RAM disk associated with the AMI.
|
List<String> |
getSecurityGroups()
The security groups to assign to the instances in the Auto Scaling group.
|
String |
getSpotPrice()
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
|
String |
getUserData()
The user data to make available to the launched EC2 instances.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
Boolean |
isEbsOptimized()
Whether the launch configuration is optimized for Amazon EBS I/O.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
void |
setBlockDeviceMappings(Collection<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> blockDeviceMappings)
Specifies the block devices for the instance.
|
void |
setClassicLinkVpcId(String classicLinkVpcId)
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
|
void |
setClassicLinkVpcSecurityGroups(Collection<String> classicLinkVpcSecurityGroups)
The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId . |
void |
setCreatedTime(String createdTime)
The creation date and time for the launch configuration.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Whether the launch configuration is optimized for Amazon EBS I/O.
|
void |
setIamInstanceProfile(String iamInstanceProfile)
The name or the ARN of the instance profile associated with the IAM role for the instance.
|
void |
setImageId(String imageId)
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
|
void |
setInstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring)
Indicates the type of monitoring for instances in the group.
|
void |
setInstanceType(String instanceType)
The instance type for the instances.
|
void |
setKernelId(String kernelId)
The identifier of the kernel associated with the AMI.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
void |
setMetadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions)
The metadata options for the instances.
|
void |
setPlacementTenancy(String placementTenancy)
The tenancy of the instance.
|
void |
setRamdiskId(String ramdiskId)
The identifier of the RAM disk associated with the AMI.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The security groups to assign to the instances in the Auto Scaling group.
|
void |
setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
|
void |
setUserData(String userData)
The user data to make available to the launched EC2 instances.
|
String |
toString()
Returns a string representation of this object.
|
AwsAutoScalingLaunchConfigurationDetails |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
instances.
|
AwsAutoScalingLaunchConfigurationDetails |
withBlockDeviceMappings(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails... blockDeviceMappings)
Specifies the block devices for the instance.
|
AwsAutoScalingLaunchConfigurationDetails |
withBlockDeviceMappings(Collection<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> blockDeviceMappings)
Specifies the block devices for the instance.
|
AwsAutoScalingLaunchConfigurationDetails |
withClassicLinkVpcId(String classicLinkVpcId)
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
|
AwsAutoScalingLaunchConfigurationDetails |
withClassicLinkVpcSecurityGroups(Collection<String> classicLinkVpcSecurityGroups)
The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId . |
AwsAutoScalingLaunchConfigurationDetails |
withClassicLinkVpcSecurityGroups(String... classicLinkVpcSecurityGroups)
The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId . |
AwsAutoScalingLaunchConfigurationDetails |
withCreatedTime(String createdTime)
The creation date and time for the launch configuration.
|
AwsAutoScalingLaunchConfigurationDetails |
withEbsOptimized(Boolean ebsOptimized)
Whether the launch configuration is optimized for Amazon EBS I/O.
|
AwsAutoScalingLaunchConfigurationDetails |
withIamInstanceProfile(String iamInstanceProfile)
The name or the ARN of the instance profile associated with the IAM role for the instance.
|
AwsAutoScalingLaunchConfigurationDetails |
withImageId(String imageId)
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
|
AwsAutoScalingLaunchConfigurationDetails |
withInstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring)
Indicates the type of monitoring for instances in the group.
|
AwsAutoScalingLaunchConfigurationDetails |
withInstanceType(String instanceType)
The instance type for the instances.
|
AwsAutoScalingLaunchConfigurationDetails |
withKernelId(String kernelId)
The identifier of the kernel associated with the AMI.
|
AwsAutoScalingLaunchConfigurationDetails |
withKeyName(String keyName)
The name of the key pair.
|
AwsAutoScalingLaunchConfigurationDetails |
withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
AwsAutoScalingLaunchConfigurationDetails |
withMetadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions)
The metadata options for the instances.
|
AwsAutoScalingLaunchConfigurationDetails |
withPlacementTenancy(String placementTenancy)
The tenancy of the instance.
|
AwsAutoScalingLaunchConfigurationDetails |
withRamdiskId(String ramdiskId)
The identifier of the RAM disk associated with the AMI.
|
AwsAutoScalingLaunchConfigurationDetails |
withSecurityGroups(Collection<String> securityGroups)
The security groups to assign to the instances in the Auto Scaling group.
|
AwsAutoScalingLaunchConfigurationDetails |
withSecurityGroups(String... securityGroups)
The security groups to assign to the instances in the Auto Scaling group.
|
AwsAutoScalingLaunchConfigurationDetails |
withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
|
AwsAutoScalingLaunchConfigurationDetails |
withUserData(String userData)
The user data to make available to the launched EC2 instances.
|
public AwsAutoScalingLaunchConfigurationDetails()
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.
associatePublicIpAddress
- For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
instances.public Boolean getAssociatePublicIpAddress()
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.
public AwsAutoScalingLaunchConfigurationDetails withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.
associatePublicIpAddress
- For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's
instances.public Boolean isAssociatePublicIpAddress()
For Auto Scaling groups that run in a VPC, specifies whether to assign a public IP address to the group's instances.
public List<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> getBlockDeviceMappings()
Specifies the block devices for the instance.
public void setBlockDeviceMappings(Collection<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> blockDeviceMappings)
Specifies the block devices for the instance.
blockDeviceMappings
- Specifies the block devices for the instance.public AwsAutoScalingLaunchConfigurationDetails withBlockDeviceMappings(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails... blockDeviceMappings)
Specifies the block devices for the instance.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
or withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- Specifies the block devices for the instance.public AwsAutoScalingLaunchConfigurationDetails withBlockDeviceMappings(Collection<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails> blockDeviceMappings)
Specifies the block devices for the instance.
blockDeviceMappings
- Specifies the block devices for the instance.public void setClassicLinkVpcId(String classicLinkVpcId)
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
classicLinkVpcId
- The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.public String getClassicLinkVpcId()
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
public AwsAutoScalingLaunchConfigurationDetails withClassicLinkVpcId(String classicLinkVpcId)
The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.
classicLinkVpcId
- The identifier of a ClassicLink-enabled VPC that EC2-Classic instances are linked to.public List<String> getClassicLinkVpcSecurityGroups()
The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
ClassicLinkVPCId
.public void setClassicLinkVpcSecurityGroups(Collection<String> classicLinkVpcSecurityGroups)
The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
classicLinkVpcSecurityGroups
- The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId
.public AwsAutoScalingLaunchConfigurationDetails withClassicLinkVpcSecurityGroups(String... classicLinkVpcSecurityGroups)
The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
NOTE: This method appends the values to the existing list (if any). Use
setClassicLinkVpcSecurityGroups(java.util.Collection)
or
withClassicLinkVpcSecurityGroups(java.util.Collection)
if you want to override the existing values.
classicLinkVpcSecurityGroups
- The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId
.public AwsAutoScalingLaunchConfigurationDetails withClassicLinkVpcSecurityGroups(Collection<String> classicLinkVpcSecurityGroups)
The identifiers of one or more security groups for the VPC that is specified in ClassicLinkVPCId
.
classicLinkVpcSecurityGroups
- The identifiers of one or more security groups for the VPC that is specified in
ClassicLinkVPCId
.public void setCreatedTime(String 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
)
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
)
public String getCreatedTime()
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
)
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
)
public AwsAutoScalingLaunchConfigurationDetails withCreatedTime(String 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
)
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
)
public void setEbsOptimized(Boolean ebsOptimized)
Whether the launch configuration is optimized for Amazon EBS I/O.
ebsOptimized
- Whether the launch configuration is optimized for Amazon EBS I/O.public Boolean getEbsOptimized()
Whether the launch configuration is optimized for Amazon EBS I/O.
public AwsAutoScalingLaunchConfigurationDetails withEbsOptimized(Boolean ebsOptimized)
Whether the launch configuration is optimized for Amazon EBS I/O.
ebsOptimized
- Whether the launch configuration is optimized for Amazon EBS I/O.public Boolean isEbsOptimized()
Whether the launch configuration is optimized for Amazon EBS I/O.
public void setIamInstanceProfile(String 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.
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.public String getIamInstanceProfile()
The name or the ARN of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
public AwsAutoScalingLaunchConfigurationDetails withIamInstanceProfile(String 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.
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.public void setImageId(String imageId)
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
imageId
- The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.public String getImageId()
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
public AwsAutoScalingLaunchConfigurationDetails withImageId(String imageId)
The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.
imageId
- The identifier of the Amazon Machine Image (AMI) that is used to launch EC2 instances.public void setInstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring)
Indicates the type of monitoring for instances in the group.
instanceMonitoring
- Indicates the type of monitoring for instances in the group.public AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails getInstanceMonitoring()
Indicates the type of monitoring for instances in the group.
public AwsAutoScalingLaunchConfigurationDetails withInstanceMonitoring(AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails instanceMonitoring)
Indicates the type of monitoring for instances in the group.
instanceMonitoring
- Indicates the type of monitoring for instances in the group.public void setInstanceType(String instanceType)
The instance type for the instances.
instanceType
- The instance type for the instances.public String getInstanceType()
The instance type for the instances.
public AwsAutoScalingLaunchConfigurationDetails withInstanceType(String instanceType)
The instance type for the instances.
instanceType
- The instance type for the instances.public void setKernelId(String kernelId)
The identifier of the kernel associated with the AMI.
kernelId
- The identifier of the kernel associated with the AMI.public String getKernelId()
The identifier of the kernel associated with the AMI.
public AwsAutoScalingLaunchConfigurationDetails withKernelId(String kernelId)
The identifier of the kernel associated with the AMI.
kernelId
- The identifier of the kernel associated with the AMI.public void setKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public String getKeyName()
The name of the key pair.
public AwsAutoScalingLaunchConfigurationDetails withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public void setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
launchConfigurationName
- The name of the launch configuration.public String getLaunchConfigurationName()
The name of the launch configuration.
public AwsAutoScalingLaunchConfigurationDetails withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
launchConfigurationName
- The name of the launch configuration.public void setPlacementTenancy(String 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.
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.public String getPlacementTenancy()
The tenancy of the instance. An instance with dedicated
tenancy runs on isolated, single-tenant
hardware and can only be launched into a VPC.
dedicated
tenancy runs on isolated,
single-tenant hardware and can only be launched into a VPC.public AwsAutoScalingLaunchConfigurationDetails withPlacementTenancy(String 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.
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.public void setRamdiskId(String ramdiskId)
The identifier of the RAM disk associated with the AMI.
ramdiskId
- The identifier of the RAM disk associated with the AMI.public String getRamdiskId()
The identifier of the RAM disk associated with the AMI.
public AwsAutoScalingLaunchConfigurationDetails withRamdiskId(String ramdiskId)
The identifier of the RAM disk associated with the AMI.
ramdiskId
- The identifier of the RAM disk associated with the AMI.public List<String> getSecurityGroups()
The security groups to assign to the instances in the Auto Scaling group.
public void setSecurityGroups(Collection<String> securityGroups)
The security groups to assign to the instances in the Auto Scaling group.
securityGroups
- The security groups to assign to the instances in the Auto Scaling group.public AwsAutoScalingLaunchConfigurationDetails withSecurityGroups(String... securityGroups)
The security groups to assign to the instances in the Auto Scaling group.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- The security groups to assign to the instances in the Auto Scaling group.public AwsAutoScalingLaunchConfigurationDetails withSecurityGroups(Collection<String> securityGroups)
The security groups to assign to the instances in the Auto Scaling group.
securityGroups
- The security groups to assign to the instances in the Auto Scaling group.public void setSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
spotPrice
- The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.public String getSpotPrice()
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
public AwsAutoScalingLaunchConfigurationDetails withSpotPrice(String spotPrice)
The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.
spotPrice
- The maximum hourly price to be paid for any Spot Instance that is launched to fulfill the request.public void setUserData(String userData)
The user data to make available to the launched EC2 instances. Must be base64-encoded text.
userData
- The user data to make available to the launched EC2 instances. Must be base64-encoded text.public String getUserData()
The user data to make available to the launched EC2 instances. Must be base64-encoded text.
public AwsAutoScalingLaunchConfigurationDetails withUserData(String userData)
The user data to make available to the launched EC2 instances. Must be base64-encoded text.
userData
- The user data to make available to the launched EC2 instances. Must be base64-encoded text.public void setMetadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions)
The metadata options for the instances.
metadataOptions
- The metadata options for the instances.public AwsAutoScalingLaunchConfigurationMetadataOptions getMetadataOptions()
The metadata options for the instances.
public AwsAutoScalingLaunchConfigurationDetails withMetadataOptions(AwsAutoScalingLaunchConfigurationMetadataOptions metadataOptions)
The metadata options for the instances.
metadataOptions
- The metadata options for the instances.public String toString()
toString
in class Object
Object.toString()
public AwsAutoScalingLaunchConfigurationDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.