Class PolicyAssignmentPropertiesRoleDefinition

java.lang.Object
com.azure.resourcemanager.authorization.models.PolicyAssignmentPropertiesRoleDefinition
All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicyAssignmentPropertiesRoleDefinition>

public final class PolicyAssignmentPropertiesRoleDefinition extends Object implements com.azure.json.JsonSerializable<PolicyAssignmentPropertiesRoleDefinition>
Details of role definition.
  • Constructor Details

    • PolicyAssignmentPropertiesRoleDefinition

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

    • id

      public String id()
      Get the id property: Id of the role definition.
      Returns:
      the id value.
    • withId

      Set the id property: Id of the role definition.
      Parameters:
      id - the id value to set.
      Returns:
      the PolicyAssignmentPropertiesRoleDefinition object itself.
    • displayName

      public String displayName()
      Get the displayName property: Display name of the role definition.
      Returns:
      the displayName value.
    • withDisplayName

      public PolicyAssignmentPropertiesRoleDefinition withDisplayName(String displayName)
      Set the displayName property: Display name of the role definition.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the PolicyAssignmentPropertiesRoleDefinition object itself.
    • type

      public String type()
      Get the type property: Type of the role definition.
      Returns:
      the type value.
    • withType

      Set the type property: Type of the role definition.
      Parameters:
      type - the type value to set.
      Returns:
      the PolicyAssignmentPropertiesRoleDefinition 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<PolicyAssignmentPropertiesRoleDefinition>
      Throws:
      IOException
    • fromJson

      public static PolicyAssignmentPropertiesRoleDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PolicyAssignmentPropertiesRoleDefinition from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PolicyAssignmentPropertiesRoleDefinition 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 PolicyAssignmentPropertiesRoleDefinition.