Class MongoIndexKeys
java.lang.Object
com.azure.resourcemanager.cosmos.models.MongoIndexKeys
Cosmos DB MongoDB collection resource object.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MongoIndexKeys
public MongoIndexKeys()Creates an instance of MongoIndexKeys class.
-
-
Method Details
-
keys
Get the keys property: List of keys for each MongoDB collection in the Azure Cosmos DB service.- Returns:
- the keys value.
-
withKeys
Set the keys property: List of keys for each MongoDB collection in the Azure Cosmos DB service.- Parameters:
keys- the keys value to set.- Returns:
- the MongoIndexKeys object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-