Capability Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. Capability
- com.
Implements
public final class Capability
implements JsonSerializable<Capability>
Cosmos DB capability object.
Constructor Summary
Constructor | Description |
---|---|
Capability() |
Creates an instance of Capability class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static Capability |
from Reads an instance of Capability from the Json |
String |
name()
Get the name property: Name of the Cosmos DB capability. |
Json |
to |
void |
validate()
Validates the instance. |
Capability |
with Set the name property: Name of the Cosmos DB capability. |
Methods inherited from java.lang.Object
Constructor Details
Capability
public Capability()
Creates an instance of Capability class.
Method Details
fromJson
public static Capability fromJson(JsonReader jsonReader)
Reads an instance of Capability from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin".
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public Capability withName(String name)
Set the name property: Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and "EnableGremlin".
Parameters:
Returns:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: