@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FleetLaunchTemplateOverridesRequest extends Object implements Serializable, Cloneable
Describes overrides for a launch template.
Constructor and Description |
---|
FleetLaunchTemplateOverridesRequest() |
Modifier and Type | Method and Description |
---|---|
FleetLaunchTemplateOverridesRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which to launch the instances.
|
String |
getInstanceType()
The instance type.
|
String |
getMaxPrice()
The maximum price per unit hour that you are willing to pay for a Spot Instance.
|
Placement |
getPlacement()
The location where the instance launched, if applicable.
|
Double |
getPriority()
The priority for the launch template override.
|
String |
getSubnetId()
The IDs of the subnets in which to launch the instances.
|
Double |
getWeightedCapacity()
The number of units provided by the specified instance type.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to launch the instances.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setMaxPrice(String maxPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance.
|
void |
setPlacement(Placement placement)
The location where the instance launched, if applicable.
|
void |
setPriority(Double priority)
The priority for the launch template override.
|
void |
setSubnetId(String subnetId)
The IDs of the subnets in which to launch 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.
|
FleetLaunchTemplateOverridesRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to launch the instances.
|
FleetLaunchTemplateOverridesRequest |
withInstanceType(InstanceType instanceType)
The instance type.
|
FleetLaunchTemplateOverridesRequest |
withInstanceType(String instanceType)
The instance type.
|
FleetLaunchTemplateOverridesRequest |
withMaxPrice(String maxPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance.
|
FleetLaunchTemplateOverridesRequest |
withPlacement(Placement placement)
The location where the instance launched, if applicable.
|
FleetLaunchTemplateOverridesRequest |
withPriority(Double priority)
The priority for the launch template override.
|
FleetLaunchTemplateOverridesRequest |
withSubnetId(String subnetId)
The IDs of the subnets in which to launch the instances.
|
FleetLaunchTemplateOverridesRequest |
withWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type.
|
public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public FleetLaunchTemplateOverridesRequest withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public FleetLaunchTemplateOverridesRequest withInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setMaxPrice(String maxPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance.
maxPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance.public String getMaxPrice()
The maximum price per unit hour that you are willing to pay for a Spot Instance.
public FleetLaunchTemplateOverridesRequest withMaxPrice(String maxPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance.
maxPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance.public void setSubnetId(String subnetId)
The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for example,
subnet-1234abcdeexample1, subnet-0987cdef6example2
). A request of type instant
can have
only one subnet ID.
subnetId
- The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for
example, subnet-1234abcdeexample1, subnet-0987cdef6example2
). A request of type
instant
can have only one subnet ID.public String getSubnetId()
The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for example,
subnet-1234abcdeexample1, subnet-0987cdef6example2
). A request of type instant
can have
only one subnet ID.
subnet-1234abcdeexample1, subnet-0987cdef6example2
). A request of type
instant
can have only one subnet ID.public FleetLaunchTemplateOverridesRequest withSubnetId(String subnetId)
The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for example,
subnet-1234abcdeexample1, subnet-0987cdef6example2
). A request of type instant
can have
only one subnet ID.
subnetId
- The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for
example, subnet-1234abcdeexample1, subnet-0987cdef6example2
). A request of type
instant
can have only one subnet ID.public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to launch the instances.
availabilityZone
- The Availability Zone in which to launch the instances.public String getAvailabilityZone()
The Availability Zone in which to launch the instances.
public FleetLaunchTemplateOverridesRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to launch the instances.
availabilityZone
- The Availability Zone in which to launch the instances.public void setWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type.
weightedCapacity
- The number of units provided by the specified instance type.public Double getWeightedCapacity()
The number of units provided by the specified instance type.
public FleetLaunchTemplateOverridesRequest withWeightedCapacity(Double weightedCapacity)
The number of units provided by the specified instance type.
weightedCapacity
- The number of units provided by the specified instance type.public void setPriority(Double priority)
The priority for the launch template override. If AllocationStrategy is set to prioritized
,
EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand
capacity. The highest priority is launched first. Valid values are whole numbers starting at 0
. The
lower the number, the higher the priority. If no number is set, the launch template override has the lowest
priority.
priority
- The priority for the launch template override. If AllocationStrategy is set to
prioritized
, EC2 Fleet uses priority to determine which launch template override to use first
in fulfilling On-Demand capacity. The highest priority is launched first. Valid values are whole numbers
starting at 0
. The lower the number, the higher the priority. If no number is set, the launch
template override has the lowest priority.public Double getPriority()
The priority for the launch template override. If AllocationStrategy is set to prioritized
,
EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand
capacity. The highest priority is launched first. Valid values are whole numbers starting at 0
. The
lower the number, the higher the priority. If no number is set, the launch template override has the lowest
priority.
prioritized
, EC2 Fleet uses priority to determine which launch template override to use
first in fulfilling On-Demand capacity. The highest priority is launched first. Valid values are whole
numbers starting at 0
. The lower the number, the higher the priority. If no number is set,
the launch template override has the lowest priority.public FleetLaunchTemplateOverridesRequest withPriority(Double priority)
The priority for the launch template override. If AllocationStrategy is set to prioritized
,
EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand
capacity. The highest priority is launched first. Valid values are whole numbers starting at 0
. The
lower the number, the higher the priority. If no number is set, the launch template override has the lowest
priority.
priority
- The priority for the launch template override. If AllocationStrategy is set to
prioritized
, EC2 Fleet uses priority to determine which launch template override to use first
in fulfilling On-Demand capacity. The highest priority is launched first. Valid values are whole numbers
starting at 0
. The lower the number, the higher the priority. If no number is set, the launch
template override has the lowest priority.public void setPlacement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.public Placement getPlacement()
The location where the instance launched, if applicable.
public FleetLaunchTemplateOverridesRequest withPlacement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.public String toString()
toString
in class Object
Object.toString()
public FleetLaunchTemplateOverridesRequest clone()