java.lang.Object
com.azure.resourcemanager.resources.fluent.models.ProviderInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ProviderInner>

public final class ProviderInner extends Object implements com.azure.json.JsonSerializable<ProviderInner>
Resource provider information.
  • Constructor Details

    • ProviderInner

      public ProviderInner()
      Creates an instance of ProviderInner class.
  • Method Details

    • id

      public String id()
      Get the id property: The provider ID.
      Returns:
      the id value.
    • namespace

      public String namespace()
      Get the namespace property: The namespace of the resource provider.
      Returns:
      the namespace value.
    • withNamespace

      public ProviderInner withNamespace(String namespace)
      Set the namespace property: The namespace of the resource provider.
      Parameters:
      namespace - the namespace value to set.
      Returns:
      the ProviderInner object itself.
    • registrationState

      public String registrationState()
      Get the registrationState property: The registration state of the resource provider.
      Returns:
      the registrationState value.
    • registrationPolicy

      public String registrationPolicy()
      Get the registrationPolicy property: The registration policy of the resource provider.
      Returns:
      the registrationPolicy value.
    • resourceTypes

      public List<ProviderResourceType> resourceTypes()
      Get the resourceTypes property: The collection of provider resource types.
      Returns:
      the resourceTypes value.
    • providerAuthorizationConsentState

      public ProviderAuthorizationConsentState providerAuthorizationConsentState()
      Get the providerAuthorizationConsentState property: The provider authorization consent state.
      Returns:
      the providerAuthorizationConsentState value.
    • withProviderAuthorizationConsentState

      public ProviderInner withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState)
      Set the providerAuthorizationConsentState property: The provider authorization consent state.
      Parameters:
      providerAuthorizationConsentState - the providerAuthorizationConsentState value to set.
      Returns:
      the ProviderInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ProviderInner>
      Throws:
      IOException
    • fromJson

      public static ProviderInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ProviderInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ProviderInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ProviderInner.