Interface ExchangesClient


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

    • beginPost

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ExchangeOperationResultResponseInner>,ExchangeOperationResultResponseInner> beginPost(ExchangeRequest body)
      Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
      Parameters:
      body - Request containing the refunds and purchases that need to be executed.
      Returns:
      the SyncPoller for polling of exchange 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<ExchangeOperationResultResponseInner>,ExchangeOperationResultResponseInner> beginPost(ExchangeRequest body, com.azure.core.util.Context context)
      Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
      Parameters:
      body - Request containing the refunds and purchases that need to be executed.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of exchange 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

      Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
      Parameters:
      body - Request containing the refunds and purchases that need to be executed.
      Returns:
      exchange 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

      ExchangeOperationResultResponseInner post(ExchangeRequest body, com.azure.core.util.Context context)
      Exchange Reservation(s) Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
      Parameters:
      body - Request containing the refunds and purchases that need to be executed.
      context - The context to associate with this operation.
      Returns:
      exchange 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.