Interface ModifyCapacityReservationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyCapacityReservationRequest.Builder,ModifyCapacityReservationRequest>,Ec2Request.Builder,SdkBuilder<ModifyCapacityReservationRequest.Builder,ModifyCapacityReservationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ModifyCapacityReservationRequest
public static interface ModifyCapacityReservationRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyCapacityReservationRequest.Builder,ModifyCapacityReservationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModifyCapacityReservationRequest.Builderaccept(Boolean accept)Reserved.ModifyCapacityReservationRequest.BuilderadditionalInfo(String additionalInfo)Reserved for future use.ModifyCapacityReservationRequest.BuildercapacityReservationId(String capacityReservationId)The ID of the Capacity Reservation.ModifyCapacityReservationRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.ModifyCapacityReservationRequest.BuilderendDate(Instant endDate)The date and time at which the Capacity Reservation expires.ModifyCapacityReservationRequest.BuilderendDateType(String endDateType)Indicates the way in which the Capacity Reservation ends.ModifyCapacityReservationRequest.BuilderendDateType(EndDateType endDateType)Indicates the way in which the Capacity Reservation ends.ModifyCapacityReservationRequest.BuilderinstanceCount(Integer instanceCount)The number of instances for which to reserve capacity.ModifyCapacityReservationRequest.BuilderinstanceMatchCriteria(String instanceMatchCriteria)The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation.ModifyCapacityReservationRequest.BuilderinstanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria)The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation.ModifyCapacityReservationRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ModifyCapacityReservationRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
capacityReservationId
ModifyCapacityReservationRequest.Builder capacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
- Parameters:
capacityReservationId- The ID of the Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
ModifyCapacityReservationRequest.Builder instanceCount(Integer instanceCount)
The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by more than
1000in a single request.- Parameters:
instanceCount- The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by more than1000in a single request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
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
expiredwhen 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
EndDatevalue ifEndDateTypeislimited. OmitEndDateifEndDateTypeisunlimited.- Parameters:
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 toexpiredwhen 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
EndDatevalue ifEndDateTypeislimited. OmitEndDateifEndDateTypeisunlimited.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDateType
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 anEndDatevalue ifEndDateTypeisunlimited. -
limited- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDatevalue ifEndDateTypeislimited.
- Parameters:
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 anEndDatevalue ifEndDateTypeisunlimited. -
limited- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDatevalue ifEndDateTypeislimited.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EndDateType,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 anEndDatevalue ifEndDateTypeisunlimited. -
limited- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDatevalue ifEndDateTypeislimited.
- Parameters:
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 anEndDatevalue ifEndDateTypeisunlimited. -
limited- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDatevalue ifEndDateTypeislimited.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EndDateType,EndDateType
-
-
accept
ModifyCapacityReservationRequest.Builder accept(Boolean accept)
Reserved. Capacity Reservations you have created are accepted by default.
- Parameters:
accept- Reserved. Capacity Reservations you have created are accepted by default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
ModifyCapacityReservationRequest.Builder dryRun(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.- 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.
-
additionalInfo
ModifyCapacityReservationRequest.Builder additionalInfo(String additionalInfo)
Reserved for future use.
- Parameters:
additionalInfo- Reserved for future use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMatchCriteria
ModifyCapacityReservationRequest.Builder instanceMatchCriteria(String instanceMatchCriteria)
The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation. If you change the instance eligibility of an existing Capacity Reservation from
targetedtoopen, any running instances that match the attributes of the Capacity Reservation, have theCapacityReservationPreferenceset toopen, and are not yet running in the Capacity Reservation, will automatically use the modified Capacity Reservation.To modify the instance eligibility, the Capacity Reservation must be completely idle (zero usage).
- Parameters:
instanceMatchCriteria- The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation. If you change the instance eligibility of an existing Capacity Reservation fromtargetedtoopen, any running instances that match the attributes of the Capacity Reservation, have theCapacityReservationPreferenceset toopen, and are not yet running in the Capacity Reservation, will automatically use the modified Capacity Reservation.To modify the instance eligibility, the Capacity Reservation must be completely idle (zero usage).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceMatchCriteria,InstanceMatchCriteria
-
instanceMatchCriteria
ModifyCapacityReservationRequest.Builder instanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria)
The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation. If you change the instance eligibility of an existing Capacity Reservation from
targetedtoopen, any running instances that match the attributes of the Capacity Reservation, have theCapacityReservationPreferenceset toopen, and are not yet running in the Capacity Reservation, will automatically use the modified Capacity Reservation.To modify the instance eligibility, the Capacity Reservation must be completely idle (zero usage).
- Parameters:
instanceMatchCriteria- The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation. If you change the instance eligibility of an existing Capacity Reservation fromtargetedtoopen, any running instances that match the attributes of the Capacity Reservation, have theCapacityReservationPreferenceset toopen, and are not yet running in the Capacity Reservation, will automatically use the modified Capacity Reservation.To modify the instance eligibility, the Capacity Reservation must be completely idle (zero usage).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceMatchCriteria,InstanceMatchCriteria
-
overrideConfiguration
ModifyCapacityReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyCapacityReservationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-