Partilhar via


AccessControlRulesRoleAssignment Class

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

Implements

public final class AccessControlRulesRoleAssignment
implements JsonSerializable<AccessControlRulesRoleAssignment>

The properties of an Access Control Rule RoleAssignment.

Constructor Summary

Constructor Description
AccessControlRulesRoleAssignment()

Creates an instance of AccessControlRulesRoleAssignment class.

Method Summary

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

Reads an instance of AccessControlRulesRoleAssignment from the JsonReader.

List<String> identities()

Get the identities property: A list of identities that can access the privileges defined by the role.

String role()

Get the role property: The name of the role.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AccessControlRulesRoleAssignment withIdentities(List<String> identities)

Set the identities property: A list of identities that can access the privileges defined by the role.

AccessControlRulesRoleAssignment withRole(String role)

Set the role property: The name of the role.

Methods inherited from java.lang.Object

Constructor Details

AccessControlRulesRoleAssignment

public AccessControlRulesRoleAssignment()

Creates an instance of AccessControlRulesRoleAssignment class.

Method Details

fromJson

public static AccessControlRulesRoleAssignment fromJson(JsonReader jsonReader)

Reads an instance of AccessControlRulesRoleAssignment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AccessControlRulesRoleAssignment if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

identities

public List identities()

Get the identities property: A list of identities that can access the privileges defined by the role.

Returns:

the identities value.

role

public String role()

Get the role property: The name of the role.

Returns:

the role value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentities

public AccessControlRulesRoleAssignment withIdentities(List identities)

Set the identities property: A list of identities that can access the privileges defined by the role.

Parameters:

identities - the identities value to set.

Returns:

the AccessControlRulesRoleAssignment object itself.

withRole

public AccessControlRulesRoleAssignment withRole(String role)

Set the role property: The name of the role.

Parameters:

role - the role value to set.

Returns:

the AccessControlRulesRoleAssignment object itself.

Applies to