GraphResourceCreateUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.GraphResourceCreateUpdateProperties

Implements

public final class GraphResourceCreateUpdateProperties
implements JsonSerializable<GraphResourceCreateUpdateProperties>

Properties to create and update Azure Cosmos DB Graph resource.

Constructor Summary

Constructor Description
GraphResourceCreateUpdateProperties()

Creates an instance of GraphResourceCreateUpdateProperties class.

Method Summary

Modifier and Type Method and Description
static GraphResourceCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of GraphResourceCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request.

GraphResource resource()

Get the resource property: The standard JSON format of a Graph resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GraphResourceCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request.

GraphResourceCreateUpdateProperties withResource(GraphResource resource)

Set the resource property: The standard JSON format of a Graph resource.

Methods inherited from java.lang.Object

Constructor Details

GraphResourceCreateUpdateProperties

public GraphResourceCreateUpdateProperties()

Creates an instance of GraphResourceCreateUpdateProperties class.

Method Details

fromJson

public static GraphResourceCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of GraphResourceCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GraphResourceCreateUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

options

public CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Returns:

the options value.

resource

public GraphResource resource()

Get the resource property: The standard JSON format of a Graph resource.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public GraphResourceCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Parameters:

options - the options value to set.

Returns:

the GraphResourceCreateUpdateProperties object itself.

withResource

public GraphResourceCreateUpdateProperties withResource(GraphResource resource)

Set the resource property: The standard JSON format of a Graph resource.

Parameters:

resource - the resource value to set.

Returns:

the GraphResourceCreateUpdateProperties object itself.

Applies to