GraphResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. GraphResource
- com.
Implements
public class GraphResource
implements JsonSerializable<GraphResource>
Cosmos DB Graph resource object.
Constructor Summary
| Constructor | Description |
|---|---|
| GraphResource() |
Creates an instance of Graph |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Graph |
fromJson(JsonReader jsonReader)
Reads an instance of Graph |
| String |
id()
Get the id property: Name of the Cosmos DB Graph. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Graph |
withId(String id)
Set the id property: Name of the Cosmos DB Graph. |
Methods inherited from java.lang.Object
Constructor Details
GraphResource
public GraphResource()
Creates an instance of GraphResource class.
Method Details
fromJson
public static GraphResource fromJson(JsonReader jsonReader)
Reads an instance of GraphResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB Graph.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public GraphResource withId(String id)
Set the id property: Name of the Cosmos DB Graph.
Parameters:
Returns: