Interface CancelCapacityReservationRequest.Builder

  • Method Details

    • capacityReservationId

      CancelCapacityReservationRequest.Builder capacityReservationId(String capacityReservationId)

      The ID of the Capacity Reservation to be cancelled.

      Parameters:
      capacityReservationId - The ID of the Capacity Reservation to be cancelled.
      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 is UnauthorizedOperation.

      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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applyCancellationCharges

      CancelCapacityReservationRequest.Builder applyCancellationCharges(String applyCancellationCharges)

      Specifies the cancellation charge type to apply when cancelling a future-dated Capacity Reservation during its commitment duration. Possible values include commitment-wind-down, which continues billing for the remaining commitment duration without delivering capacity.

      Parameters:
      applyCancellationCharges - Specifies the cancellation charge type to apply when cancelling a future-dated Capacity Reservation during its commitment duration. Possible values include commitment-wind-down, which continues billing for the remaining commitment duration without delivering capacity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • applyCancellationCharges

      CancelCapacityReservationRequest.Builder applyCancellationCharges(ApplyCancellationCharges applyCancellationCharges)

      Specifies the cancellation charge type to apply when cancelling a future-dated Capacity Reservation during its commitment duration. Possible values include commitment-wind-down, which continues billing for the remaining commitment duration without delivering capacity.

      Parameters:
      applyCancellationCharges - Specifies the cancellation charge type to apply when cancelling a future-dated Capacity Reservation during its commitment duration. Possible values include commitment-wind-down, which continues billing for the remaining commitment duration without delivering capacity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • quoteId

      The ID of the cancellation quote to use for the cancellation. You can generate a cancellation quote by using the CreateCapacityReservationCancellationQuote action. The cancellation quote must be in an active state.

      Parameters:
      quoteId - The ID of the cancellation quote to use for the cancellation. You can generate a cancellation quote by using the CreateCapacityReservationCancellationQuote action. The cancellation quote must be in an active state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CancelCapacityReservationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.