Interface ModifyCapacityReservationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyCapacityReservationResponse.Builder,,ModifyCapacityReservationResponse> Ec2Response.Builder,SdkBuilder<ModifyCapacityReservationResponse.Builder,,ModifyCapacityReservationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ModifyCapacityReservationResponse
@Mutable
@NotThreadSafe
public static interface ModifyCapacityReservationResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ModifyCapacityReservationResponse.Builder,ModifyCapacityReservationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionadjustmentDetails(Consumer<CapacityReservationAdjustmentDetails.Builder> adjustmentDetails) The configuration that the Capacity Reservation will have after the adjustment is applied.adjustmentDetails(CapacityReservationAdjustmentDetails adjustmentDetails) The configuration that the Capacity Reservation will have after the adjustment is applied.adjustmentStatus(String adjustmentStatus) The status of the requested modification.adjustmentStatus(CapacityReservationAdjustmentStatus adjustmentStatus) The status of the requested modification.returnValue(Boolean returnValue) Returnstrueif the request succeeds; otherwise, it returns an error.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
adjustmentStatus
The status of the requested modification. For a description of each possible value, see the
adjustmentStatusfield of theCapacityReservationdata type.- Parameters:
adjustmentStatus- The status of the requested modification. For a description of each possible value, see theadjustmentStatusfield of theCapacityReservationdata type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
adjustmentStatus
ModifyCapacityReservationResponse.Builder adjustmentStatus(CapacityReservationAdjustmentStatus adjustmentStatus) The status of the requested modification. For a description of each possible value, see the
adjustmentStatusfield of theCapacityReservationdata type.- Parameters:
adjustmentStatus- The status of the requested modification. For a description of each possible value, see theadjustmentStatusfield of theCapacityReservationdata type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
adjustmentDetails
ModifyCapacityReservationResponse.Builder adjustmentDetails(CapacityReservationAdjustmentDetails adjustmentDetails) The configuration that the Capacity Reservation will have after the adjustment is applied.
- Parameters:
adjustmentDetails- The configuration that the Capacity Reservation will have after the adjustment is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adjustmentDetails
default ModifyCapacityReservationResponse.Builder adjustmentDetails(Consumer<CapacityReservationAdjustmentDetails.Builder> adjustmentDetails) The configuration that the Capacity Reservation will have after the adjustment is applied.
This is a convenience method that creates an instance of theCapacityReservationAdjustmentDetails.Builderavoiding the need to create one manually viaCapacityReservationAdjustmentDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadjustmentDetails(CapacityReservationAdjustmentDetails).- Parameters:
adjustmentDetails- a consumer that will call methods onCapacityReservationAdjustmentDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
returnValue
Returns
trueif the request succeeds; otherwise, it returns an error.- Parameters:
returnValue- Returnstrueif the request succeeds; otherwise, it returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-