AutoscaleSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.AutoscaleSettings

Implements

public final class AutoscaleSettings
implements JsonSerializable<AutoscaleSettings>

The AutoscaleSettings model.

Constructor Summary

Constructor Description
AutoscaleSettings()

Creates an instance of AutoscaleSettings class.

Method Summary

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

Reads an instance of AutoscaleSettings from the JsonReader.

Integer maxThroughput()

Get the maxThroughput property: Represents maximum throughput, the resource can scale up to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutoscaleSettings withMaxThroughput(Integer maxThroughput)

Set the maxThroughput property: Represents maximum throughput, the resource can scale up to.

Methods inherited from java.lang.Object

Constructor Details

AutoscaleSettings

public AutoscaleSettings()

Creates an instance of AutoscaleSettings class.

Method Details

fromJson

public static AutoscaleSettings fromJson(JsonReader jsonReader)

Reads an instance of AutoscaleSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxThroughput

public Integer maxThroughput()

Get the maxThroughput property: Represents maximum throughput, the resource can scale up to.

Returns:

the maxThroughput value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxThroughput

public AutoscaleSettings withMaxThroughput(Integer maxThroughput)

Set the maxThroughput property: Represents maximum throughput, the resource can scale up to.

Parameters:

maxThroughput - the maxThroughput value to set.

Returns:

the AutoscaleSettings object itself.

Applies to