Class ExpandedPropertiesRoleDefinition

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

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

    • ExpandedPropertiesRoleDefinition

      public ExpandedPropertiesRoleDefinition()
      Creates an instance of ExpandedPropertiesRoleDefinition 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 ExpandedPropertiesRoleDefinition object itself.
    • displayName

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

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

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

      public ExpandedPropertiesRoleDefinition withType(String type)
      Set the type property: Type of the role definition.
      Parameters:
      type - the type value to set.
      Returns:
      the ExpandedPropertiesRoleDefinition 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<ExpandedPropertiesRoleDefinition>
      Throws:
      IOException
    • fromJson

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