Class ProviderConsentDefinition

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

public final class ProviderConsentDefinition extends Object implements com.azure.json.JsonSerializable<ProviderConsentDefinition>
The provider consent.
  • Constructor Details

    • ProviderConsentDefinition

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

    • consentToAuthorization

      public Boolean consentToAuthorization()
      Get the consentToAuthorization property: A value indicating whether authorization is consented or not.
      Returns:
      the consentToAuthorization value.
    • withConsentToAuthorization

      public ProviderConsentDefinition withConsentToAuthorization(Boolean consentToAuthorization)
      Set the consentToAuthorization property: A value indicating whether authorization is consented or not.
      Parameters:
      consentToAuthorization - the consentToAuthorization value to set.
      Returns:
      the ProviderConsentDefinition 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<ProviderConsentDefinition>
      Throws:
      IOException
    • fromJson

      public static ProviderConsentDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ProviderConsentDefinition from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ProviderConsentDefinition 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 ProviderConsentDefinition.