public class SpotFleetLaunchSpecification extends Object implements Serializable, Cloneable
Describes the launch specification for an instance.
Constructor and Description |
---|
SpotFleetLaunchSpecification() |
Modifier and Type | Method and Description |
---|---|
SpotFleetLaunchSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getAddressingType()
Deprecated.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
One or more block device mapping entries.
|
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for EBS I/O.
|
IamInstanceProfileSpecification |
getIamInstanceProfile()
Describes an 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.
|
SpotFleetMonitoring |
getMonitoring()
Enable or disable monitoring for the instance.
|
List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
One or more network interfaces.
|
SpotPlacement |
getPlacement()
Describes Spot Instance placement.
|
String |
getRamdiskId()
The ID of the RAM disk.
|
List<GroupIdentifier> |
getSecurityGroups()
One or more security groups.
|
String |
getSubnetId()
The ID of the subnet in which to launch the 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.
|
void |
setAddressingType(String addressingType)
Deprecated.
|
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)
Describes an 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 |
setMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instance.
|
void |
setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
void |
setPlacement(SpotPlacement placement)
Describes Spot Instance placement.
|
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk.
|
void |
setSecurityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which to launch the 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.
|
SpotFleetLaunchSpecification |
withAddressingType(String addressingType)
Deprecated.
|
SpotFleetLaunchSpecification |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
|
SpotFleetLaunchSpecification |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
SpotFleetLaunchSpecification |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O.
|
SpotFleetLaunchSpecification |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Describes an IAM instance profile.
|
SpotFleetLaunchSpecification |
withImageId(String imageId)
The ID of the AMI.
|
SpotFleetLaunchSpecification |
withInstanceType(InstanceType instanceType)
The instance type.
|
SpotFleetLaunchSpecification |
withInstanceType(String instanceType)
The instance type.
|
SpotFleetLaunchSpecification |
withKernelId(String kernelId)
The ID of the kernel.
|
SpotFleetLaunchSpecification |
withKeyName(String keyName)
The name of the key pair.
|
SpotFleetLaunchSpecification |
withMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instance.
|
SpotFleetLaunchSpecification |
withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
SpotFleetLaunchSpecification |
withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces.
|
SpotFleetLaunchSpecification |
withPlacement(SpotPlacement placement)
Describes Spot Instance placement.
|
SpotFleetLaunchSpecification |
withRamdiskId(String ramdiskId)
The ID of the RAM disk.
|
SpotFleetLaunchSpecification |
withSecurityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups.
|
SpotFleetLaunchSpecification |
withSecurityGroups(GroupIdentifier... securityGroups)
One or more security groups.
|
SpotFleetLaunchSpecification |
withSubnetId(String subnetId)
The ID of the subnet in which to launch the instance.
|
SpotFleetLaunchSpecification |
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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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> getSecurityGroups()
public void setSecurityGroups(Collection<GroupIdentifier> securityGroups)
securityGroups
- One or more security groups. To request an instance in a nondefault
VPC, you must specify the ID of the security group. To request an
instance in EC2-Classic or a default VPC, you can specify the name or
the ID of the security group.public SpotFleetLaunchSpecification withSecurityGroups(GroupIdentifier... securityGroups)
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.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups. To request an instance in a nondefault
VPC, you must specify the ID of the security group. To request an
instance in EC2-Classic or a default VPC, you can specify the name or
the ID of the security group.public SpotFleetLaunchSpecification withSecurityGroups(Collection<GroupIdentifier> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- One or more security groups. To request an instance in a nondefault
VPC, you must specify the ID of the security group. To request an
instance in EC2-Classic or a default VPC, you can specify the name or
the ID of the security group.public String getUserData()
public void setUserData(String userData)
userData
- The Base64-encoded MIME user data to make available to the instances.public SpotFleetLaunchSpecification 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
- Deprecated.public SpotFleetLaunchSpecification withAddressingType(String addressingType)
Returns a reference to this object so that method calls can be chained together.
addressingType
- Deprecated.public String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, t2.micro, t2.small, t2.medium, t2.large, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.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, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, t2.micro, t2.small, t2.medium, t2.large, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public SpotFleetLaunchSpecification 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, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, t2.micro, t2.small, t2.medium, t2.large, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.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, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, t2.micro, t2.small, t2.medium, t2.large, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public SpotFleetLaunchSpecification 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, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, t2.micro, t2.small, t2.medium, t2.large, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public SpotPlacement getPlacement()
public void setPlacement(SpotPlacement placement)
placement
- Describes Spot Instance placement.public SpotFleetLaunchSpecification withPlacement(SpotPlacement placement)
Returns a reference to this object so that method calls can be chained together.
placement
- Describes Spot Instance placement.public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The ID of the kernel.public SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
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.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- One or more block device mapping entries.public SpotFleetLaunchSpecification 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 SpotFleetMonitoring getMonitoring()
public void setMonitoring(SpotFleetMonitoring monitoring)
monitoring
- Enable or disable monitoring for the instance.public SpotFleetLaunchSpecification withMonitoring(SpotFleetMonitoring monitoring)
Returns a reference to this object so that method calls can be chained together.
monitoring
- Enable or disable monitoring for the instance.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet in which to launch the instance.public SpotFleetLaunchSpecification 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 instance.public List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
public void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
networkInterfaces
- One or more network interfaces.public SpotFleetLaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
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.
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- One or more network interfaces.public SpotFleetLaunchSpecification 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
- Describes an IAM instance profile.public SpotFleetLaunchSpecification withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile
- Describes an 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 SpotFleetLaunchSpecification 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()
public SpotFleetLaunchSpecification clone()
Copyright © 2015. All rights reserved.