Interface SavingsPlanOrderAliasClient


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

    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SavingsPlanOrderAliasModelInner>,SavingsPlanOrderAliasModelInner> beginCreate(String savingsPlanOrderAliasName, SavingsPlanOrderAliasModelInner body)
      Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851.
      Parameters:
      savingsPlanOrderAliasName - Name of the savings plan order alias.
      body - Request body for creating a savings plan order alias.
      Returns:
      the SyncPoller for polling of savings plan order alias.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SavingsPlanOrderAliasModelInner>,SavingsPlanOrderAliasModelInner> beginCreate(String savingsPlanOrderAliasName, SavingsPlanOrderAliasModelInner body, com.azure.core.util.Context context)
      Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851.
      Parameters:
      savingsPlanOrderAliasName - Name of the savings plan order alias.
      body - Request body for creating a savings plan order alias.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of savings plan order alias.
      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.
    • create

      Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851.
      Parameters:
      savingsPlanOrderAliasName - Name of the savings plan order alias.
      body - Request body for creating a savings plan order alias.
      Returns:
      savings plan order alias.
      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.
    • create

      SavingsPlanOrderAliasModelInner create(String savingsPlanOrderAliasName, SavingsPlanOrderAliasModelInner body, com.azure.core.util.Context context)
      Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851.
      Parameters:
      savingsPlanOrderAliasName - Name of the savings plan order alias.
      body - Request body for creating a savings plan order alias.
      context - The context to associate with this operation.
      Returns:
      savings plan order alias.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<SavingsPlanOrderAliasModelInner> getWithResponse(String savingsPlanOrderAliasName, com.azure.core.util.Context context)
      Get a savings plan.
      Parameters:
      savingsPlanOrderAliasName - Name of the savings plan order alias.
      context - The context to associate with this operation.
      Returns:
      a savings plan along with Response.
      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.
    • get

      SavingsPlanOrderAliasModelInner get(String savingsPlanOrderAliasName)
      Get a savings plan.
      Parameters:
      savingsPlanOrderAliasName - Name of the savings plan order alias.
      Returns:
      a savings plan.
      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.