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 Details

    • ProviderPermission

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

    • applicationId

      public String applicationId()
      Get the applicationId property: The application id.
      Returns:
      the applicationId value.
    • withApplicationId

      public ProviderPermission withApplicationId(String applicationId)
      Set the applicationId property: The application id.
      Parameters:
      applicationId - the applicationId value to set.
      Returns:
      the ProviderPermission object itself.
    • roleDefinition

      public RoleDefinition roleDefinition()
      Get the roleDefinition property: Role definition properties.
      Returns:
      the roleDefinition value.
    • withRoleDefinition

      public ProviderPermission withRoleDefinition(RoleDefinition roleDefinition)
      Set the roleDefinition property: Role definition properties.
      Parameters:
      roleDefinition - the roleDefinition value to set.
      Returns:
      the ProviderPermission object itself.
    • managedByRoleDefinition

      public RoleDefinition managedByRoleDefinition()
      Get the managedByRoleDefinition property: Role definition properties.
      Returns:
      the managedByRoleDefinition value.
    • withManagedByRoleDefinition

      public ProviderPermission withManagedByRoleDefinition(RoleDefinition managedByRoleDefinition)
      Set the managedByRoleDefinition property: Role definition properties.
      Parameters:
      managedByRoleDefinition - the managedByRoleDefinition value to set.
      Returns:
      the ProviderPermission object itself.
    • providerAuthorizationConsentState

      public ProviderAuthorizationConsentState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ProviderPermission>
      Throws:
      IOException
    • fromJson

      public static ProviderPermission fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.