@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyCapacityReservationFleetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyCapacityReservationFleetRequest>
NOOP
Constructor and Description |
---|
ModifyCapacityReservationFleetRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyCapacityReservationFleetRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCapacityReservationFleetId()
The ID of the Capacity Reservation Fleet to modify.
|
Request<ModifyCapacityReservationFleetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Date |
getEndDate()
The date and time at which the Capacity Reservation Fleet expires.
|
Boolean |
getRemoveEndDate()
Indicates whether to remove the end date from the Capacity Reservation Fleet.
|
Integer |
getTotalTargetCapacity()
The total number of capacity units to be reserved by the Capacity Reservation Fleet.
|
int |
hashCode() |
Boolean |
isRemoveEndDate()
Indicates whether to remove the end date from the Capacity Reservation Fleet.
|
void |
setCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to modify.
|
void |
setEndDate(Date endDate)
The date and time at which the Capacity Reservation Fleet expires.
|
void |
setRemoveEndDate(Boolean removeEndDate)
Indicates whether to remove the end date from 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.
|
ModifyCapacityReservationFleetRequest |
withCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to modify.
|
ModifyCapacityReservationFleetRequest |
withEndDate(Date endDate)
The date and time at which the Capacity Reservation Fleet expires.
|
ModifyCapacityReservationFleetRequest |
withRemoveEndDate(Boolean removeEndDate)
Indicates whether to remove the end date from the Capacity Reservation Fleet.
|
ModifyCapacityReservationFleetRequest |
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 ModifyCapacityReservationFleetRequest()
public void setCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to modify.
capacityReservationFleetId
- The ID of the Capacity Reservation Fleet to modify.public String getCapacityReservationFleetId()
The ID of the Capacity Reservation Fleet to modify.
public ModifyCapacityReservationFleetRequest withCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to modify.
capacityReservationFleetId
- The ID of the Capacity Reservation Fleet to modify.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 ModifyCapacityReservationFleetRequest 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
.
You can't specify EndDate and RemoveEndDate in the same request.
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
.
You can't specify EndDate and RemoveEndDate in the same request.
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
.
You can't specify EndDate and RemoveEndDate in the same request.
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
.
You can't specify EndDate and RemoveEndDate in the same request.
public ModifyCapacityReservationFleetRequest 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
.
You can't specify EndDate and RemoveEndDate in the same request.
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
.
You can't specify EndDate and RemoveEndDate in the same request.
public void setRemoveEndDate(Boolean removeEndDate)
Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
removeEndDate
- Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date,
the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using
the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
public Boolean getRemoveEndDate()
Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
You can't specify RemoveEndDate and EndDate in the same request.
public ModifyCapacityReservationFleetRequest withRemoveEndDate(Boolean removeEndDate)
Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
removeEndDate
- Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date,
the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using
the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
public Boolean isRemoveEndDate()
Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the CancelCapacityReservationFleet action.
You can't specify RemoveEndDate and EndDate in the same request.
You can't specify RemoveEndDate and EndDate in the same request.
public Request<ModifyCapacityReservationFleetRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyCapacityReservationFleetRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyCapacityReservationFleetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()