MongoUserDefinitionGetResultsInner Class

public final class MongoUserDefinitionGetResultsInner
extends ProxyResource

An Azure Cosmos DB User Definition.

Method Summary

Modifier and Type Method and Description
String customData()

Get the customData property: A custom definition for the USer Definition.

String databaseName()

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

static MongoUserDefinitionGetResultsInner fromJson(JsonReader jsonReader)

Reads an instance of MongoUserDefinitionGetResultsInner from the JsonReader.

String id()

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

String mechanisms()

Get the mechanisms property: The Mongo Auth mechanism.

String name()

Get the name property: The name of the resource.

String password()

Get the password property: The password for User Definition.

List<Role> roles()

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

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String username()

Get the username property: The user name for User Definition.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Method Details

customData

public String customData()

Get the customData property: A custom definition for the USer Definition.

Returns:

the customData value.

databaseName

public String databaseName()

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

Returns:

the databaseName value.

fromJson

public static MongoUserDefinitionGetResultsInner fromJson(JsonReader jsonReader)

Reads an instance of MongoUserDefinitionGetResultsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MongoUserDefinitionGetResultsInner 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:

MongoUserDefinitionGetResultsInner.id()

Returns:

the id value.

mechanisms

public String mechanisms()

Get the mechanisms property: The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.

Returns:

the mechanisms value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

MongoUserDefinitionGetResultsInner.name()

Returns:

the name value.

password

public String password()

Get the password property: The password for User Definition. Response does not contain user password.

Returns:

the password value.

roles

public List<Role> roles()

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

Returns:

the roles value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MongoUserDefinitionGetResultsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

MongoUserDefinitionGetResultsInner.type()

Returns:

the type value.

username

public String username()

Get the username property: The user name for User Definition.

Returns:

the username value.

validate

public void validate()

Validates the instance.

Applies to