TableCreateUpdateProperties Class

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

Implements

public final class TableCreateUpdateProperties
implements JsonSerializable<TableCreateUpdateProperties>

Properties to create and update Azure Cosmos DB Table.

Constructor Summary

Constructor Description
TableCreateUpdateProperties()

Creates an instance of TableCreateUpdateProperties class.

Method Summary

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

Reads an instance of TableCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

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

TableResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TableCreateUpdateProperties withOptions(CreateUpdateOptions options)

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

TableCreateUpdateProperties withResource(TableResource resource)

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

Methods inherited from java.lang.Object

Constructor Details

TableCreateUpdateProperties

public TableCreateUpdateProperties()

Creates an instance of TableCreateUpdateProperties class.

Method Details

fromJson

public static TableCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of TableCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TableCreateUpdateProperties 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 TableResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

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

withResource

public TableCreateUpdateProperties withResource(TableResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the TableCreateUpdateProperties object itself.

Applies to