Class Role
java.lang.Object
com.azure.resourcemanager.cosmos.models.Role
The set of roles permitted through this Role Definition.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Role
public Role()Creates an instance of Role class.
-
-
Method Details
-
db
Get the db property: The database name the role is applied.- Returns:
- the db value.
-
withDb
Set the db property: The database name the role is applied.- Parameters:
db- the db value to set.- Returns:
- the Role object itself.
-
role
Get the role property: The role name.- Returns:
- the role value.
-
withRole
Set the role property: The role name.- Parameters:
role- the role value to set.- Returns:
- the Role object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-