@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchSpecification extends Object implements Serializable, Cloneable
Describes the launch specification for an instance.
Constructor and Description |
---|
LaunchSpecification() |
Modifier and Type | Method and Description |
---|---|
LaunchSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getAddressingType()
Deprecated.
|
List<GroupIdentifier> |
getAllSecurityGroups()
One or more security groups.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
One or more block device mapping entries.
|
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
IamInstanceProfileSpecification |
getIamInstanceProfile()
The IAM instance profile.
|
String |
getImageId()
The ID of the AMI.
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
The ID of the kernel.
|
String |
getKeyName()
The name of the key pair.
|
Boolean |
getMonitoringEnabled() |
List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
One or more network interfaces.
|
SpotPlacement |
getPlacement()
The placement information for the instance.
|
String |
getRamdiskId()
The ID of the RAM disk.
|
List<String> |
getSecurityGroups()
One or more security group names.
|
String |
getSubnetId()
The ID of the subnet in which to launch the instance.
|
String |
getUserData()
The user data to make available to the instances.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
Boolean |
isMonitoringEnabled() |
void |
setAddressingType(String addressingType)
Deprecated.
|
void |
setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
One or more security groups.
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
void |
setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
|
void |
setImageId(String imageId)
The ID of the AMI.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setKernelId(String kernelId)
The ID of the kernel.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setMonitoringEnabled(Boolean monitoringEnabled) |
void |
setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
void |
setPlacement(SpotPlacement placement)
The placement information for the instance.
|
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk.
|
void |
setSecurityGroups(Collection<String> securityGroups)
One or more security group names.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which to launch the instance.
|
void |
setUserData(String userData)
The user data to make available to the instances.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LaunchSpecification |
withAddressingType(String addressingType)
Deprecated.
|
LaunchSpecification |
withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
One or more security groups.
|
LaunchSpecification |
withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
One or more security groups.
|
LaunchSpecification |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
|
LaunchSpecification |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
LaunchSpecification |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
LaunchSpecification |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
|
LaunchSpecification |
withImageId(String imageId)
The ID of the AMI.
|
LaunchSpecification |
withInstanceType(InstanceType instanceType)
The instance type.
|
LaunchSpecification |
withInstanceType(String instanceType)
The instance type.
|
LaunchSpecification |
withKernelId(String kernelId)
The ID of the kernel.
|
LaunchSpecification |
withKeyName(String keyName)
The name of the key pair.
|
LaunchSpecification |
withMonitoringEnabled(Boolean monitoringEnabled) |
LaunchSpecification |
withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
LaunchSpecification |
withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces.
|
LaunchSpecification |
withPlacement(SpotPlacement placement)
The placement information for the instance.
|
LaunchSpecification |
withRamdiskId(String ramdiskId)
The ID of the RAM disk.
|
LaunchSpecification |
withSecurityGroups(Collection<String> securityGroups)
One or more security group names.
|
LaunchSpecification |
withSecurityGroups(String... securityGroups)
One or more security group names.
|
LaunchSpecification |
withSubnetId(String subnetId)
The ID of the subnet in which to launch the instance.
|
LaunchSpecification |
withUserData(String userData)
The user data to make available to the instances.
|
public void setUserData(String userData)
The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
userData
- The user data to make available to the instances. If you are using an AWS SDK or command line tool,
Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide
Base64-encoded text.public String getUserData()
The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
public LaunchSpecification withUserData(String userData)
The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
userData
- The user data to make available to the instances. If you are using an AWS SDK or command line tool,
Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide
Base64-encoded text.public void setAddressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.public String getAddressingType()
Deprecated.
public LaunchSpecification withAddressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.public List<BlockDeviceMapping> getBlockDeviceMappings()
One or more block device mapping entries.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.public LaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
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
- One or more block device mapping entries.public LaunchSpecification withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings
- One or more block device mapping entries.public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput
to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This
optimization isn't available with all instance types. Additional usage charges apply when using an EBS
Optimized instance.
Default: false
public Boolean getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
Default: false
public LaunchSpecification withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput
to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This
optimization isn't available with all instance types. Additional usage charges apply when using an EBS
Optimized instance.
Default: false
public Boolean isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: false
Default: false
public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public IamInstanceProfileSpecification getIamInstanceProfile()
The IAM instance profile.
public LaunchSpecification withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public void setImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public String getImageId()
The ID of the AMI.
public LaunchSpecification withImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public LaunchSpecification withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public LaunchSpecification withInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setKernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public String getKernelId()
The ID of the kernel.
public LaunchSpecification withKernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.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 LaunchSpecification withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
public void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.public LaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
or withNetworkInterfaces(java.util.Collection)
if
you want to override the existing values.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.public LaunchSpecification withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.public void setPlacement(SpotPlacement placement)
The placement information for the instance.
placement
- The placement information for the instance.public SpotPlacement getPlacement()
The placement information for the instance.
public LaunchSpecification withPlacement(SpotPlacement placement)
The placement information for the instance.
placement
- The placement information for the instance.public void setRamdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public String getRamdiskId()
The ID of the RAM disk.
public LaunchSpecification withRamdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public void setSubnetId(String subnetId)
The ID of the subnet in which to launch the instance.
subnetId
- The ID of the subnet in which to launch the instance.public String getSubnetId()
The ID of the subnet in which to launch the instance.
public LaunchSpecification withSubnetId(String subnetId)
The ID of the subnet in which to launch the instance.
subnetId
- The ID of the subnet in which to launch the instance.public List<GroupIdentifier> getAllSecurityGroups()
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
public void setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
allSecurityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security
groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security
groups.public LaunchSpecification withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
NOTE: This method appends the values to the existing list (if any). Use
setAllSecurityGroups(java.util.Collection)
or withAllSecurityGroups(java.util.Collection)
if
you want to override the existing values.
allSecurityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security
groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security
groups.public LaunchSpecification withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
allSecurityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security
groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security
groups.public void setMonitoringEnabled(Boolean monitoringEnabled)
monitoringEnabled
- public Boolean getMonitoringEnabled()
public LaunchSpecification withMonitoringEnabled(Boolean monitoringEnabled)
monitoringEnabled
- public Boolean isMonitoringEnabled()
public List<String> getSecurityGroups()
One or more security group names.
public void setSecurityGroups(Collection<String> securityGroups)
One or more security group names.
securityGroups
- One or more security group names.public LaunchSpecification withSecurityGroups(String... securityGroups)
One or more security group names.
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
- One or more security group names.public LaunchSpecification withSecurityGroups(Collection<String> securityGroups)
One or more security group names.
securityGroups
- One or more security group names.public String toString()
toString
in class Object
Object.toString()
public LaunchSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.