MongoIndex Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MongoIndex
- com.
public final class MongoIndex
Cosmos DB MongoDB collection index key.
Constructor Summary
Constructor | Description |
---|---|
MongoIndex() |
Creates an instance of Mongo |
Method Summary
Modifier and Type | Method and Description |
---|---|
Mongo |
key()
Get the key property: Cosmos DB MongoDB collection index keys. |
Mongo |
options()
Get the options property: Cosmos DB MongoDB collection index key options. |
void |
validate()
Validates the instance. |
Mongo |
withKey(MongoIndexKeys key)
Set the key property: Cosmos DB MongoDB collection index keys. |
Mongo |
withOptions(MongoIndexOptions options)
Set the options property: Cosmos DB MongoDB collection index key options. |
Methods inherited from java.lang.Object
Constructor Details
MongoIndex
public MongoIndex()
Creates an instance of MongoIndex class.
Method Details
key
public MongoIndexKeys key()
Get the key property: Cosmos DB MongoDB collection index keys.
Returns:
options
public MongoIndexOptions options()
Get the options property: Cosmos DB MongoDB collection index key options.
Returns:
validate
public void validate()
Validates the instance.
withKey
public MongoIndex withKey(MongoIndexKeys key)
Set the key property: Cosmos DB MongoDB collection index keys.
Parameters:
Returns:
withOptions
public MongoIndex withOptions(MongoIndexOptions options)
Set the options property: Cosmos DB MongoDB collection index key options.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for