Role Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. Role
- com.
Implements
public final class Role
implements JsonSerializable<Role>
The set of roles permitted through this Role Definition.
Constructor Summary
Constructor | Description |
---|---|
Role() |
Creates an instance of Role class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
db()
Get the db property: The database name the role is applied. |
static Role |
fromJson(JsonReader jsonReader)
Reads an instance of Role from the Json |
String |
role()
Get the role property: The role name. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Role |
withDb(String db)
Set the db property: The database name the role is applied. |
Role |
withRole(String role)
Set the role property: The role name. |
Methods inherited from java.lang.Object
Constructor Details
Role
public Role()
Creates an instance of Role class.
Method Details
db
public String db()
Get the db property: The database name the role is applied.
Returns:
fromJson
public static Role fromJson(JsonReader jsonReader)
Reads an instance of Role from the JsonReader.
Parameters:
Returns:
Throws:
role
public String role()
Get the role property: The role name.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDb
public Role withDb(String db)
Set the db property: The database name the role is applied.
Parameters:
Returns:
withRole
public Role withRole(String role)
Set the role property: The role name.
Parameters:
Returns:
Applies to
Azure SDK for Java