MongoUserDefinitionGetResultsInner Class

public final class MongoUserDefinitionGetResultsInner
extends ArmProxyResource

An Azure Cosmos DB User Definition.

Constructor Summary

Constructor Description
MongoUserDefinitionGetResultsInner()

Creates an instance of MongoUserDefinitionGetResultsInner class.

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.

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.

MongoUserDefinitionGetResultsInner withCustomData(String customData)

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

MongoUserDefinitionGetResultsInner withDatabaseName(String databaseName)

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

MongoUserDefinitionGetResultsInner withMechanisms(String mechanisms)

Set the mechanisms property: The Mongo Auth mechanism.

MongoUserDefinitionGetResultsInner withPassword(String password)

Set the password property: The password for User Definition.

MongoUserDefinitionGetResultsInner withRoles(List<Role> roles)

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

MongoUserDefinitionGetResultsInner withUsername(String username)

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

Methods inherited from ArmProxyResource

Methods inherited from java.lang.Object

Constructor Details

MongoUserDefinitionGetResultsInner

public MongoUserDefinitionGetResultsInner()

Creates an instance of MongoUserDefinitionGetResultsInner class.

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 roles()

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

Returns:

the roles 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.

Overrides:

MongoUserDefinitionGetResultsInner.validate()

withCustomData

public MongoUserDefinitionGetResultsInner withCustomData(String customData)

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

Parameters:

customData - the customData value to set.

Returns:

the MongoUserDefinitionGetResultsInner object itself.

withDatabaseName

public MongoUserDefinitionGetResultsInner withDatabaseName(String databaseName)

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

Parameters:

databaseName - the databaseName value to set.

Returns:

the MongoUserDefinitionGetResultsInner object itself.

withMechanisms

public MongoUserDefinitionGetResultsInner withMechanisms(String mechanisms)

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

Parameters:

mechanisms - the mechanisms value to set.

Returns:

the MongoUserDefinitionGetResultsInner object itself.

withPassword

public MongoUserDefinitionGetResultsInner withPassword(String password)

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

Parameters:

password - the password value to set.

Returns:

the MongoUserDefinitionGetResultsInner object itself.

withRoles

public MongoUserDefinitionGetResultsInner withRoles(List roles)

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

Parameters:

roles - the roles value to set.

Returns:

the MongoUserDefinitionGetResultsInner object itself.

withUsername

public MongoUserDefinitionGetResultsInner withUsername(String username)

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

Parameters:

username - the username value to set.

Returns:

the MongoUserDefinitionGetResultsInner object itself.

Applies to