CassandraRoleDefinitionResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. CassandraRoleDefinitionResourceInner
- com.
- com.
public final class CassandraRoleDefinitionResourceInner
extends ProxyResource
Parameters to create and update an Azure Cosmos DB Cassandra Role Definition.
Constructor Summary
| Constructor | Description |
|---|---|
| CassandraRoleDefinitionResourceInner() |
Creates an instance of Cassandra |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
assignableScopes()
Get the assignable |
|
static
Cassandra |
fromJson(JsonReader jsonReader)
Reads an instance of Cassandra |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
idPropertiesId()
Get the id property: The path id for the Role Definition. |
| String |
name()
Get the name property: The name of the resource. |
| List<Permission> |
permissions()
Get the permissions property: The set of operations allowed through this Role Definition. |
| String |
roleName()
Get the role |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
|
Role |
typePropertiesType()
Get the type property: Indicates whether the Role Definition was built-in or user created. |
| void |
validate()
Validates the instance. |
|
Cassandra |
withAssignableScopes(List<String> assignableScopes)
Set the assignable |
|
Cassandra |
withIdPropertiesId(String id)
Set the id property: The path id for the Role Definition. |
|
Cassandra |
withPermissions(List<Permission> permissions)
Set the permissions property: The set of operations allowed through this Role Definition. |
|
Cassandra |
withRoleName(String roleName)
Set the role |
|
Cassandra |
withTypePropertiesType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
CassandraRoleDefinitionResourceInner
public CassandraRoleDefinitionResourceInner()
Creates an instance of CassandraRoleDefinitionResourceInner class.
Method Details
assignableScopes
public List<String> assignableScopes()
Get the assignableScopes property: A set of fully qualified Scopes at or below which Cassandra Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist.
Returns:
fromJson
public static CassandraRoleDefinitionResourceInner fromJson(JsonReader jsonReader)
Reads an instance of CassandraRoleDefinitionResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
CassandraRoleDefinitionResourceInner.id()Returns:
idPropertiesId
public String idPropertiesId()
Get the id property: The path id for the Role Definition.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
CassandraRoleDefinitionResourceInner.name()Returns:
permissions
public List<Permission> permissions()
Get the permissions property: The set of operations allowed through this Role Definition.
Returns:
roleName
public String roleName()
Get the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CassandraRoleDefinitionResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
CassandraRoleDefinitionResourceInner.type()Returns:
typePropertiesType
public RoleDefinitionType typePropertiesType()
Get the type property: Indicates whether the Role Definition was built-in or user created.
Returns:
validate
public void validate()
Validates the instance.
withAssignableScopes
public CassandraRoleDefinitionResourceInner withAssignableScopes(List<String> assignableScopes)
Set the assignableScopes property: A set of fully qualified Scopes at or below which Cassandra Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist.
Parameters:
Returns:
withIdPropertiesId
public CassandraRoleDefinitionResourceInner withIdPropertiesId(String id)
Set the id property: The path id for the Role Definition.
Parameters:
Returns:
withPermissions
public CassandraRoleDefinitionResourceInner withPermissions(List<Permission> permissions)
Set the permissions property: The set of operations allowed through this Role Definition.
Parameters:
Returns:
withRoleName
public CassandraRoleDefinitionResourceInner withRoleName(String roleName)
Set the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.
Parameters:
Returns:
withTypePropertiesType
public CassandraRoleDefinitionResourceInner withTypePropertiesType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created.
Parameters:
Returns: