SqlRoleDefinitionGetResultsInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. models. ArmProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. SqlRoleDefinitionGetResultsInner
- com.
- com.
- com.
public final class SqlRoleDefinitionGetResultsInner
extends ArmProxyResource
An Azure Cosmos DB SQL Role Definition.
Constructor Summary
Constructor | Description |
---|---|
SqlRoleDefinitionGetResultsInner() |
Creates an instance of Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
assignableScopes()
Get the assignable |
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
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 |
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. |
Sql |
withAssignableScopes(List<String> assignableScopes)
Set the assignable |
Sql |
withPermissions(List<Permission> permissions)
Set the permissions property: The set of operations allowed through this Role Definition. |
Sql |
withRoleName(String roleName)
Set the role |
Sql |
withTypePropertiesType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created. |
Methods inherited from ArmProxyResource
Methods inherited from java.lang.Object
Constructor Details
SqlRoleDefinitionGetResultsInner
public SqlRoleDefinitionGetResultsInner()
Creates an instance of SqlRoleDefinitionGetResultsInner class.
Method Details
assignableScopes
public List
Get the assignableScopes property: A set of fully qualified Scopes at or below which 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 SqlRoleDefinitionGetResultsInner fromJson(JsonReader jsonReader)
Reads an instance of SqlRoleDefinitionGetResultsInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SqlRoleDefinitionGetResultsInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SqlRoleDefinitionGetResultsInner.name()Returns:
permissions
public List
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SqlRoleDefinitionGetResultsInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SqlRoleDefinitionGetResultsInner.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.
Overrides:
SqlRoleDefinitionGetResultsInner.validate()withAssignableScopes
public SqlRoleDefinitionGetResultsInner withAssignableScopes(List
Set the assignableScopes property: A set of fully qualified Scopes at or below which 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:
withPermissions
public SqlRoleDefinitionGetResultsInner withPermissions(List
Set the permissions property: The set of operations allowed through this Role Definition.
Parameters:
Returns:
withRoleName
public SqlRoleDefinitionGetResultsInner 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 SqlRoleDefinitionGetResultsInner withTypePropertiesType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created.
Parameters:
Returns:
Applies to
Azure SDK for Java