ThroughputSettingsGetProperties Class

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

Implements

public final class ThroughputSettingsGetProperties
implements JsonSerializable<ThroughputSettingsGetProperties>

The properties of an Azure Cosmos DB resource throughput.

Constructor Summary

Constructor Description
ThroughputSettingsGetProperties()

Creates an instance of ThroughputSettingsGetProperties class.

Method Summary

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

Reads an instance of ThroughputSettingsGetProperties from the JsonReader.

ThroughputSettingsGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ThroughputSettingsGetProperties withResource(ThroughputSettingsGetPropertiesResource resource)

Set the resource property: The resource property.

Methods inherited from java.lang.Object

Constructor Details

ThroughputSettingsGetProperties

public ThroughputSettingsGetProperties()

Creates an instance of ThroughputSettingsGetProperties class.

Method Details

fromJson

public static ThroughputSettingsGetProperties fromJson(JsonReader jsonReader)

Reads an instance of ThroughputSettingsGetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ThroughputSettingsGetProperties.

resource

public ThroughputSettingsGetPropertiesResource resource()

Get the resource property: The resource property.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public ThroughputSettingsGetProperties withResource(ThroughputSettingsGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the ThroughputSettingsGetProperties object itself.

Applies to