Compartilhar via


MongoRoleDefinitionGetResultsInner Class

public final class MongoRoleDefinitionGetResultsInner
extends ArmProxyResource

An Azure Cosmos DB Mongo Role Definition.

Constructor Summary

Constructor Description
MongoRoleDefinitionGetResultsInner()

Creates an instance of MongoRoleDefinitionGetResultsInner class.

Method Summary

Modifier and Type Method and Description
String databaseName()

Get the databaseName property: The database name for which access is being granted for this Role Definition.

static MongoRoleDefinitionGetResultsInner fromJson(JsonReader jsonReader)

Reads an instance of MongoRoleDefinitionGetResultsInner from the JsonReader.

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<Privilege> privileges()

Get the privileges property: A set of privileges contained by the Role Definition.

String roleName()

Get the roleName property: A user-friendly name for the Role Definition.

List<Role> roles()

Get the roles property: The set of roles inherited by this Role Definition.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

MongoRoleDefinitionType typePropertiesType()

Get the type property: Indicates whether the Role Definition was built-in or user created.

void validate()

Validates the instance.

MongoRoleDefinitionGetResultsInner withDatabaseName(String databaseName)

Set the databaseName property: The database name for which access is being granted for this Role Definition.

MongoRoleDefinitionGetResultsInner withPrivileges(List<Privilege> privileges)

Set the privileges property: A set of privileges contained by the Role Definition.

MongoRoleDefinitionGetResultsInner withRoleName(String roleName)

Set the roleName property: A user-friendly name for the Role Definition.

MongoRoleDefinitionGetResultsInner withRoles(List<Role> roles)

Set the roles property: The set of roles inherited by this Role Definition.

MongoRoleDefinitionGetResultsInner withTypePropertiesType(MongoRoleDefinitionType 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

MongoRoleDefinitionGetResultsInner

public MongoRoleDefinitionGetResultsInner()

Creates an instance of MongoRoleDefinitionGetResultsInner class.

Method Details

databaseName

public String databaseName()

Get the databaseName property: The database name for which access is being granted for this Role Definition.

Returns:

the databaseName value.

fromJson

public static MongoRoleDefinitionGetResultsInner fromJson(JsonReader jsonReader)

Reads an instance of MongoRoleDefinitionGetResultsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MongoRoleDefinitionGetResultsInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

MongoRoleDefinitionGetResultsInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

MongoRoleDefinitionGetResultsInner.name()

Returns:

the name value.

privileges

public List privileges()

Get the privileges property: A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege.

Returns:

the privileges value.

roleName

public String roleName()

Get the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.

Returns:

the roleName value.

roles

public List roles()

Get the roles property: The set of roles inherited by this Role Definition.

Returns:

the roles value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MongoRoleDefinitionGetResultsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

MongoRoleDefinitionGetResultsInner.type()

Returns:

the type value.

typePropertiesType

public MongoRoleDefinitionType typePropertiesType()

Get the type property: Indicates whether the Role Definition was built-in or user created.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

MongoRoleDefinitionGetResultsInner.validate()

withDatabaseName

public MongoRoleDefinitionGetResultsInner withDatabaseName(String databaseName)

Set the databaseName property: The database name for which access is being granted for this Role Definition.

Parameters:

databaseName - the databaseName value to set.

Returns:

the MongoRoleDefinitionGetResultsInner object itself.

withPrivileges

public MongoRoleDefinitionGetResultsInner withPrivileges(List privileges)

Set the privileges property: A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege.

Parameters:

privileges - the privileges value to set.

Returns:

the MongoRoleDefinitionGetResultsInner object itself.

withRoleName

public MongoRoleDefinitionGetResultsInner withRoleName(String roleName)

Set the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.

Parameters:

roleName - the roleName value to set.

Returns:

the MongoRoleDefinitionGetResultsInner object itself.

withRoles

public MongoRoleDefinitionGetResultsInner withRoles(List roles)

Set the roles property: The set of roles inherited by this Role Definition.

Parameters:

roles - the roles value to set.

Returns:

the MongoRoleDefinitionGetResultsInner object itself.

withTypePropertiesType

public MongoRoleDefinitionGetResultsInner withTypePropertiesType(MongoRoleDefinitionType type)

Set the type property: Indicates whether the Role Definition was built-in or user created.

Parameters:

type - the type value to set.

Returns:

the MongoRoleDefinitionGetResultsInner object itself.

Applies to