MongoUserDefinitionGetResultsInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. models. ArmProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. MongoUserDefinitionGetResultsInner
- com.
- com.
- com.
public final class MongoUserDefinitionGetResultsInner
extends ArmProxyResource
An Azure Cosmos DB User Definition.
Constructor Summary
Constructor | Description |
---|---|
MongoUserDefinitionGetResultsInner() |
Creates an instance of Mongo |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
customData()
Get the custom |
String |
databaseName()
Get the database |
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
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. |
Json |
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. |
Mongo |
withCustomData(String customData)
Set the custom |
Mongo |
withDatabaseName(String databaseName)
Set the database |
Mongo |
withMechanisms(String mechanisms)
Set the mechanisms property: The Mongo Auth mechanism. |
Mongo |
withPassword(String password)
Set the password property: The password for User Definition. |
Mongo |
withRoles(List<Role> roles)
Set the roles property: The set of roles inherited by the User Definition. |
Mongo |
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:
databaseName
public String databaseName()
Get the databaseName property: The database name for which access is being granted for this User Definition.
Returns:
fromJson
public static MongoUserDefinitionGetResultsInner fromJson(JsonReader jsonReader)
Reads an instance of MongoUserDefinitionGetResultsInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
MongoUserDefinitionGetResultsInner.id()Returns:
mechanisms
public String mechanisms()
Get the mechanisms property: The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
MongoUserDefinitionGetResultsInner.name()Returns:
password
public String password()
Get the password property: The password for User Definition. Response does not contain user password.
Returns:
roles
public List
Get the roles property: The set of roles inherited by the User Definition.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MongoUserDefinitionGetResultsInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
MongoUserDefinitionGetResultsInner.type()Returns:
username
public String username()
Get the username property: The user name for User Definition.
Returns:
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:
Returns:
withDatabaseName
public MongoUserDefinitionGetResultsInner withDatabaseName(String databaseName)
Set the databaseName property: The database name for which access is being granted for this User Definition.
Parameters:
Returns:
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:
Returns:
withPassword
public MongoUserDefinitionGetResultsInner withPassword(String password)
Set the password property: The password for User Definition. Response does not contain user password.
Parameters:
Returns:
withRoles
public MongoUserDefinitionGetResultsInner withRoles(List
Set the roles property: The set of roles inherited by the User Definition.
Parameters:
Returns:
withUsername
public MongoUserDefinitionGetResultsInner withUsername(String username)
Set the username property: The user name for User Definition.
Parameters:
Returns:
Applies to
Azure SDK for Java