MongoDBDatabaseCreateUpdateProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. fluent. models. MongoDBDatabaseCreateUpdateProperties
- com.
Implements
public final class MongoDBDatabaseCreateUpdateProperties
implements JsonSerializable<MongoDBDatabaseCreateUpdateProperties>
Properties to create and update Azure Cosmos DB MongoDB database.
Constructor Summary
| Constructor | Description |
|---|---|
| MongoDBDatabaseCreateUpdateProperties() |
Creates an instance of Mongo |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
|
Create |
options()
Get the options property: A key-value pair of options to be applied for the request. |
|
Mongo |
resource()
Get the resource property: The standard JSON format of a MongoDB database. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Mongo |
withOptions(CreateUpdateOptions options)
Set the options property: A key-value pair of options to be applied for the request. |
|
Mongo |
withResource(MongoDBDatabaseResource resource)
Set the resource property: The standard JSON format of a MongoDB database. |
Methods inherited from java.lang.Object
Constructor Details
MongoDBDatabaseCreateUpdateProperties
public MongoDBDatabaseCreateUpdateProperties()
Creates an instance of MongoDBDatabaseCreateUpdateProperties class.
Method Details
fromJson
public static MongoDBDatabaseCreateUpdateProperties fromJson(JsonReader jsonReader)
Reads an instance of MongoDBDatabaseCreateUpdateProperties from the JsonReader.
Parameters:
Returns:
Throws:
options
public CreateUpdateOptions options()
Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
Returns:
resource
public MongoDBDatabaseResource resource()
Get the resource property: The standard JSON format of a MongoDB database.
Returns:
toJson
validate
public void validate()
Validates the instance.
withOptions
public MongoDBDatabaseCreateUpdateProperties withOptions(CreateUpdateOptions options)
Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
Parameters:
Returns:
withResource
public MongoDBDatabaseCreateUpdateProperties withResource(MongoDBDatabaseResource resource)
Set the resource property: The standard JSON format of a MongoDB database.
Parameters:
Returns: