Interface ModifyCapacityReservationFleetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyCapacityReservationFleetRequest.Builder,
,ModifyCapacityReservationFleetRequest> Ec2Request.Builder
,SdkBuilder<ModifyCapacityReservationFleetRequest.Builder,
,ModifyCapacityReservationFleetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyCapacityReservationFleetRequest
-
Method Summary
Modifier and TypeMethodDescriptioncapacityReservationFleetId
(String capacityReservationFleetId) The ID of the Capacity Reservation Fleet to modify.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.The date and time at which the Capacity Reservation Fleet expires.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.removeEndDate
(Boolean removeEndDate) Indicates whether to remove the end date from the Capacity Reservation Fleet.totalTargetCapacity
(Integer totalTargetCapacity) The total number of capacity units to be reserved by the Capacity Reservation Fleet.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
capacityReservationFleetId
ModifyCapacityReservationFleetRequest.Builder capacityReservationFleetId(String capacityReservationFleetId) The ID of the Capacity Reservation Fleet to modify.
- Parameters:
capacityReservationFleetId
- The ID of the Capacity Reservation Fleet to modify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
endDate
- The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires, its state changes toexpired
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:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyCapacityReservationFleetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyCapacityReservationFleetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-