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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessControlRulesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AccessControlRules from the JsonReader.Get the identities property: A list of identities.Get the privileges property: A list of privileges.Get the roleAssignments property: A list of role assignments.roles()Get the roles property: A list of roles.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdentities(List<AccessControlRulesIdentity> identities) Set the identities property: A list of identities.withPrivileges(List<AccessControlRulesPrivilege> privileges) Set the privileges property: A list of privileges.withRoleAssignments(List<AccessControlRulesRoleAssignment> roleAssignments) Set the roleAssignments property: A list of role assignments.withRoles(List<AccessControlRulesRole> roles) Set the roles property: A list of roles.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AccessControlRules
public AccessControlRules()Creates an instance of AccessControlRules class.
-
-
Method Details
-
privileges
Get the privileges property: A list of privileges.- Returns:
- the privileges value.
-
withPrivileges
Set the privileges property: A list of privileges.- Parameters:
privileges- the privileges value to set.- Returns:
- the AccessControlRules object itself.
-
roles
Get the roles property: A list of roles.- Returns:
- the roles value.
-
withRoles
Set the roles property: A list of roles.- Parameters:
roles- the roles value to set.- Returns:
- the AccessControlRules object itself.
-
identities
Get the identities property: A list of identities.- Returns:
- the identities value.
-
withIdentities
Set the identities property: A list of identities.- Parameters:
identities- the identities value to set.- Returns:
- the AccessControlRules object itself.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AccessControlRules>- Throws:
IOException
-
fromJson
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.
-