Class GremlinDatabaseResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.GremlinDatabaseResource
Direct Known Subclasses:
GremlinDatabaseGetPropertiesResource

public class GremlinDatabaseResource extends Object
Cosmos DB Gremlin database resource object.
  • Constructor Details

    • GremlinDatabaseResource

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

    • id

      public String id()
      Get the id property: Name of the Cosmos DB Gremlin database.
      Returns:
      the id value.
    • withId

      public GremlinDatabaseResource withId(String id)
      Set the id property: Name of the Cosmos DB Gremlin database.
      Parameters:
      id - the id value to set.
      Returns:
      the GremlinDatabaseResource object itself.
    • restoreParameters

      public ResourceRestoreParameters restoreParameters()
      Get the restoreParameters property: Parameters to indicate the information about the restore.
      Returns:
      the restoreParameters value.
    • withRestoreParameters

      public GremlinDatabaseResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
      Set the restoreParameters property: Parameters to indicate the information about the restore.
      Parameters:
      restoreParameters - the restoreParameters value to set.
      Returns:
      the GremlinDatabaseResource object itself.
    • createMode

      public CreateMode createMode()
      Get the createMode property: Enum to indicate the mode of resource creation.
      Returns:
      the createMode value.
    • withCreateMode

      public GremlinDatabaseResource withCreateMode(CreateMode createMode)
      Set the createMode property: Enum to indicate the mode of resource creation.
      Parameters:
      createMode - the createMode value to set.
      Returns:
      the GremlinDatabaseResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.