Class MongoCollectionCreateUpdateParameters
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.MongoCollectionCreateUpdateParameters
-
public class MongoCollectionCreateUpdateParameters extends Object
Parameters to create and update Cosmos DB Mongo collection.
-
-
Constructor Summary
Constructors Constructor Description MongoCollectionCreateUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>options()Get a key-value pair of options to be applied for the request.MongoCollectionResourceresource()Get the standard JSON format of a Mongo collection.MongoCollectionCreateUpdateParameterswithOptions(Map<String,String> options)Set a key-value pair of options to be applied for the request.MongoCollectionCreateUpdateParameterswithResource(MongoCollectionResource resource)Set the standard JSON format of a Mongo collection.
-
-
-
Method Detail
-
resource
public MongoCollectionResource resource()
Get the standard JSON format of a Mongo collection.- Returns:
- the resource value
-
withResource
public MongoCollectionCreateUpdateParameters withResource(MongoCollectionResource resource)
Set the standard JSON format of a Mongo collection.- Parameters:
resource- the resource value to set- Returns:
- the MongoCollectionCreateUpdateParameters object itself.
-
options
public Map<String,String> options()
Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.- Returns:
- the options value
-
withOptions
public MongoCollectionCreateUpdateParameters withOptions(Map<String,String> options)
Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.- Parameters:
options- the options value to set- Returns:
- the MongoCollectionCreateUpdateParameters object itself.
-
-