public static interface ModifyCapacityReservationRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyCapacityReservationRequest.Builder,ModifyCapacityReservationRequest>
Modifier and Type | Method and Description |
---|---|
ModifyCapacityReservationRequest.Builder |
capacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
ModifyCapacityReservationRequest.Builder |
endDate(Instant endDate)
The date and time at which the Capacity Reservation expires.
|
ModifyCapacityReservationRequest.Builder |
endDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends.
|
ModifyCapacityReservationRequest.Builder |
endDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
ModifyCapacityReservationRequest.Builder |
instanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
|
ModifyCapacityReservationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
ModifyCapacityReservationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
ModifyCapacityReservationRequest.Builder capacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.ModifyCapacityReservationRequest.Builder instanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
instanceCount
- The number of instances for which to reserve capacity.ModifyCapacityReservationRequest.Builder endDate(Instant endDate)
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's
state changes to expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
endDate
- The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity
Reservation's state changes to expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
.
Omit EndDate
if EndDateType
is unlimited
.
ModifyCapacityReservationRequest.Builder endDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if EndDateType
is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do
not provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time.
You must provide an EndDate
value if EndDateType
is limited
.
EndDateType
,
EndDateType
ModifyCapacityReservationRequest.Builder endDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if EndDateType
is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do
not provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time.
You must provide an EndDate
value if EndDateType
is limited
.
EndDateType
,
EndDateType
ModifyCapacityReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.ModifyCapacityReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.