SqlContainerCreateUpdateProperties Class

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

Implements

public final class SqlContainerCreateUpdateProperties
implements JsonSerializable<SqlContainerCreateUpdateProperties>

Properties to create and update Azure Cosmos DB container.

Constructor Summary

Constructor Description
SqlContainerCreateUpdateProperties()

Creates an instance of SqlContainerCreateUpdateProperties class.

Method Summary

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

Reads an instance of SqlContainerCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

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

SqlContainerResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlContainerCreateUpdateProperties withOptions(CreateUpdateOptions options)

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

SqlContainerCreateUpdateProperties withResource(SqlContainerResource resource)

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

Methods inherited from java.lang.Object

Constructor Details

SqlContainerCreateUpdateProperties

public SqlContainerCreateUpdateProperties()

Creates an instance of SqlContainerCreateUpdateProperties class.

Method Details

fromJson

public static SqlContainerCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlContainerCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlContainerCreateUpdateProperties 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 SqlContainerResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public SqlContainerCreateUpdateProperties 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 SqlContainerCreateUpdateProperties object itself.

withResource

public SqlContainerCreateUpdateProperties withResource(SqlContainerResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the SqlContainerCreateUpdateProperties object itself.

Applies to