Class ProviderConsentDefinition
java.lang.Object
com.azure.resourcemanager.resources.models.ProviderConsentDefinition
The provider consent.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ProviderConsentDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the consentToAuthorization property: A value indicating whether authorization is consented or not.voidvalidate()Validates the instance.withConsentToAuthorization(Boolean consentToAuthorization) Set the consentToAuthorization property: A value indicating whether authorization is consented or not.
-
Constructor Details
-
ProviderConsentDefinition
public ProviderConsentDefinition()Creates an instance of ProviderConsentDefinition class.
-
-
Method Details
-
consentToAuthorization
Get the consentToAuthorization property: A value indicating whether authorization is consented or not.- Returns:
- the consentToAuthorization value.
-
withConsentToAuthorization
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.
-