Class AccessControlRules

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

public final class AccessControlRules extends Object implements com.azure.json.JsonSerializable<AccessControlRules>
This is the Access Control Rules specification for an inVMAccessControlProfile version.
  • Constructor Details

    • AccessControlRules

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

    • privileges

      public List<AccessControlRulesPrivilege> privileges()
      Get the privileges property: A list of privileges.
      Returns:
      the privileges value.
    • withPrivileges

      public AccessControlRules withPrivileges(List<AccessControlRulesPrivilege> privileges)
      Set the privileges property: A list of privileges.
      Parameters:
      privileges - the privileges value to set.
      Returns:
      the AccessControlRules object itself.
    • roles

      public List<AccessControlRulesRole> roles()
      Get the roles property: A list of roles.
      Returns:
      the roles value.
    • withRoles

      public AccessControlRules withRoles(List<AccessControlRulesRole> roles)
      Set the roles property: A list of roles.
      Parameters:
      roles - the roles value to set.
      Returns:
      the AccessControlRules object itself.
    • identities

      public List<AccessControlRulesIdentity> identities()
      Get the identities property: A list of identities.
      Returns:
      the identities value.
    • withIdentities

      public AccessControlRules withIdentities(List<AccessControlRulesIdentity> identities)
      Set the identities property: A list of identities.
      Parameters:
      identities - the identities value to set.
      Returns:
      the AccessControlRules object itself.
    • roleAssignments

      public List<AccessControlRulesRoleAssignment> roleAssignments()
      Get the roleAssignments property: A list of role assignments.
      Returns:
      the roleAssignments value.
    • withRoleAssignments

      public AccessControlRules withRoleAssignments(List<AccessControlRulesRoleAssignment> roleAssignments)
      Set the roleAssignments property: A list of role assignments.
      Parameters:
      roleAssignments - the roleAssignments value to set.
      Returns:
      the AccessControlRules 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<AccessControlRules>
      Throws:
      IOException
    • fromJson

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