Class ProviderPermission
java.lang.Object
com.azure.resourcemanager.resources.models.ProviderPermission
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProviderPermission>
public final class ProviderPermission
extends Object
implements com.azure.json.JsonSerializable<ProviderPermission>
The provider permission.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the applicationId property: The application id.static ProviderPermissionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProviderPermission from the JsonReader.Get the managedByRoleDefinition property: Role definition properties.Get the providerAuthorizationConsentState property: The provider authorization consent state.Get the roleDefinition property: Role definition properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApplicationId(String applicationId) Set the applicationId property: The application id.withManagedByRoleDefinition(RoleDefinition managedByRoleDefinition) Set the managedByRoleDefinition property: Role definition properties.withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState) Set the providerAuthorizationConsentState property: The provider authorization consent state.withRoleDefinition(RoleDefinition roleDefinition) Set the roleDefinition property: Role definition properties.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
-
ProviderPermission
public ProviderPermission()Creates an instance of ProviderPermission class.
-
-
Method Details
-
applicationId
Get the applicationId property: The application id.- Returns:
- the applicationId value.
-
withApplicationId
Set the applicationId property: The application id.- Parameters:
applicationId- the applicationId value to set.- Returns:
- the ProviderPermission object itself.
-
roleDefinition
Get the roleDefinition property: Role definition properties.- Returns:
- the roleDefinition value.
-
withRoleDefinition
Set the roleDefinition property: Role definition properties.- Parameters:
roleDefinition- the roleDefinition value to set.- Returns:
- the ProviderPermission object itself.
-
managedByRoleDefinition
Get the managedByRoleDefinition property: Role definition properties.- Returns:
- the managedByRoleDefinition value.
-
withManagedByRoleDefinition
Set the managedByRoleDefinition property: Role definition properties.- Parameters:
managedByRoleDefinition- the managedByRoleDefinition value to set.- Returns:
- the ProviderPermission object itself.
-
providerAuthorizationConsentState
Get the providerAuthorizationConsentState property: The provider authorization consent state.- Returns:
- the providerAuthorizationConsentState value.
-
withProviderAuthorizationConsentState
public ProviderPermission withProviderAuthorizationConsentState(ProviderAuthorizationConsentState providerAuthorizationConsentState) Set the providerAuthorizationConsentState property: The provider authorization consent state.- Parameters:
providerAuthorizationConsentState- the providerAuthorizationConsentState value to set.- Returns:
- the ProviderPermission 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<ProviderPermission>- Throws:
IOException
-
fromJson
Reads an instance of ProviderPermission from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProviderPermission 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 ProviderPermission.
-