java.lang.Object
com.azure.resourcemanager.resources.fluentcore.arm.Manager<InnerT>
Type Parameters:
InnerT - inner management client implementation type
All Implemented Interfaces:
HasServiceClient<InnerT>
Direct Known Subclasses:
ResourceManager

public abstract class Manager<InnerT> extends Object implements HasServiceClient<InnerT>
Generic base class for Azure resource managers.
  • Constructor Details

    • Manager

      protected Manager(com.azure.core.http.HttpPipeline httpPipeline, com.azure.core.management.profile.AzureProfile profile, InnerT innerManagementClient)
      Creates a new instance of Manager.
      Parameters:
      httpPipeline - The HttpPipeline used by the manager.
      profile - The AzureProfile used by the manager.
      innerManagementClient - The inner management client.
  • Method Details

    • serviceClient

      public InnerT serviceClient()
      Specified by:
      serviceClient in interface HasServiceClient<InnerT>
      Returns:
      wrapped service client providing direct access to the underlying auto-generated API implementation, based on Azure REST API
    • subscriptionId

      public String subscriptionId()
      Returns:
      the ID of the subscription the manager is working with
    • environment

      public com.azure.core.management.AzureEnvironment environment()
      Returns:
      the Azure environment the manager is working with
    • withResourceManager

      protected final void withResourceManager(ResourceManager resourceManager)
      Configures the ResourceManager for this manager instance.
      Parameters:
      resourceManager - The ResourceManager to associate with this manager.
    • resourceManager

      public ResourceManager resourceManager()
      Returns:
      the ResourceManager associated with this manager
    • httpPipeline

      public com.azure.core.http.HttpPipeline httpPipeline()
      Returns:
      the HttpPipeline associated with this manager