Class Capability

java.lang.Object
com.azure.resourcemanager.cosmos.models.Capability

public final class Capability extends Object
Cosmos DB capability object.
  • Constructor Details

    • Capability

      public Capability()
      Creates an instance of Capability class.
  • Method Details

    • 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:
      the name value.
    • 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:
      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.