public class LaunchConfiguration extends Object implements Serializable
Describes a launch configuration.
| Constructor and Description |
|---|
LaunchConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Specifies whether the EC2 instances are associated with a public IP
address (
true) or not (false). |
List<BlockDeviceMapping> |
getBlockDeviceMappings()
A block device mapping that specifies how block devices are exposed to
the instance.
|
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
monitoring.
|
String |
getInstanceType()
The instance type for the EC2 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 EC2 instances.
|
String |
getSpotPrice()
The price to bid when launching Spot Instances.
|
String |
getUserData()
The user data available to the EC2 instances.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Specifies whether the EC2 instances are associated with a public IP
address (
true) or not (false). |
Boolean |
isEbsOptimized()
Controls whether the instance is optimized for EBS I/O
(
true) or not (false). |
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Specifies whether the EC2 instances are associated with a public IP
address (
true) or not (false). |
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping that specifies how block devices are exposed to
the instance.
|
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
monitoring.
|
void |
setInstanceType(String instanceType)
The instance type for the EC2 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 EC2 instances.
|
void |
setSpotPrice(String spotPrice)
The price to bid when launching Spot Instances.
|
void |
setUserData(String userData)
The user data available to the EC2 instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LaunchConfiguration |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Specifies whether the EC2 instances are associated with a public IP
address (
true) or not (false). |
LaunchConfiguration |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
A block device mapping that specifies how block devices are exposed to
the instance.
|
LaunchConfiguration |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
A block device mapping that specifies how block devices are exposed to
the instance.
|
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
monitoring.
|
LaunchConfiguration |
withInstanceType(String instanceType)
The instance type for the EC2 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 EC2 instances.
|
LaunchConfiguration |
withSecurityGroups(String... securityGroups)
The security groups to associate with the EC2 instances.
|
LaunchConfiguration |
withSpotPrice(String spotPrice)
The price to bid when launching Spot Instances.
|
LaunchConfiguration |
withUserData(String userData)
The user data available to the EC2 instances.
|
public String getLaunchConfigurationName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLaunchConfigurationName(String launchConfigurationName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The name of the launch configuration.public LaunchConfiguration withLaunchConfigurationName(String launchConfigurationName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The name of the launch configuration.public String getLaunchConfigurationARN()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLaunchConfigurationARN(String launchConfigurationARN)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationARN - The Amazon Resource Name (ARN) of the launch configuration.public LaunchConfiguration withLaunchConfigurationARN(String launchConfigurationARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationARN - The Amazon Resource Name (ARN) of the launch configuration.public String getImageId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setImageId(String imageId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
imageId - The ID of the Amazon Machine Image (AMI).public LaunchConfiguration withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
imageId - The ID of the Amazon Machine Image (AMI).public String getKeyName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setKeyName(String keyName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
keyName - The name of the key pair.public LaunchConfiguration withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
keyName - The name of the key pair.public List<String> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups - The security groups to associate with the EC2 instances.public LaunchConfiguration withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups - The security groups to associate with the EC2 instances.public LaunchConfiguration withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups - The security groups to associate with the EC2 instances.public String getUserData()
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setUserData(String userData)
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
userData - The user data available to the EC2 instances.public LaunchConfiguration withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 21847
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
userData - The user data available to the EC2 instances.public String getInstanceType()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceType(String instanceType)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType - The instance type for the EC2 instances.public LaunchConfiguration withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType - The instance type for the EC2 instances.public String getKernelId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setKernelId(String kernelId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
kernelId - The ID of the kernel associated with the AMI.public LaunchConfiguration withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
kernelId - The ID of the kernel associated with the AMI.public String getRamdiskId()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setRamdiskId(String ramdiskId)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ramdiskId - The ID of the RAM disk associated with the AMI.public LaunchConfiguration withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
ramdiskId - The ID of the RAM disk associated with the AMI.public List<BlockDeviceMapping> getBlockDeviceMappings()
virtualName
and a deviceName.virtualName
and a deviceName.public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
virtualName
and a deviceName.blockDeviceMappings - A block device mapping that specifies how block devices are exposed to
the instance. Each mapping is made up of a virtualName
and a deviceName.public LaunchConfiguration withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
virtualName
and a deviceName.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - A block device mapping that specifies how block devices are exposed to
the instance. Each mapping is made up of a virtualName
and a deviceName.public LaunchConfiguration withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
virtualName
and a deviceName.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - A block device mapping that specifies how block devices are exposed to
the instance. Each mapping is made up of a virtualName
and a deviceName.public InstanceMonitoring getInstanceMonitoring()
public void setInstanceMonitoring(InstanceMonitoring instanceMonitoring)
instanceMonitoring - Controls whether instances in this group are launched with detailed
monitoring.public LaunchConfiguration withInstanceMonitoring(InstanceMonitoring instanceMonitoring)
Returns a reference to this object so that method calls can be chained together.
instanceMonitoring - Controls whether instances in this group are launched with detailed
monitoring.public String getSpotPrice()
Constraints:
Length: 1 - 255
public void setSpotPrice(String spotPrice)
Constraints:
Length: 1 - 255
spotPrice - The price to bid when launching Spot Instances.public LaunchConfiguration withSpotPrice(String spotPrice)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
spotPrice - The price to bid when launching Spot Instances.public String getIamInstanceProfile()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setIamInstanceProfile(String iamInstanceProfile)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
iamInstanceProfile - The name or Amazon Resource Name (ARN) of the instance profile
associated with the IAM role for the instance.public LaunchConfiguration withIamInstanceProfile(String iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
iamInstanceProfile - The name or Amazon Resource Name (ARN) of the instance profile
associated with the IAM role for the instance.public Date getCreatedTime()
public void setCreatedTime(Date createdTime)
createdTime - The creation date and time for the launch configuration.public LaunchConfiguration withCreatedTime(Date createdTime)
Returns a reference to this object so that method calls can be chained together.
createdTime - The creation date and time for the launch configuration.public Boolean isEbsOptimized()
true) or not (false).true) or not (false).public void setEbsOptimized(Boolean ebsOptimized)
true) or not (false).ebsOptimized - Controls whether the instance is optimized for EBS I/O
(true) or not (false).public LaunchConfiguration withEbsOptimized(Boolean ebsOptimized)
true) or not (false).
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - Controls whether the instance is optimized for EBS I/O
(true) or not (false).public Boolean getEbsOptimized()
true) or not (false).true) or not (false).public Boolean isAssociatePublicIpAddress()
true) or not (false).true) or not (false).public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
true) or not (false).associatePublicIpAddress - Specifies whether the EC2 instances are associated with a public IP
address (true) or not (false).public LaunchConfiguration withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
true) or not (false).
Returns a reference to this object so that method calls can be chained together.
associatePublicIpAddress - Specifies whether the EC2 instances are associated with a public IP
address (true) or not (false).public Boolean getAssociatePublicIpAddress()
true) or not (false).true) or not (false).public String getPlacementTenancy()
default or
dedicated. An instance with dedicated
tenancy runs in an isolated, single-tenant hardware and can only be
launched in a VPC.
Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
default or
dedicated. An instance with dedicated
tenancy runs in an isolated, single-tenant hardware and can only be
launched in a VPC.public void setPlacementTenancy(String placementTenancy)
default or
dedicated. An instance with dedicated
tenancy runs in an isolated, single-tenant hardware and can only be
launched in a VPC.
Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 in a VPC.public LaunchConfiguration withPlacementTenancy(String placementTenancy)
default or
dedicated. An instance with dedicated
tenancy runs in an isolated, single-tenant hardware and can only be
launched in a VPC.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 in a VPC.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.