@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchConfiguration extends Object implements Serializable, Cloneable
Describes a launch configuration.
Constructor and Description |
---|
LaunchConfiguration() |
Modifier and Type | Method and Description |
---|---|
LaunchConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
A block device mapping, which specifies the block devices for the instance.
|
String |
getClassicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
List<String> |
getClassicLinkVPCSecurityGroups()
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
Date |
getCreatedTime()
The creation date and time for the launch configuration.
|
Boolean |
getEbsOptimized()
Controls whether the instance is optimized for EBS I/O (
true ) or not (false ). |
String |
getIamInstanceProfile()
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
String |
getImageId()
The ID of the Amazon Machine Image (AMI).
|
InstanceMonitoring |
getInstanceMonitoring()
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
String |
getInstanceType()
The instance type for the instances.
|
String |
getKernelId()
The ID of the kernel associated with the AMI.
|
String |
getKeyName()
The name of the key pair.
|
String |
getLaunchConfigurationARN()
The Amazon Resource Name (ARN) of the launch configuration.
|
String |
getLaunchConfigurationName()
The name of the launch configuration.
|
String |
getPlacementTenancy()
The tenancy of the instance, either
default or dedicated . |
String |
getRamdiskId()
The ID of the RAM disk associated with the AMI.
|
List<String> |
getSecurityGroups()
The security groups to associate with the instances.
|
String |
getSpotPrice()
The price to bid when launching Spot Instances.
|
String |
getUserData()
The user data available to the instances.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
|
Boolean |
isEbsOptimized()
Controls whether the instance is optimized for EBS I/O (
true ) or not (false ). |
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
void |
setClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
void |
setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
void |
setCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Controls whether the instance is optimized for EBS I/O (
true ) or not (false ). |
void |
setIamInstanceProfile(String iamInstanceProfile)
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
void |
setImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
|
void |
setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
void |
setInstanceType(String instanceType)
The instance type for the instances.
|
void |
setKernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
void |
setPlacementTenancy(String placementTenancy)
The tenancy of the instance, either
default or dedicated . |
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The security groups to associate with the instances.
|
void |
setSpotPrice(String spotPrice)
The price to bid when launching Spot Instances.
|
void |
setUserData(String userData)
The user data available to the instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LaunchConfiguration |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
|
LaunchConfiguration |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
|
LaunchConfiguration |
withClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
|
LaunchConfiguration |
withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
LaunchConfiguration |
withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in
ClassicLinkVPCId . |
LaunchConfiguration |
withCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
|
LaunchConfiguration |
withEbsOptimized(Boolean ebsOptimized)
Controls whether the instance is optimized for EBS I/O (
true ) or not (false ). |
LaunchConfiguration |
withIamInstanceProfile(String iamInstanceProfile)
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
|
LaunchConfiguration |
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
|
LaunchConfiguration |
withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (
true ) or basic (
false ) monitoring. |
LaunchConfiguration |
withInstanceType(String instanceType)
The instance type for the instances.
|
LaunchConfiguration |
withKernelId(String kernelId)
The ID of the kernel associated with the AMI.
|
LaunchConfiguration |
withKeyName(String keyName)
The name of the key pair.
|
LaunchConfiguration |
withLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
|
LaunchConfiguration |
withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
|
LaunchConfiguration |
withPlacementTenancy(String placementTenancy)
The tenancy of the instance, either
default or dedicated . |
LaunchConfiguration |
withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
|
LaunchConfiguration |
withSecurityGroups(Collection<String> securityGroups)
The security groups to associate with the instances.
|
LaunchConfiguration |
withSecurityGroups(String... securityGroups)
The security groups to associate with the instances.
|
LaunchConfiguration |
withSpotPrice(String spotPrice)
The price to bid when launching Spot Instances.
|
LaunchConfiguration |
withUserData(String userData)
The user data available to the instances.
|
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 LaunchConfiguration withLaunchConfigurationName(String launchConfigurationName)
The name of the launch configuration.
launchConfigurationName
- The name of the launch configuration.public void setLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
launchConfigurationARN
- The Amazon Resource Name (ARN) of the launch configuration.public String getLaunchConfigurationARN()
The Amazon Resource Name (ARN) of the launch configuration.
public LaunchConfiguration withLaunchConfigurationARN(String launchConfigurationARN)
The Amazon Resource Name (ARN) of the launch configuration.
launchConfigurationARN
- The Amazon Resource Name (ARN) of the launch configuration.public void setImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (AMI).public String getImageId()
The ID of the Amazon Machine Image (AMI).
public LaunchConfiguration withImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (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 LaunchConfiguration withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public List<String> getSecurityGroups()
The security groups to associate with the instances.
public void setSecurityGroups(Collection<String> securityGroups)
The security groups to associate with the instances.
securityGroups
- The security groups to associate with the instances.public LaunchConfiguration withSecurityGroups(String... securityGroups)
The security groups to associate with the instances.
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 associate with the instances.public LaunchConfiguration withSecurityGroups(Collection<String> securityGroups)
The security groups to associate with the instances.
securityGroups
- The security groups to associate with the instances.public void setClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
classicLinkVPCId
- The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used
if you are launching EC2-Classic instances. For more information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.public String getClassicLinkVPCId()
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
public LaunchConfiguration withClassicLinkVPCId(String classicLinkVPCId)
The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used if you are launching EC2-Classic instances. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
classicLinkVPCId
- The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. This parameter can only be used
if you are launching EC2-Classic instances. For more information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.public List<String> getClassicLinkVPCSecurityGroups()
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter is
required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon
Elastic Compute Cloud User Guide.
ClassicLinkVPCId
. This
parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more
information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.public void setClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter is
required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon
Elastic Compute Cloud User Guide.
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This
parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more
information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.public LaunchConfiguration withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter is
required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon
Elastic Compute Cloud User Guide.
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 IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This
parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more
information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.public LaunchConfiguration withClassicLinkVPCSecurityGroups(Collection<String> classicLinkVPCSecurityGroups)
The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This parameter is
required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more information, see ClassicLink in the Amazon
Elastic Compute Cloud User Guide.
classicLinkVPCSecurityGroups
- The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId
. This
parameter is required if you specify a ClassicLink-enabled VPC, and cannot be used otherwise. For more
information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.public void setUserData(String userData)
The user data available to the instances.
userData
- The user data available to the instances.public String getUserData()
The user data available to the instances.
public LaunchConfiguration withUserData(String userData)
The user data available to the instances.
userData
- The user data available to the instances.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 LaunchConfiguration withInstanceType(String instanceType)
The instance type for the instances.
instanceType
- The instance type for the instances.public void setKernelId(String kernelId)
The ID of the kernel associated with the AMI.
kernelId
- The ID of the kernel associated with the AMI.public String getKernelId()
The ID of the kernel associated with the AMI.
public LaunchConfiguration withKernelId(String kernelId)
The ID of the kernel associated with the AMI.
kernelId
- The ID of the kernel associated with the AMI.public void setRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
ramdiskId
- The ID of the RAM disk associated with the AMI.public String getRamdiskId()
The ID of the RAM disk associated with the AMI.
public LaunchConfiguration withRamdiskId(String ramdiskId)
The ID of the RAM disk associated with the AMI.
ramdiskId
- The ID of the RAM disk associated with the AMI.public List<BlockDeviceMapping> getBlockDeviceMappings()
A block device mapping, which specifies the block devices for the instance.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance.public LaunchConfiguration withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping, which 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
- A block device mapping, which specifies the block devices for the instance.public LaunchConfiguration withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping, which specifies the block devices for the instance.
blockDeviceMappings
- A block device mapping, which specifies the block devices for the instance.public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
instanceMonitoring
- Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.public InstanceMonitoring getInstanceMonitoring()
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
true
) or basic (
false
) monitoring.public LaunchConfiguration withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.
instanceMonitoring
- Controls whether instances in this group are launched with detailed (true
) or basic (
false
) monitoring.public void setSpotPrice(String spotPrice)
The price to bid when launching Spot Instances.
spotPrice
- The price to bid when launching Spot Instances.public String getSpotPrice()
The price to bid when launching Spot Instances.
public LaunchConfiguration withSpotPrice(String spotPrice)
The price to bid when launching Spot Instances.
spotPrice
- The price to bid when launching Spot Instances.public void setIamInstanceProfile(String iamInstanceProfile)
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the
instance.public String getIamInstanceProfile()
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
public LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile)
The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the
instance.public void setCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
createdTime
- The creation date and time for the launch configuration.public Date getCreatedTime()
The creation date and time for the launch configuration.
public LaunchConfiguration withCreatedTime(Date createdTime)
The creation date and time for the launch configuration.
createdTime
- The creation date and time for the launch configuration.public void setEbsOptimized(Boolean ebsOptimized)
Controls whether the instance is optimized for EBS I/O (true
) or not (false
).
ebsOptimized
- Controls whether the instance is optimized for EBS I/O (true
) or not (false
).public Boolean getEbsOptimized()
Controls whether the instance is optimized for EBS I/O (true
) or not (false
).
true
) or not (false
).public LaunchConfiguration withEbsOptimized(Boolean ebsOptimized)
Controls whether the instance is optimized for EBS I/O (true
) or not (false
).
ebsOptimized
- Controls whether the instance is optimized for EBS I/O (true
) or not (false
).public Boolean isEbsOptimized()
Controls whether the instance is optimized for EBS I/O (true
) or not (false
).
true
) or not (false
).public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
associatePublicIpAddress
- [EC2-VPC] Indicates whether to assign a public IP address to each instance.public Boolean getAssociatePublicIpAddress()
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
public LaunchConfiguration withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
associatePublicIpAddress
- [EC2-VPC] Indicates whether to assign a public IP address to each instance.public Boolean isAssociatePublicIpAddress()
[EC2-VPC] Indicates whether to assign a public IP address to each instance.
public void setPlacementTenancy(String placementTenancy)
The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
placementTenancy
- The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a
VPC.public String getPlacementTenancy()
The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into
a VPC.public LaunchConfiguration withPlacementTenancy(String placementTenancy)
The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a VPC.
placementTenancy
- The tenancy of the instance, either default
or dedicated
. An instance with
dedicated
tenancy runs in an isolated, single-tenant hardware and can only be launched into a
VPC.public String toString()
toString
in class Object
Object.toString()
public LaunchConfiguration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.