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 Summary
ConstructorsConstructorDescriptionCreates an instance of ProviderConsentDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the consentToAuthorization property: A value indicating whether authorization is consented or not.static ProviderConsentDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProviderConsentDefinition from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConsentToAuthorization(Boolean consentToAuthorization) Set the consentToAuthorization property: A value indicating whether authorization is consented or not.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-