AccessControlRulesRole Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. AccessControlRulesRole
- com.
Implements
public final class AccessControlRulesRole
implements JsonSerializable<AccessControlRulesRole>
The properties of an Access Control Rule Role.
Constructor Summary
Constructor | Description |
---|---|
AccessControlRulesRole() |
Creates an instance of Access |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
String |
name()
Get the name property: The name of the role. |
List<String> |
privileges()
Get the privileges property: A list of privileges needed by this role. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Access |
withName(String name)
Set the name property: The name of the role. |
Access |
withPrivileges(List<String> privileges)
Set the privileges property: A list of privileges needed by this role. |
Methods inherited from java.lang.Object
Constructor Details
AccessControlRulesRole
public AccessControlRulesRole()
Creates an instance of AccessControlRulesRole class.
Method Details
fromJson
public static AccessControlRulesRole fromJson(JsonReader jsonReader)
Reads an instance of AccessControlRulesRole from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the role.
Returns:
privileges
public List
Get the privileges property: A list of privileges needed by this role.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public AccessControlRulesRole withName(String name)
Set the name property: The name of the role.
Parameters:
Returns:
withPrivileges
public AccessControlRulesRole withPrivileges(List
Set the privileges property: A list of privileges needed by this role.
Parameters:
Returns: