Class ProviderConsentDefinition

java.lang.Object
com.azure.resourcemanager.resources.models.ProviderConsentDefinition

public final class ProviderConsentDefinition extends Object
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.