GremlinDatabaseResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. GremlinDatabaseResource
- com.
Implements
public class GremlinDatabaseResource
implements JsonSerializable<GremlinDatabaseResource>
Cosmos DB Gremlin database resource object.
Constructor Summary
Constructor | Description |
---|---|
GremlinDatabaseResource() |
Creates an instance of Gremlin |
Method Summary
Modifier and Type | Method and Description |
---|---|
Create |
createMode()
Get the create |
static
Gremlin |
fromJson(JsonReader jsonReader)
Reads an instance of Gremlin |
String |
id()
Get the id property: Name of the Cosmos DB Gremlin database. |
Resource |
restoreParameters()
Get the restore |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gremlin |
withCreateMode(CreateMode createMode)
Set the create |
Gremlin |
withId(String id)
Set the id property: Name of the Cosmos DB Gremlin database. |
Gremlin |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Methods inherited from java.lang.Object
Constructor Details
GremlinDatabaseResource
public GremlinDatabaseResource()
Creates an instance of GremlinDatabaseResource class.
Method Details
createMode
public CreateMode createMode()
Get the createMode property: Enum to indicate the mode of resource creation.
Returns:
fromJson
public static GremlinDatabaseResource fromJson(JsonReader jsonReader)
Reads an instance of GremlinDatabaseResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB Gremlin database.
Returns:
restoreParameters
public ResourceRestoreParameters restoreParameters()
Get the restoreParameters property: Parameters to indicate the information about the restore.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCreateMode
public GremlinDatabaseResource withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Parameters:
Returns:
withId
public GremlinDatabaseResource withId(String id)
Set the id property: Name of the Cosmos DB Gremlin database.
Parameters:
Returns:
withRestoreParameters
public GremlinDatabaseResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Parameters:
Returns:
Applies to
Azure SDK for Java