|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.LaunchSpecification
public class LaunchSpecification
Describes the launch specification of a Spot Instance.
Constructor Summary | |
---|---|
LaunchSpecification()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAddressingType()
|
java.util.List<GroupIdentifier> |
getAllSecurityGroups()
One or more security groups. |
java.util.List<BlockDeviceMapping> |
getBlockDeviceMappings()
One or more block device mapping entries. |
java.lang.Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. |
IamInstanceProfileSpecification |
getIamInstanceProfile()
The IAM instance profile. |
java.lang.String |
getImageId()
The ID of the AMI. |
java.lang.String |
getInstanceType()
The instance type. |
java.lang.String |
getKernelId()
The ID of the kernel. |
java.lang.String |
getKeyName()
The name of the key pair. |
java.lang.Boolean |
getMonitoringEnabled()
Enables monitoring for the instance. |
java.util.List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
One or more network interfaces. |
SpotPlacement |
getPlacement()
The placement information for the instance. |
java.lang.String |
getRamdiskId()
The ID of the RAM disk. |
java.util.List<java.lang.String> |
getSecurityGroups()
One or more security groups. |
java.lang.String |
getSubnetId()
The ID of the subnet in which to launch the Spot Instance. |
java.lang.String |
getUserData()
The Base64-encoded MIME user data to make available to the instances. |
int |
hashCode()
|
java.lang.Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for EBS I/O. |
java.lang.Boolean |
isMonitoringEnabled()
Enables monitoring for the instance. |
void |
setAddressingType(java.lang.String addressingType)
|
void |
setAllSecurityGroups(java.util.Collection<GroupIdentifier> allSecurityGroups)
One or more security groups. |
void |
setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries. |
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. |
void |
setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile. |
void |
setImageId(java.lang.String imageId)
The ID of the AMI. |
void |
setInstanceType(InstanceType instanceType)
The instance type. |
void |
setInstanceType(java.lang.String instanceType)
The instance type. |
void |
setKernelId(java.lang.String kernelId)
The ID of the kernel. |
void |
setKeyName(java.lang.String keyName)
The name of the key pair. |
void |
setMonitoringEnabled(java.lang.Boolean monitoringEnabled)
Enables monitoring for the instance. |
void |
setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces. |
void |
setPlacement(SpotPlacement placement)
The placement information for the instance. |
void |
setRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk. |
void |
setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
One or more security groups. |
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet in which to launch the Spot Instance. |
void |
setUserData(java.lang.String userData)
The Base64-encoded MIME user data to make available to the instances. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
LaunchSpecification |
withAddressingType(java.lang.String addressingType)
|
LaunchSpecification |
withAllSecurityGroups(java.util.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(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries. |
LaunchSpecification |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. |
LaunchSpecification |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile. |
LaunchSpecification |
withImageId(java.lang.String imageId)
The ID of the AMI. |
LaunchSpecification |
withInstanceType(InstanceType instanceType)
The instance type. |
LaunchSpecification |
withInstanceType(java.lang.String instanceType)
The instance type. |
LaunchSpecification |
withKernelId(java.lang.String kernelId)
The ID of the kernel. |
LaunchSpecification |
withKeyName(java.lang.String keyName)
The name of the key pair. |
LaunchSpecification |
withMonitoringEnabled(java.lang.Boolean monitoringEnabled)
Enables monitoring for the instance. |
LaunchSpecification |
withNetworkInterfaces(java.util.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(java.lang.String ramdiskId)
The ID of the RAM disk. |
LaunchSpecification |
withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
One or more security groups. |
LaunchSpecification |
withSecurityGroups(java.lang.String... securityGroups)
One or more security groups. |
LaunchSpecification |
withSubnetId(java.lang.String subnetId)
The ID of the subnet in which to launch the Spot Instance. |
LaunchSpecification |
withUserData(java.lang.String userData)
The Base64-encoded MIME user data to make available to the instances. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LaunchSpecification()
Method Detail |
---|
public java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId
- The ID of the AMI.public LaunchSpecification withImageId(java.lang.String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The ID of the AMI.
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- The name of the key pair.public LaunchSpecification withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The name of the key pair.
public java.util.List<GroupIdentifier> getAllSecurityGroups()
public void setAllSecurityGroups(java.util.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(java.util.Collection<GroupIdentifier> allSecurityGroups)
Returns a reference to this object so that method calls can be chained together.
allSecurityGroups
- One or more security groups.
public java.util.List<java.lang.String> getSecurityGroups()
public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
securityGroups
- One or more security groups.public LaunchSpecification withSecurityGroups(java.lang.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(java.util.Collection<java.lang.String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups.
public java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData
- The Base64-encoded MIME user data to make available to the instances.public LaunchSpecification withUserData(java.lang.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 java.lang.String getAddressingType()
public void setAddressingType(java.lang.String addressingType)
addressingType
- public LaunchSpecification withAddressingType(java.lang.String addressingType)
Returns a reference to this object so that method calls can be chained together.
addressingType
-
public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, 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(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, 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(java.lang.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, 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, 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, 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 java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId
- The ID of the kernel.public LaunchSpecification withKernelId(java.lang.String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The ID of the kernel.
public java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId
- The ID of the RAM disk.public LaunchSpecification withRamdiskId(java.lang.String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The ID of the RAM disk.
public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.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(java.util.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 java.lang.Boolean isMonitoringEnabled()
Default: Disabled
Default: Disabled
public void setMonitoringEnabled(java.lang.Boolean monitoringEnabled)
Default: Disabled
monitoringEnabled
- Enables monitoring for the instance. Default: Disabled
public LaunchSpecification withMonitoringEnabled(java.lang.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 java.lang.Boolean getMonitoringEnabled()
Default: Disabled
Default: Disabled
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet in which to launch the Spot Instance.public LaunchSpecification withSubnetId(java.lang.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 java.util.List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
public void setNetworkInterfaces(java.util.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(java.util.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 java.lang.Boolean isEbsOptimized()
Default:
false
Default:
false
public void setEbsOptimized(java.lang.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(java.lang.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 java.lang.Boolean getEbsOptimized()
Default:
false
Default:
false
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |