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 Details

    • 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 Details

    • 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:
      process in interface com.azure.core.http.policy.HttpPipelinePolicy