Interface SavingsPlanOrderAlias


public interface SavingsPlanOrderAlias
Resource collection API of SavingsPlanOrderAlias.
  • Method Details

    • create

      SavingsPlanOrderAliasModel create(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:
      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

      SavingsPlanOrderAliasModel 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<SavingsPlanOrderAliasModel> 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

      SavingsPlanOrderAliasModel 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.