@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReservationFleetInstanceSpecification extends Object implements Serializable, Cloneable
Information about an instance type to use in a Capacity Reservation Fleet.
Constructor and Description |
---|
ReservationFleetInstanceSpecification() |
Modifier and Type | Method and Description |
---|---|
ReservationFleetInstanceSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
String |
getAvailabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
Boolean |
getEbsOptimized()
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
|
String |
getInstancePlatform()
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
|
String |
getInstanceType()
The instance type for which the Capacity Reservation Fleet reserves capacity.
|
Integer |
getPriority()
The priority to assign to the instance type.
|
Double |
getWeight()
The number of capacity units provided by the specified instance type.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
void |
setAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
|
void |
setInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
|
void |
setInstanceType(String instanceType)
The instance type for which the Capacity Reservation Fleet reserves capacity.
|
void |
setPriority(Integer priority)
The priority to assign to the instance type.
|
void |
setWeight(Double weight)
The number of capacity units provided by the specified instance type.
|
String |
toString()
Returns a string representation of this object.
|
ReservationFleetInstanceSpecification |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
ReservationFleetInstanceSpecification |
withAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
|
ReservationFleetInstanceSpecification |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
|
ReservationFleetInstanceSpecification |
withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
|
ReservationFleetInstanceSpecification |
withInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
|
ReservationFleetInstanceSpecification |
withInstanceType(InstanceType instanceType)
The instance type for which the Capacity Reservation Fleet reserves capacity.
|
ReservationFleetInstanceSpecification |
withInstanceType(String instanceType)
The instance type for which the Capacity Reservation Fleet reserves capacity.
|
ReservationFleetInstanceSpecification |
withPriority(Integer priority)
The priority to assign to the instance type.
|
ReservationFleetInstanceSpecification |
withWeight(Double weight)
The number of capacity units provided by the specified instance type.
|
public ReservationFleetInstanceSpecification()
public void setInstanceType(String instanceType)
The instance type for which the Capacity Reservation Fleet reserves capacity.
instanceType
- The instance type for which the Capacity Reservation Fleet reserves capacity.InstanceType
public String getInstanceType()
The instance type for which the Capacity Reservation Fleet reserves capacity.
InstanceType
public ReservationFleetInstanceSpecification withInstanceType(String instanceType)
The instance type for which the Capacity Reservation Fleet reserves capacity.
instanceType
- The instance type for which the Capacity Reservation Fleet reserves capacity.InstanceType
public ReservationFleetInstanceSpecification withInstanceType(InstanceType instanceType)
The instance type for which the Capacity Reservation Fleet reserves capacity.
instanceType
- The instance type for which the Capacity Reservation Fleet reserves capacity.InstanceType
public void setInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
instancePlatform
- The type of operating system for which the Capacity Reservation Fleet reserves capacity.CapacityReservationInstancePlatform
public String getInstancePlatform()
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
CapacityReservationInstancePlatform
public ReservationFleetInstanceSpecification withInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
instancePlatform
- The type of operating system for which the Capacity Reservation Fleet reserves capacity.CapacityReservationInstancePlatform
public ReservationFleetInstanceSpecification withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
instancePlatform
- The type of operating system for which the Capacity Reservation Fleet reserves capacity.CapacityReservationInstancePlatform
public void setWeight(Double weight)
The number of capacity units provided by the specified instance type. This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
weight
- The number of capacity units provided by the specified instance type. This value, together with the total
target capacity that you specify for the Fleet determine the number of instances for which the Fleet
reserves capacity. Both values are based on units that make sense for your workload. For more information,
see Total
target capacity in the Amazon EC2 User Guide.public Double getWeight()
The number of capacity units provided by the specified instance type. This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
public ReservationFleetInstanceSpecification withWeight(Double weight)
The number of capacity units provided by the specified instance type. This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
weight
- The number of capacity units provided by the specified instance type. This value, together with the total
target capacity that you specify for the Fleet determine the number of instances for which the Fleet
reserves capacity. Both values are based on units that make sense for your workload. For more information,
see Total
target capacity in the Amazon EC2 User Guide.public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
availabilityZone
- The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity
Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the
Fleet must use the same Availability Zone.public String getAvailabilityZone()
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
public ReservationFleetInstanceSpecification withAvailabilityZone(String availabilityZone)
The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
availabilityZone
- The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity
Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the
Fleet must use the same Availability Zone.public void setAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
availabilityZoneId
- The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity
Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the
Fleet must use the same Availability Zone.public String getAvailabilityZoneId()
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
public ReservationFleetInstanceSpecification withAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.
availabilityZoneId
- The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. A Capacity
Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the
Fleet must use the same Availability Zone.public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.
ebsOptimized
- Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization
provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using EBS-optimized instance types.public Boolean getEbsOptimized()
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.
public ReservationFleetInstanceSpecification withEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.
ebsOptimized
- Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization
provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using EBS-optimized instance types.public Boolean isEbsOptimized()
Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.
public void setPriority(Integer priority)
The priority to assign to the instance type. This value is used to determine which of the instance types specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more information, see Instance type priority in the Amazon EC2 User Guide.
priority
- The priority to assign to the instance type. This value is used to determine which of the instance types
specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more
information, see Instance type priority in the Amazon EC2 User Guide.public Integer getPriority()
The priority to assign to the instance type. This value is used to determine which of the instance types specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more information, see Instance type priority in the Amazon EC2 User Guide.
public ReservationFleetInstanceSpecification withPriority(Integer priority)
The priority to assign to the instance type. This value is used to determine which of the instance types specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more information, see Instance type priority in the Amazon EC2 User Guide.
priority
- The priority to assign to the instance type. This value is used to determine which of the instance types
specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more
information, see Instance type priority in the Amazon EC2 User Guide.public String toString()
toString
in class Object
Object.toString()
public ReservationFleetInstanceSpecification clone()