public class LaunchSpecification extends Object implements Serializable
Describes the launch specification of a Spot Instance.
Constructor and Description |
---|
LaunchSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAddressingType()
|
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()
Enables monitoring for the instance.
|
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 groups.
|
String |
getSubnetId()
The ID of the subnet in which to launch the Spot Instance.
|
String |
getUserData()
The Base64-encoded MIME user data to make available to the instances.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
Boolean |
isMonitoringEnabled()
Enables monitoring for the instance.
|
void |
setAddressingType(String addressingType)
|
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)
Enables monitoring for the instance.
|
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 groups.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which to launch the Spot Instance.
|
void |
setUserData(String userData)
The Base64-encoded MIME 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)
|
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)
Enables monitoring for the instance.
|
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 groups.
|
LaunchSpecification |
withSecurityGroups(String... securityGroups)
One or more security groups.
|
LaunchSpecification |
withSubnetId(String subnetId)
The ID of the subnet in which to launch the Spot Instance.
|
LaunchSpecification |
withUserData(String userData)
The Base64-encoded MIME user data to make available to the instances.
|
public String getImageId()
public void setImageId(String imageId)
imageId
- The ID of the AMI.public LaunchSpecification withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The ID of the AMI.public String getKeyName()
public void setKeyName(String keyName)
keyName
- The name of the key pair.public LaunchSpecification withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair.public List<GroupIdentifier> getAllSecurityGroups()
public void setAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
allSecurityGroups
- One or more security groups.public LaunchSpecification withAllSecurityGroups(GroupIdentifier... allSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
allSecurityGroups
- One or more security groups.public LaunchSpecification withAllSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
allSecurityGroups
- One or more security groups.public List<String> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups
- One or more security groups.public LaunchSpecification withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups.public LaunchSpecification withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups.public String getUserData()
public void setUserData(String userData)
userData
- The Base64-encoded MIME user data to make available to the instances.public LaunchSpecification withUserData(String userData)
Returns a reference to this object so that method calls can be chained together.
userData
- The Base64-encoded MIME user data to make available to the instances.public String getAddressingType()
public void setAddressingType(String addressingType)
addressingType
- public LaunchSpecification withAddressingType(String addressingType)
Returns a reference to this object so that method calls can be chained together.
addressingType
- public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
InstanceType
public void setInstanceType(String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public LaunchSpecification withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public LaunchSpecification withInstanceType(InstanceType instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, t2.micro, t2.small, t2.medium, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge
instanceType
- The instance type.InstanceType
public SpotPlacement getPlacement()
public void setPlacement(SpotPlacement placement)
placement
- The placement information for the instance.public LaunchSpecification withPlacement(SpotPlacement placement)
Returns a reference to this object so that method calls can be chained together.
placement
- The placement information for the instance.public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The ID of the kernel.public LaunchSpecification withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The ID of the kernel.public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- The ID of the RAM disk.public LaunchSpecification withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The ID of the RAM disk.public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- One or more block device mapping entries.public LaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- One or more block device mapping entries.public LaunchSpecification withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- One or more block device mapping entries.public Boolean isMonitoringEnabled()
Default: Disabled
Default: Disabled
public void setMonitoringEnabled(Boolean monitoringEnabled)
Default: Disabled
monitoringEnabled
- Enables monitoring for the instance. Default: Disabled
public LaunchSpecification withMonitoringEnabled(Boolean monitoringEnabled)
Default: Disabled
Returns a reference to this object so that method calls can be chained together.
monitoringEnabled
- Enables monitoring for the instance. Default: Disabled
public Boolean getMonitoringEnabled()
Default: Disabled
Default: Disabled
public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet in which to launch the Spot Instance.public LaunchSpecification withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet in which to launch the Spot Instance.public List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
public void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
networkInterfaces
- One or more network interfaces.public LaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- One or more network interfaces.public LaunchSpecification withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- One or more network interfaces.public IamInstanceProfileSpecification getIamInstanceProfile()
public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
iamInstanceProfile
- The IAM instance profile.public LaunchSpecification withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile
- The IAM instance profile.public Boolean isEbsOptimized()
Default:
false
Default:
false
public void setEbsOptimized(Boolean ebsOptimized)
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 LaunchSpecification withEbsOptimized(Boolean ebsOptimized)
Default:
false
Returns a reference to this object so that method calls can be chained together.
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()
Default:
false
Default:
false
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.