public class SpotFleetLaunchSpecification
extends java.lang.Object
implements java.io.Serializable
Describes the launch specification for one or more Spot instances.
Constructor and Description |
---|
SpotFleetLaunchSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddressingType()
Deprecated.
|
java.util.List<BlockDeviceMapping> |
getBlockDeviceMappings()
One or more block device mapping entries.
|
java.lang.Boolean |
getEbsOptimized()
Indicates whether the instances are 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.
|
SpotFleetMonitoring |
getMonitoring()
Enable or disable monitoring for the instances.
|
java.util.List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
One or more network interfaces.
|
SpotPlacement |
getPlacement()
The placement information.
|
java.lang.String |
getRamdiskId()
The ID of the RAM disk.
|
java.util.List<GroupIdentifier> |
getSecurityGroups()
One or more security groups.
|
java.lang.String |
getSpotPrice()
The bid price per unit hour for the specified instance type.
|
java.lang.String |
getSubnetId()
The ID of the subnet in which to launch the instances.
|
java.lang.String |
getUserData()
The Base64-encoded MIME user data to make available to the instances.
|
java.lang.Double |
getWeightedCapacity()
The number of units provided by the specified instance type.
|
int |
hashCode() |
java.lang.Boolean |
isEbsOptimized()
Indicates whether the instances are optimized for EBS I/O.
|
void |
setAddressingType(java.lang.String addressingType)
Deprecated.
|
void |
setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instances are 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 |
setMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
|
void |
setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
void |
setPlacement(SpotPlacement placement)
The placement information.
|
void |
setRamdiskId(java.lang.String ramdiskId)
The ID of the RAM disk.
|
void |
setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
One or more security groups.
|
void |
setSpotPrice(java.lang.String spotPrice)
The bid price per unit hour for the specified instance type.
|
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet in which to launch the instances.
|
void |
setUserData(java.lang.String userData)
The Base64-encoded MIME user data to make available to the instances.
|
void |
setWeightedCapacity(java.lang.Double weightedCapacity)
The number of units provided by the specified instance type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotFleetLaunchSpecification |
withAddressingType(java.lang.String addressingType)
Deprecated.
|
SpotFleetLaunchSpecification |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
|
SpotFleetLaunchSpecification |
withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
SpotFleetLaunchSpecification |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the instances are optimized for EBS I/O.
|
SpotFleetLaunchSpecification |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
|
SpotFleetLaunchSpecification |
withImageId(java.lang.String imageId)
The ID of the AMI.
|
SpotFleetLaunchSpecification |
withInstanceType(InstanceType instanceType)
The instance type.
|
SpotFleetLaunchSpecification |
withInstanceType(java.lang.String instanceType)
The instance type.
|
SpotFleetLaunchSpecification |
withKernelId(java.lang.String kernelId)
The ID of the kernel.
|
SpotFleetLaunchSpecification |
withKeyName(java.lang.String keyName)
The name of the key pair.
|
SpotFleetLaunchSpecification |
withMonitoring(SpotFleetMonitoring monitoring)
Enable or disable monitoring for the instances.
|
SpotFleetLaunchSpecification |
withNetworkInterfaces(java.util.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(java.lang.String ramdiskId)
The ID of the RAM disk.
|
SpotFleetLaunchSpecification |
withSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
One or more security groups.
|
SpotFleetLaunchSpecification |
withSecurityGroups(GroupIdentifier... securityGroups)
One or more security groups.
|
SpotFleetLaunchSpecification |
withSpotPrice(java.lang.String spotPrice)
The bid price per unit hour for the specified instance type.
|
SpotFleetLaunchSpecification |
withSubnetId(java.lang.String subnetId)
The ID of the subnet in which to launch the instances.
|
SpotFleetLaunchSpecification |
withUserData(java.lang.String userData)
The Base64-encoded MIME user data to make available to the instances.
|
SpotFleetLaunchSpecification |
withWeightedCapacity(java.lang.Double weightedCapacity)
The number of units provided by the specified instance type.
|
public java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId
- The ID of the AMI.public SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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> getSecurityGroups()
public void setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
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)
Returns a reference to this object so that method calls can be chained together.
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(java.util.Collection<GroupIdentifier> securityGroups)
Returns a reference to this object so that method calls can be chained together.
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 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 SpotFleetLaunchSpecification 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
- Deprecated.public SpotFleetLaunchSpecification withAddressingType(java.lang.String addressingType)
Returns a reference to this object so that method calls can be chained together.
addressingType
- Deprecated.public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, 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, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
InstanceType
public void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, 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, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public SpotFleetLaunchSpecification withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, 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, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, 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, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, g2.8xlarge, cg1.4xlarge, 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, t2.nano, t2.micro, t2.small, t2.medium, t2.large, 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, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
instanceType
- The instance type.InstanceType
public SpotPlacement getPlacement()
public void setPlacement(SpotPlacement placement)
placement
- The placement information.public SpotFleetLaunchSpecification withPlacement(SpotPlacement placement)
Returns a reference to this object so that method calls can be chained together.
placement
- The placement information.public java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId
- The ID of the kernel.public SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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 SpotFleetMonitoring getMonitoring()
public void setMonitoring(SpotFleetMonitoring monitoring)
monitoring
- Enable or disable monitoring for the instances.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 instances.public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
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 SpotFleetLaunchSpecification 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 instances. To specify
multiple subnets, separate them using commas; for example,
"subnet-a61dafcf, subnet-65ea5f08".public java.util.List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
public void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
networkInterfaces
- One or more network interfaces.public SpotFleetLaunchSpecification withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces
- One or more network interfaces.public SpotFleetLaunchSpecification 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 SpotFleetLaunchSpecification 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 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 SpotFleetLaunchSpecification 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 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 java.lang.Boolean getEbsOptimized()
Default:
false
Default:
false
public java.lang.Double getWeightedCapacity()
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 void setWeightedCapacity(java.lang.Double weightedCapacity)
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 SpotFleetLaunchSpecification withWeightedCapacity(java.lang.Double weightedCapacity)
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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getSpotPrice()
WeightedCapacity
.WeightedCapacity
.public void setSpotPrice(java.lang.String spotPrice)
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 SpotFleetLaunchSpecification withSpotPrice(java.lang.String spotPrice)
WeightedCapacity
.
Returns a reference to this object so that method calls can be chained together.
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 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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.