Class ModifyCapacityReservationFleetRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.ec2.model.Ec2Request
-
- software.amazon.awssdk.services.ec2.model.ModifyCapacityReservationFleetRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<ModifyCapacityReservationFleetRequest.Builder,ModifyCapacityReservationFleetRequest>
@Generated("software.amazon.awssdk:codegen") public final class ModifyCapacityReservationFleetRequest extends Ec2Request implements ToCopyableBuilder<ModifyCapacityReservationFleetRequest.Builder,ModifyCapacityReservationFleetRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ModifyCapacityReservationFleetRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModifyCapacityReservationFleetRequest.Builder
builder()
String
capacityReservationFleetId()
The ID of the Capacity Reservation Fleet to modify.Boolean
dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.Instant
endDate()
The date and time at which the Capacity Reservation Fleet expires.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Boolean
removeEndDate()
Indicates whether to remove the end date from the Capacity Reservation Fleet.List<SdkField<?>>
sdkFields()
static Class<? extends ModifyCapacityReservationFleetRequest.Builder>
serializableBuilderClass()
ModifyCapacityReservationFleetRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Integer
totalTargetCapacity()
The total number of capacity units to be reserved by the Capacity Reservation Fleet.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
capacityReservationFleetId
public final String capacityReservationFleetId()
The ID of the Capacity Reservation Fleet to modify.
- Returns:
- The ID of the Capacity Reservation Fleet to modify.
-
totalTargetCapacity
public final 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.
- Returns:
- 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.
-
endDate
public final Instant 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 between13:30:55
and14:30:55
on5/31/2019
.You can't specify EndDate and RemoveEndDate in the same request.
- Returns:
- 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 between13:30:55
and14:30:55
on5/31/2019
.You can't specify EndDate and RemoveEndDate in the same request.
-
dryRun
public final Boolean dryRun()
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.
-
removeEndDate
public final 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.
- Returns:
- 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.
-
toBuilder
public ModifyCapacityReservationFleetRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ModifyCapacityReservationFleetRequest.Builder,ModifyCapacityReservationFleetRequest>
- Specified by:
toBuilder
in classEc2Request
-
builder
public static ModifyCapacityReservationFleetRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ModifyCapacityReservationFleetRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
-