Class Capability
java.lang.Object
com.azure.resourcemanager.cosmos.models.Capability
Cosmos DB capability object.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Capability
public Capability()Creates an instance of Capability class.
-
-
Method Details
-
name
Get the name property: Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin".- Returns:
- the name value.
-
withName
Set the name property: Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin".- Parameters:
name- the name value to set.- Returns:
- the Capability object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-