Class PolicyAssignmentPropertiesRoleDefinition

java.lang.Object
com.azure.resourcemanager.authorization.models.PolicyAssignmentPropertiesRoleDefinition

public final class PolicyAssignmentPropertiesRoleDefinition extends Object
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.