Class GremlinDatabaseResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.GremlinDatabaseResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GremlinDatabaseResource>
- Direct Known Subclasses:
GremlinDatabaseGetPropertiesResource
public class GremlinDatabaseResource
extends Object
implements com.azure.json.JsonSerializable<GremlinDatabaseResource>
Cosmos DB Gremlin database resource object.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GremlinDatabaseResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the createMode property: Enum to indicate the mode of resource creation.static GremlinDatabaseResource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GremlinDatabaseResource from the JsonReader.id()
Get the id property: Name of the Cosmos DB Gremlin database.Get the restoreParameters property: Parameters to indicate the information about the restore.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCreateMode
(CreateMode createMode) Set the createMode property: Enum to indicate the mode of resource creation.Set the id property: Name of the Cosmos DB Gremlin database.withRestoreParameters
(ResourceRestoreParameters restoreParameters) Set the restoreParameters property: Parameters to indicate the information about the restore.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GremlinDatabaseResource
public GremlinDatabaseResource()Creates an instance of GremlinDatabaseResource class.
-
-
Method Details
-
id
Get the id property: Name of the Cosmos DB Gremlin database.- Returns:
- the id value.
-
withId
Set the id property: Name of the Cosmos DB Gremlin database.- Parameters:
id
- the id value to set.- Returns:
- the GremlinDatabaseResource object itself.
-
restoreParameters
Get the restoreParameters property: Parameters to indicate the information about the restore.- Returns:
- the restoreParameters value.
-
withRestoreParameters
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
Get the createMode property: Enum to indicate the mode of resource creation.- Returns:
- the createMode value.
-
withCreateMode
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<GremlinDatabaseResource>
- Throws:
IOException
-
fromJson
public static GremlinDatabaseResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GremlinDatabaseResource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GremlinDatabaseResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the GremlinDatabaseResource.
-