Interface AliasClient


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

    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PutAliasResponseInner>,PutAliasResponseInner> beginCreate(String aliasName, PutAliasRequest body)
      Create Alias Subscription.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      body - The parameters required to create a new subscription.
      Returns:
      the SyncPoller for polling of subscription Information with the 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<PutAliasResponseInner>,PutAliasResponseInner> beginCreate(String aliasName, PutAliasRequest body, com.azure.core.util.Context context)
      Create Alias Subscription.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      body - The parameters required to create a new subscription.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of subscription Information with the 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

      PutAliasResponseInner create(String aliasName, PutAliasRequest body)
      Create Alias Subscription.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      body - The parameters required to create a new subscription.
      Returns:
      subscription Information with the 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

      PutAliasResponseInner create(String aliasName, PutAliasRequest body, com.azure.core.util.Context context)
      Create Alias Subscription.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      body - The parameters required to create a new subscription.
      context - The context to associate with this operation.
      Returns:
      subscription Information with the 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<PutAliasResponseInner> getWithResponse(String aliasName, com.azure.core.util.Context context)
      Get Alias Subscription.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      context - The context to associate with this operation.
      Returns:
      alias Subscription 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

      PutAliasResponseInner get(String aliasName)
      Get Alias Subscription.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      Returns:
      alias Subscription.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String aliasName, com.azure.core.util.Context context)
      Delete Alias.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String aliasName)
      Delete Alias.
      Parameters:
      aliasName - Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
      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.
    • listWithResponse

      com.azure.core.http.rest.Response<PutAliasListResultInner> listWithResponse(com.azure.core.util.Context context)
      Get Alias Subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      alias Subscription 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.
    • list

      Get Alias Subscription.
      Returns:
      alias Subscription.
      Throws:
      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.