MongoIndexKeys Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MongoIndexKeys
- com.
Implements
public final class MongoIndexKeys
implements JsonSerializable<MongoIndexKeys>
Cosmos DB MongoDB collection resource object.
Constructor Summary
| Constructor | Description |
|---|---|
| MongoIndexKeys() |
Creates an instance of Mongo |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Mongo |
fromJson(JsonReader jsonReader)
Reads an instance of Mongo |
| List<String> |
keys()
Get the keys property: List of keys for each MongoDB collection in the Azure Cosmos DB service. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Mongo |
withKeys(List<String> keys)
Set the keys property: List of keys for each MongoDB collection in the Azure Cosmos DB service. |
Methods inherited from java.lang.Object
Constructor Details
MongoIndexKeys
public MongoIndexKeys()
Creates an instance of MongoIndexKeys class.
Method Details
fromJson
public static MongoIndexKeys fromJson(JsonReader jsonReader)
Reads an instance of MongoIndexKeys from the JsonReader.
Parameters:
Returns:
Throws:
keys
public List<String> keys()
Get the keys property: List of keys for each MongoDB collection in the Azure Cosmos DB service.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKeys
public MongoIndexKeys withKeys(List<String> keys)
Set the keys property: List of keys for each MongoDB collection in the Azure Cosmos DB service.
Parameters:
Returns: