@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotFleetLaunchSpecification extends Object implements Serializable, Cloneable
Describes the launch specification for one or more Spot instances.
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 instances are 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.
|
SpotFleetMonitoring |
getMonitoring()
Enable or disable monitoring for the instances.
|
List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
One or more network interfaces.
|
SpotPlacement |
getPlacement()
The placement information.
|
String |
getRamdiskId()
The ID of the RAM disk.
|
List<GroupIdentifier> |
getSecurityGroups()
One or more security groups.
|
String |
getSpotPrice()
The bid price per unit hour for the specified instance type.
|
String |
getSubnetId()
The ID of the subnet in which to launch the instances.
|
List<SpotFleetTagSpecification> |
getTagSpecifications()
The tags to apply during creation.
|
String |
getUserData()
The user data to make available to the instances.
|
Double |
getWeightedCapacity()
The number of units provided by the specified instance type.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the instances are 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 instances are 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 |
setMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
|
void |
setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
void |
setPlacement(SpotPlacement placement)
The placement information.
|
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk.
|
void |
setSecurityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups.
|
void |
setSpotPrice(String spotPrice)
The bid price per unit hour for the specified instance type.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which to launch the instances.
|
void |
setTagSpecifications(Collection<SpotFleetTagSpecification> tagSpecifications)
The tags to apply during creation.
|
void |
setUserData(String userData)
The user data to make available to the instances.
|
void |
setWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type.
|
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 instances are optimized for EBS I/O.
|
SpotFleetLaunchSpecification |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The 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 instances.
|
SpotFleetLaunchSpecification |
withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
SpotFleetLaunchSpecification |
withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces.
|
SpotFleetLaunchSpecification |
withPlacement(SpotPlacement placement)
The placement information.
|
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 |
withSpotPrice(String spotPrice)
The bid price per unit hour for the specified instance type.
|
SpotFleetLaunchSpecification |
withSubnetId(String subnetId)
The ID of the subnet in which to launch the instances.
|
SpotFleetLaunchSpecification |
withTagSpecifications(Collection<SpotFleetTagSpecification> tagSpecifications)
The tags to apply during creation.
|
SpotFleetLaunchSpecification |
withTagSpecifications(SpotFleetTagSpecification... tagSpecifications)
The tags to apply during creation.
|
SpotFleetLaunchSpecification |
withUserData(String userData)
The user data to make available to the instances.
|
SpotFleetLaunchSpecification |
withWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type.
|
public List<GroupIdentifier> getSecurityGroups()
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 setSecurityGroups(Collection<GroupIdentifier> securityGroups)
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.
securityGroups
- 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 SpotFleetLaunchSpecification withSecurityGroups(GroupIdentifier... securityGroups)
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
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- 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 SpotFleetLaunchSpecification withSecurityGroups(Collection<GroupIdentifier> securityGroups)
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.
securityGroups
- 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 setAddressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.public String getAddressingType()
Deprecated.
public SpotFleetLaunchSpecification withAddressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.public List<BlockDeviceMapping> getBlockDeviceMappings()
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
blockDeviceMappings
- One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value.
This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume,
it is not blank and its encryption status is used for the volume encryption status.public SpotFleetLaunchSpecification withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
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. You can't specify both a snapshot ID and an encryption value.
This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume,
it is not blank and its encryption status is used for the volume encryption status.public SpotFleetLaunchSpecification withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
blockDeviceMappings
- One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value.
This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume,
it is not blank and its encryption status is used for the volume encryption status.public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instances are 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 instances are 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 instances are 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 SpotFleetLaunchSpecification withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instances are 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 instances are 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 instances are 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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification withImageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setInstanceType(String instanceType)
The instance type. Note that T2 and HS1 instance types are not supported.
instanceType
- The instance type. Note that T2 and HS1 instance types are not supported.InstanceType
public String getInstanceType()
The instance type. Note that T2 and HS1 instance types are not supported.
InstanceType
public SpotFleetLaunchSpecification withInstanceType(String instanceType)
The instance type. Note that T2 and HS1 instance types are not supported.
instanceType
- The instance type. Note that T2 and HS1 instance types are not supported.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type. Note that T2 and HS1 instance types are not supported.
instanceType
- The instance type. Note that T2 and HS1 instance types are not supported.InstanceType
public SpotFleetLaunchSpecification withInstanceType(InstanceType instanceType)
The instance type. Note that T2 and HS1 instance types are not supported.
instanceType
- The instance type. Note that T2 and HS1 instance types are not supported.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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification withKeyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.public void setMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
monitoring
- Enable or disable monitoring for the instances.public SpotFleetMonitoring getMonitoring()
Enable or disable monitoring for the instances.
public SpotFleetLaunchSpecification withMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
monitoring
- Enable or disable monitoring for the instances.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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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.
placement
- The placement information.public SpotPlacement getPlacement()
The placement information.
public SpotFleetLaunchSpecification withPlacement(SpotPlacement placement)
The placement information.
placement
- The placement information.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 SpotFleetLaunchSpecification withRamdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.public void setSpotPrice(String spotPrice)
The bid price per unit hour for the specified instance type. If this value is not specified, the default is the
Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by
the value of WeightedCapacity
.
spotPrice
- The bid price per unit hour for the specified instance type. If this value is not specified, the default
is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot
bid price by the value of WeightedCapacity
.public String getSpotPrice()
The bid price per unit hour for the specified instance type. If this value is not specified, the default is the
Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by
the value of WeightedCapacity
.
WeightedCapacity
.public SpotFleetLaunchSpecification withSpotPrice(String spotPrice)
The bid price per unit hour for the specified instance type. If this value is not specified, the default is the
Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot bid price by
the value of WeightedCapacity
.
spotPrice
- The bid price per unit hour for the specified instance type. If this value is not specified, the default
is the Spot bid price specified for the fleet. To determine the bid price per unit hour, divide the Spot
bid price by the value of WeightedCapacity
.public void setSubnetId(String subnetId)
The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
subnetId
- The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using
commas; for example, "subnet-a61dafcf, subnet-65ea5f08".public String getSubnetId()
The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
public SpotFleetLaunchSpecification withSubnetId(String subnetId)
The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
subnetId
- The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using
commas; for example, "subnet-a61dafcf, subnet-65ea5f08".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 SpotFleetLaunchSpecification 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 setWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
weightedCapacity
- The number of units provided by the specified instance type. These are the same units that you chose to
set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or
I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
public Double getWeightedCapacity()
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
public SpotFleetLaunchSpecification withWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
weightedCapacity
- The number of units provided by the specified instance type. These are the same units that you chose to
set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or
I/O).
If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.
public List<SpotFleetTagSpecification> getTagSpecifications()
The tags to apply during creation.
public void setTagSpecifications(Collection<SpotFleetTagSpecification> tagSpecifications)
The tags to apply during creation.
tagSpecifications
- The tags to apply during creation.public SpotFleetLaunchSpecification withTagSpecifications(SpotFleetTagSpecification... tagSpecifications)
The tags to apply during creation.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply during creation.public SpotFleetLaunchSpecification withTagSpecifications(Collection<SpotFleetTagSpecification> tagSpecifications)
The tags to apply during creation.
tagSpecifications
- The tags to apply during creation.public String toString()
toString
in class Object
Object.toString()
public SpotFleetLaunchSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.