@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCapacityReservationFleetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateCapacityReservationFleetRequest>
NOOP
Constructor and Description |
---|
CreateCapacityReservationFleetRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCapacityReservationFleetRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAllocationStrategy()
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
Request<CreateCapacityReservationFleetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Date |
getEndDate()
The date and time at which the Capacity Reservation Fleet expires.
|
String |
getInstanceMatchCriteria()
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
|
List<ReservationFleetInstanceSpecification> |
getInstanceTypeSpecifications()
Information about the instance types for which to reserve the capacity.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to the Capacity Reservation Fleet.
|
String |
getTenancy()
Indicates the tenancy of the Capacity Reservation Fleet.
|
Integer |
getTotalTargetCapacity()
The total number of capacity units to be reserved by the Capacity Reservation Fleet.
|
int |
hashCode() |
void |
setAllocationStrategy(String allocationStrategy)
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setEndDate(Date endDate)
The date and time at which the Capacity Reservation Fleet expires.
|
void |
setInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
|
void |
setInstanceTypeSpecifications(Collection<ReservationFleetInstanceSpecification> instanceTypeSpecifications)
Information about the instance types for which to reserve the capacity.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Capacity Reservation Fleet.
|
void |
setTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation Fleet.
|
void |
setTotalTargetCapacity(Integer totalTargetCapacity)
The total number of capacity units to be reserved by the Capacity Reservation Fleet.
|
String |
toString()
Returns a string representation of this object.
|
CreateCapacityReservationFleetRequest |
withAllocationStrategy(String allocationStrategy)
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
|
CreateCapacityReservationFleetRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateCapacityReservationFleetRequest |
withEndDate(Date endDate)
The date and time at which the Capacity Reservation Fleet expires.
|
CreateCapacityReservationFleetRequest |
withInstanceMatchCriteria(FleetInstanceMatchCriteria instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
|
CreateCapacityReservationFleetRequest |
withInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation Fleet accepts.
|
CreateCapacityReservationFleetRequest |
withInstanceTypeSpecifications(Collection<ReservationFleetInstanceSpecification> instanceTypeSpecifications)
Information about the instance types for which to reserve the capacity.
|
CreateCapacityReservationFleetRequest |
withInstanceTypeSpecifications(ReservationFleetInstanceSpecification... instanceTypeSpecifications)
Information about the instance types for which to reserve the capacity.
|
CreateCapacityReservationFleetRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Capacity Reservation Fleet.
|
CreateCapacityReservationFleetRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the Capacity Reservation Fleet.
|
CreateCapacityReservationFleetRequest |
withTenancy(FleetCapacityReservationTenancy tenancy)
Indicates the tenancy of the Capacity Reservation Fleet.
|
CreateCapacityReservationFleetRequest |
withTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation Fleet.
|
CreateCapacityReservationFleetRequest |
withTotalTargetCapacity(Integer totalTargetCapacity)
The total number of capacity units to be reserved by the Capacity Reservation Fleet.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateCapacityReservationFleetRequest()
public void setAllocationStrategy(String allocationStrategy)
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
Currently, only the prioritized
allocation strategy is supported. For more information, see Allocation
strategy in the Amazon EC2 User Guide.
Valid values: prioritized
allocationStrategy
- The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to
use. Currently, only the prioritized
allocation strategy is supported. For more information,
see
Allocation strategy in the Amazon EC2 User Guide.
Valid values: prioritized
public String getAllocationStrategy()
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
Currently, only the prioritized
allocation strategy is supported. For more information, see Allocation
strategy in the Amazon EC2 User Guide.
Valid values: prioritized
prioritized
allocation strategy is supported. For more information,
see
Allocation strategy in the Amazon EC2 User Guide.
Valid values: prioritized
public CreateCapacityReservationFleetRequest withAllocationStrategy(String allocationStrategy)
The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use.
Currently, only the prioritized
allocation strategy is supported. For more information, see Allocation
strategy in the Amazon EC2 User Guide.
Valid values: prioritized
allocationStrategy
- The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to
use. Currently, only the prioritized
allocation strategy is supported. For more information,
see
Allocation strategy in the Amazon EC2 User Guide.
Valid values: prioritized
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensure
Idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
public CreateCapacityReservationFleetRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensure
Idempotency.public List<ReservationFleetInstanceSpecification> getInstanceTypeSpecifications()
Information about the instance types for which to reserve the capacity.
public void setInstanceTypeSpecifications(Collection<ReservationFleetInstanceSpecification> instanceTypeSpecifications)
Information about the instance types for which to reserve the capacity.
instanceTypeSpecifications
- Information about the instance types for which to reserve the capacity.public CreateCapacityReservationFleetRequest withInstanceTypeSpecifications(ReservationFleetInstanceSpecification... instanceTypeSpecifications)
Information about the instance types for which to reserve the capacity.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTypeSpecifications(java.util.Collection)
or
withInstanceTypeSpecifications(java.util.Collection)
if you want to override the existing values.
instanceTypeSpecifications
- Information about the instance types for which to reserve the capacity.public CreateCapacityReservationFleetRequest withInstanceTypeSpecifications(Collection<ReservationFleetInstanceSpecification> instanceTypeSpecifications)
Information about the instance types for which to reserve the capacity.
instanceTypeSpecifications
- Information about the instance types for which to reserve the capacity.public void setTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
tenancy
- Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit
this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other
Amazon Web Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
FleetCapacityReservationTenancy
public String getTenancy()
Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
default
- The Capacity Reservation Fleet is created on hardware that is shared with other
Amazon Web Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is
dedicated to a single Amazon Web Services account.
FleetCapacityReservationTenancy
public CreateCapacityReservationFleetRequest withTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
tenancy
- Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit
this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other
Amazon Web Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
FleetCapacityReservationTenancy
public CreateCapacityReservationFleetRequest withTenancy(FleetCapacityReservationTenancy tenancy)
Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
tenancy
- Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit
this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
default
- The Capacity Reservation Fleet is created on hardware that is shared with other
Amazon Web Services accounts.
dedicated
- The Capacity Reservations are created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
FleetCapacityReservationTenancy
public void setTotalTargetCapacity(Integer totalTargetCapacity)
The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by 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.
totalTargetCapacity
- The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together
with the instance type weights that you assign to each instance type used by 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 Integer getTotalTargetCapacity()
The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by 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 CreateCapacityReservationFleetRequest withTotalTargetCapacity(Integer totalTargetCapacity)
The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by 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.
totalTargetCapacity
- The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together
with the instance type weights that you assign to each instance type used by 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 setEndDate(Date endDate)
The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
its state changes to expired
and all of the Capacity Reservations in the Fleet expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
13:30:55
and 14:30:55
on 5/31/2019
.
endDate
- The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet
expires, its state changes to expired
and all of the Capacity Reservations in the Fleet
expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to
expire between 13:30:55
and 14:30:55
on 5/31/2019
.
public Date getEndDate()
The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
its state changes to expired
and all of the Capacity Reservations in the Fleet expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
13:30:55
and 14:30:55
on 5/31/2019
.
expired
and all of the Capacity Reservations in the Fleet
expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to
expire between 13:30:55
and 14:30:55
on 5/31/2019
.
public CreateCapacityReservationFleetRequest withEndDate(Date endDate)
The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
its state changes to expired
and all of the Capacity Reservations in the Fleet expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
13:30:55
and 14:30:55
on 5/31/2019
.
endDate
- The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet
expires, its state changes to expired
and all of the Capacity Reservations in the Fleet
expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to
expire between 13:30:55
and 14:30:55
on 5/31/2019
.
public void setInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This means that
instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity
Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its
reserved capacity.
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity
Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This
means that instances that have matching attributes (instance type, platform, and Availability Zone) run in
the Capacity Reservations automatically. Instances do not need to explicitly target a Capacity Reservation
Fleet to use its reserved capacity.
FleetInstanceMatchCriteria
public String getInstanceMatchCriteria()
Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This means that
instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity
Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its
reserved capacity.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This
means that instances that have matching attributes (instance type, platform, and Availability Zone) run
in the Capacity Reservations automatically. Instances do not need to explicitly target a Capacity
Reservation Fleet to use its reserved capacity.
FleetInstanceMatchCriteria
public CreateCapacityReservationFleetRequest withInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This means that
instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity
Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its
reserved capacity.
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity
Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This
means that instances that have matching attributes (instance type, platform, and Availability Zone) run in
the Capacity Reservations automatically. Instances do not need to explicitly target a Capacity Reservation
Fleet to use its reserved capacity.
FleetInstanceMatchCriteria
public CreateCapacityReservationFleetRequest withInstanceMatchCriteria(FleetInstanceMatchCriteria instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This means that
instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity
Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its
reserved capacity.
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity
Reservations in the Fleet inherit this instance matching criteria.
Currently, Capacity Reservation Fleets support open
instance matching criteria only. This
means that instances that have matching attributes (instance type, platform, and Availability Zone) run in
the Capacity Reservations automatically. Instances do not need to explicitly target a Capacity Reservation
Fleet to use its reserved capacity.
FleetInstanceMatchCriteria
public List<TagSpecification> getTagSpecifications()
The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
tagSpecifications
- The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity
Reservations in the Fleet.public CreateCapacityReservationFleetRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
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 assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity
Reservations in the Fleet.public CreateCapacityReservationFleetRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
tagSpecifications
- The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity
Reservations in the Fleet.public Request<CreateCapacityReservationFleetRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateCapacityReservationFleetRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateCapacityReservationFleetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()