Class Manager<InnerT>
- 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.AzureEnvironmentenvironment()com.azure.core.http.HttpPipelinehttpPipeline()ResourceManagerresourceManager()InnerTserviceClient()StringsubscriptionId()protected voidwithResourceManager(ResourceManager resourceManager)Configures the ResourceManager for this manager instance.
-
-
-
Constructor Detail
-
Manager
protected Manager(com.azure.core.http.HttpPipeline httpPipeline, com.azure.core.management.profile.AzureProfile profile, InnerT innerManagementClient)Creates a new instance ofManager.- Parameters:
httpPipeline- The HttpPipeline used by the manager.profile- The AzureProfile used by the manager.innerManagementClient- The inner management client.
-
-
Method Detail
-
serviceClient
public InnerT serviceClient()
- Specified by:
serviceClientin interfaceHasServiceClient<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
ResourceManagerassociated with this manager
-
httpPipeline
public com.azure.core.http.HttpPipeline httpPipeline()
- Returns:
- the
HttpPipelineassociated with this manager
-
-