Interface CalculateExchangesClient


public interface CalculateExchangesClient
An instance of this class provides access to all the operations defined in CalculateExchangesClient.
  • Method Details

    • beginPost

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CalculateExchangeOperationResultResponseInner>,CalculateExchangeOperationResultResponseInner> beginPost(CalculateExchangeRequest body)
      Calculates the refund amounts and price of the new purchases. Calculates price for exchanging `Reservations` if there are no policy errors.
      Parameters:
      body - Request containing purchases and refunds that need to be executed.
      Returns:
      the SyncPoller for polling of calculateExchange operation result.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginPost

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CalculateExchangeOperationResultResponseInner>,CalculateExchangeOperationResultResponseInner> beginPost(CalculateExchangeRequest body, com.azure.core.util.Context context)
      Calculates the refund amounts and price of the new purchases. Calculates price for exchanging `Reservations` if there are no policy errors.
      Parameters:
      body - Request containing purchases and refunds that need to be executed.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of calculateExchange operation result.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • post

      Calculates the refund amounts and price of the new purchases. Calculates price for exchanging `Reservations` if there are no policy errors.
      Parameters:
      body - Request containing purchases and refunds that need to be executed.
      Returns:
      calculateExchange operation result.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • post

      CalculateExchangeOperationResultResponseInner post(CalculateExchangeRequest body, com.azure.core.util.Context context)
      Calculates the refund amounts and price of the new purchases. Calculates price for exchanging `Reservations` if there are no policy errors.
      Parameters:
      body - Request containing purchases and refunds that need to be executed.
      context - The context to associate with this operation.
      Returns:
      calculateExchange operation result.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.