MongoDBCollectionCreateUpdateProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. fluent. models. MongoDBCollectionCreateUpdateProperties
- com.
Implements
public final class MongoDBCollectionCreateUpdateProperties
implements JsonSerializable<MongoDBCollectionCreateUpdateProperties>
Properties to create and update Azure Cosmos DB MongoDB collection.
Constructor Summary
| Constructor | Description |
|---|---|
| MongoDBCollectionCreateUpdateProperties() |
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 collection. |
|
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(MongoDBCollectionResource resource)
Set the resource property: The standard JSON format of a MongoDB collection. |
Methods inherited from java.lang.Object
Constructor Details
MongoDBCollectionCreateUpdateProperties
public MongoDBCollectionCreateUpdateProperties()
Creates an instance of MongoDBCollectionCreateUpdateProperties class.
Method Details
fromJson
public static MongoDBCollectionCreateUpdateProperties fromJson(JsonReader jsonReader)
Reads an instance of MongoDBCollectionCreateUpdateProperties 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 MongoDBCollectionResource resource()
Get the resource property: The standard JSON format of a MongoDB collection.
Returns:
toJson
validate
public void validate()
Validates the instance.
withOptions
public MongoDBCollectionCreateUpdateProperties 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 MongoDBCollectionCreateUpdateProperties withResource(MongoDBCollectionResource resource)
Set the resource property: The standard JSON format of a MongoDB collection.
Parameters:
Returns: