ThroughputSettingsUpdateProperties Class

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

Implements

public final class ThroughputSettingsUpdateProperties
implements JsonSerializable<ThroughputSettingsUpdateProperties>

Properties to update Azure Cosmos DB resource throughput.

Constructor Summary

Constructor Description
ThroughputSettingsUpdateProperties()

Creates an instance of ThroughputSettingsUpdateProperties class.

Method Summary

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

Reads an instance of ThroughputSettingsUpdateProperties from the JsonReader.

ThroughputSettingsResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ThroughputSettingsUpdateProperties withResource(ThroughputSettingsResource resource)

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

Methods inherited from java.lang.Object

Constructor Details

ThroughputSettingsUpdateProperties

public ThroughputSettingsUpdateProperties()

Creates an instance of ThroughputSettingsUpdateProperties class.

Method Details

fromJson

public static ThroughputSettingsUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ThroughputSettingsUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ThroughputSettingsUpdateProperties 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.

resource

public ThroughputSettingsResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public ThroughputSettingsUpdateProperties withResource(ThroughputSettingsResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the ThroughputSettingsUpdateProperties object itself.

Applies to