Class ModifyCapacityReservationFleetRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ModifyCapacityReservationFleetRequest.Builder,ModifyCapacityReservationFleetRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe ID of the Capacity Reservation Fleet to modify.final BooleandryRun()Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.final InstantendDate()The date and time at which the Capacity Reservation Fleet expires.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final BooleanIndicates whether to remove the end date from the Capacity Reservation Fleet.static Class<? extends ModifyCapacityReservationFleetRequest.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final IntegerThe total number of capacity units to be reserved by the Capacity Reservation Fleet.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
capacityReservationFleetId
The ID of the Capacity Reservation Fleet to modify.
- Returns:
- The ID of the Capacity Reservation Fleet to modify.
-
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
The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires, its state changes to
expiredand 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:55and14:30:55on5/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
expiredand 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:55and14:30:55on5/31/2019.You can't specify EndDate and RemoveEndDate in the same request.
-
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ModifyCapacityReservationFleetRequest.Builder,ModifyCapacityReservationFleetRequest> - Specified by:
toBuilderin classEc2Request- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends ModifyCapacityReservationFleetRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-