Partilhar via


AccessControlRules Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.AccessControlRules

Implements

public final class AccessControlRules
implements JsonSerializable<AccessControlRules>

This is the Access Control Rules specification for an inVMAccessControlProfile version.

Constructor Summary

Constructor Description
AccessControlRules()

Creates an instance of AccessControlRules class.

Method Summary

Modifier and Type Method and Description
static AccessControlRules fromJson(JsonReader jsonReader)

Reads an instance of AccessControlRules from the JsonReader.

List<AccessControlRulesIdentity> identities()

Get the identities property: A list of identities.

List<AccessControlRulesPrivilege> privileges()

Get the privileges property: A list of privileges.

List<AccessControlRulesRoleAssignment> roleAssignments()

Get the roleAssignments property: A list of role assignments.

List<AccessControlRulesRole> roles()

Get the roles property: A list of roles.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccessControlRules withIdentities(List<AccessControlRulesIdentity> identities)

Set the identities property: A list of identities.

AccessControlRules withPrivileges(List<AccessControlRulesPrivilege> privileges)

Set the privileges property: A list of privileges.

AccessControlRules withRoleAssignments(List<AccessControlRulesRoleAssignment> roleAssignments)

Set the roleAssignments property: A list of role assignments.

AccessControlRules withRoles(List<AccessControlRulesRole> roles)

Set the roles property: A list of roles.

Methods inherited from java.lang.Object

Constructor Details

AccessControlRules

public AccessControlRules()

Creates an instance of AccessControlRules class.

Method Details

fromJson

public static AccessControlRules fromJson(JsonReader jsonReader)

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.

identities

public List identities()

Get the identities property: A list of identities.

Returns:

the identities value.

privileges

public List privileges()

Get the privileges property: A list of privileges.

Returns:

the privileges value.

roleAssignments

public List roleAssignments()

Get the roleAssignments property: A list of role assignments.

Returns:

the roleAssignments value.

roles

public List roles()

Get the roles property: A list of roles.

Returns:

the roles value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentities

public AccessControlRules withIdentities(List identities)

Set the identities property: A list of identities.

Parameters:

identities - the identities value to set.

Returns:

the AccessControlRules object itself.

withPrivileges

public AccessControlRules withPrivileges(List privileges)

Set the privileges property: A list of privileges.

Parameters:

privileges - the privileges value to set.

Returns:

the AccessControlRules object itself.

withRoleAssignments

public AccessControlRules withRoleAssignments(List roleAssignments)

Set the roleAssignments property: A list of role assignments.

Parameters:

roleAssignments - the roleAssignments value to set.

Returns:

the AccessControlRules object itself.

withRoles

public AccessControlRules withRoles(List roles)

Set the roles property: A list of roles.

Parameters:

roles - the roles value to set.

Returns:

the AccessControlRules object itself.

Applies to