MongoDBCollectionResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MongoDBCollectionResource
- com.
Implements
public class MongoDBCollectionResource
implements JsonSerializable<MongoDBCollectionResource>
Cosmos DB MongoDB collection resource object.
Constructor Summary
Constructor | Description |
---|---|
MongoDBCollectionResource() |
Creates an instance of Mongo |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
analyticalStorageTtl()
Get the analytical |
Create |
createMode()
Get the create |
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
String |
id()
Get the id property: Name of the Cosmos DB MongoDB collection. |
List<Mongo |
indexes()
Get the indexes property: List of index keys. |
Resource |
restoreParameters()
Get the restore |
Map<String,String> |
shardKey()
Get the shard |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Mongo |
withAnalyticalStorageTtl(Integer analyticalStorageTtl)
Set the analytical |
Mongo |
withCreateMode(CreateMode createMode)
Set the create |
Mongo |
withId(String id)
Set the id property: Name of the Cosmos DB MongoDB collection. |
Mongo |
withIndexes(List<MongoIndex> indexes)
Set the indexes property: List of index keys. |
Mongo |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Mongo |
withShardKey(Map<String,String> shardKey)
Set the shard |
Methods inherited from java.lang.Object
Constructor Details
MongoDBCollectionResource
public MongoDBCollectionResource()
Creates an instance of MongoDBCollectionResource class.
Method Details
analyticalStorageTtl
public Integer analyticalStorageTtl()
Get the analyticalStorageTtl property: Analytical TTL.
Returns:
createMode
public CreateMode createMode()
Get the createMode property: Enum to indicate the mode of resource creation.
Returns:
fromJson
public static MongoDBCollectionResource fromJson(JsonReader jsonReader)
Reads an instance of MongoDBCollectionResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB MongoDB collection.
Returns:
indexes
public List
Get the indexes property: List of index keys.
Returns:
restoreParameters
public ResourceRestoreParameters restoreParameters()
Get the restoreParameters property: Parameters to indicate the information about the restore.
Returns:
shardKey
public Map
Get the shardKey property: A key-value pair of shard keys to be applied for the request.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAnalyticalStorageTtl
public MongoDBCollectionResource withAnalyticalStorageTtl(Integer analyticalStorageTtl)
Set the analyticalStorageTtl property: Analytical TTL.
Parameters:
Returns:
withCreateMode
public MongoDBCollectionResource withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Parameters:
Returns:
withId
public MongoDBCollectionResource withId(String id)
Set the id property: Name of the Cosmos DB MongoDB collection.
Parameters:
Returns:
withIndexes
public MongoDBCollectionResource withIndexes(List
Set the indexes property: List of index keys.
Parameters:
Returns:
withRestoreParameters
public MongoDBCollectionResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Parameters:
Returns:
withShardKey
public MongoDBCollectionResource withShardKey(Map
Set the shardKey property: A key-value pair of shard keys to be applied for the request.
Parameters:
Returns:
Applies to
Azure SDK for Java