Class ProviderRegistrationPolicy
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluentcore.policy.ProviderRegistrationPolicy
-
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public class ProviderRegistrationPolicy extends Object implements com.azure.core.http.policy.HttpPipelinePolicy
A Http Pipeline Policy for automatic provider registration in Azure.
-
-
Constructor Summary
Constructors Constructor Description ProviderRegistrationPolicy()Initialize a provider registration policy to automatically register the provider.ProviderRegistrationPolicy(Providers providers)Initialize a provider registration policy to automatically register the provider.ProviderRegistrationPolicy(ResourceManager resourceManager)Initialize a provider registration policy to automatically register the provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvidersgetProviders()Mono<com.azure.core.http.HttpResponse>process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)voidsetProviders(Providers providers)Sets the providers endpoint after initialized
-
-
-
Constructor Detail
-
ProviderRegistrationPolicy
public ProviderRegistrationPolicy()
Initialize a provider registration policy to automatically register the provider.
-
ProviderRegistrationPolicy
public ProviderRegistrationPolicy(ResourceManager resourceManager)
Initialize a provider registration policy to automatically register the provider.- Parameters:
resourceManager- the Resource Manager that provider providers endpoint
-
ProviderRegistrationPolicy
public ProviderRegistrationPolicy(Providers providers)
Initialize a provider registration policy to automatically register the provider.- Parameters:
providers- the providers endpoint
-
-
Method Detail
-
setProviders
public void setProviders(Providers providers)
Sets the providers endpoint after initialized- Parameters:
providers- the providers endpoint
-
getProviders
public Providers getProviders()
- Returns:
- the providers endpoint contained in policy
-
process
public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
- Specified by:
processin interfacecom.azure.core.http.policy.HttpPipelinePolicy
-
-