AccessControlRulesRoleAssignment Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. AccessControlRulesRoleAssignment
- com.
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 Access |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
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. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Access |
withIdentities(List<String> identities)
Set the identities property: A list of identities that can access the privileges defined by the role. |
Access |
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:
Returns:
Throws:
identities
public List
Get the identities property: A list of identities that can access the privileges defined by the role.
Returns:
role
public String role()
Get the role property: The name of the role.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIdentities
public AccessControlRulesRoleAssignment withIdentities(List
Set the identities property: A list of identities that can access the privileges defined by the role.
Parameters:
Returns:
withRole
public AccessControlRulesRoleAssignment withRole(String role)
Set the role property: The name of the role.
Parameters:
Returns:
Applies to
Azure SDK for Java