FleetspacePropertiesThroughputPoolConfiguration Class

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

Implements

public final class FleetspacePropertiesThroughputPoolConfiguration
implements JsonSerializable<FleetspacePropertiesThroughputPoolConfiguration>

Configuration for throughput pool in the fleetspace.

Constructor Summary

Constructor Description
FleetspacePropertiesThroughputPoolConfiguration()

Creates an instance of FleetspacePropertiesThroughputPoolConfiguration class.

Method Summary

Modifier and Type Method and Description
Long dedicatedRUs()

Get the dedicatedRUs property: Total dedicated throughput (RU/s) for fleetspace.

static FleetspacePropertiesThroughputPoolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FleetspacePropertiesThroughputPoolConfiguration from the JsonReader.

Long maxConsumableRUs()

Get the maxConsumableRUs property: Maximum consumable throughput (RU/s) for fleetspace.

Integer maxThroughput()

Get the maxThroughput property: Maximum throughput for the pool.

Integer minThroughput()

Get the minThroughput property: Minimum throughput for the pool.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FleetspacePropertiesThroughputPoolConfiguration withDedicatedRUs(Long dedicatedRUs)

Set the dedicatedRUs property: Total dedicated throughput (RU/s) for fleetspace.

FleetspacePropertiesThroughputPoolConfiguration withMaxConsumableRUs(Long maxConsumableRUs)

Set the maxConsumableRUs property: Maximum consumable throughput (RU/s) for fleetspace.

FleetspacePropertiesThroughputPoolConfiguration withMaxThroughput(Integer maxThroughput)

Set the maxThroughput property: Maximum throughput for the pool.

FleetspacePropertiesThroughputPoolConfiguration withMinThroughput(Integer minThroughput)

Set the minThroughput property: Minimum throughput for the pool.

Methods inherited from java.lang.Object

Constructor Details

FleetspacePropertiesThroughputPoolConfiguration

public FleetspacePropertiesThroughputPoolConfiguration()

Creates an instance of FleetspacePropertiesThroughputPoolConfiguration class.

Method Details

dedicatedRUs

public Long dedicatedRUs()

Get the dedicatedRUs property: Total dedicated throughput (RU/s) for fleetspace. Represents the sum of all manual provisioned throughput and all autoscale max RU/s across all shared throughput databases and dedicated throughput containers across all accounts in the fleetspace for 1 region.

Returns:

the dedicatedRUs value.

fromJson

public static FleetspacePropertiesThroughputPoolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FleetspacePropertiesThroughputPoolConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxConsumableRUs

public Long maxConsumableRUs()

Get the maxConsumableRUs property: Maximum consumable throughput (RU/s) for fleetspace. Represents the maximum throughput that resources in the fleetspace can consume from the fleetspace's pool in 1 region.

Returns:

the maxConsumableRUs value.

maxThroughput

public Integer maxThroughput()

Get the maxThroughput property: Maximum throughput for the pool.

Returns:

the maxThroughput value.

minThroughput

public Integer minThroughput()

Get the minThroughput property: Minimum throughput for the pool.

Returns:

the minThroughput value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDedicatedRUs

public FleetspacePropertiesThroughputPoolConfiguration withDedicatedRUs(Long dedicatedRUs)

Set the dedicatedRUs property: Total dedicated throughput (RU/s) for fleetspace. Represents the sum of all manual provisioned throughput and all autoscale max RU/s across all shared throughput databases and dedicated throughput containers across all accounts in the fleetspace for 1 region.

Parameters:

dedicatedRUs - the dedicatedRUs value to set.

Returns:

the FleetspacePropertiesThroughputPoolConfiguration object itself.

withMaxConsumableRUs

public FleetspacePropertiesThroughputPoolConfiguration withMaxConsumableRUs(Long maxConsumableRUs)

Set the maxConsumableRUs property: Maximum consumable throughput (RU/s) for fleetspace. Represents the maximum throughput that resources in the fleetspace can consume from the fleetspace's pool in 1 region.

Parameters:

maxConsumableRUs - the maxConsumableRUs value to set.

Returns:

the FleetspacePropertiesThroughputPoolConfiguration object itself.

withMaxThroughput

public FleetspacePropertiesThroughputPoolConfiguration withMaxThroughput(Integer maxThroughput)

Set the maxThroughput property: Maximum throughput for the pool.

Parameters:

maxThroughput - the maxThroughput value to set.

Returns:

the FleetspacePropertiesThroughputPoolConfiguration object itself.

withMinThroughput

public FleetspacePropertiesThroughputPoolConfiguration withMinThroughput(Integer minThroughput)

Set the minThroughput property: Minimum throughput for the pool.

Parameters:

minThroughput - the minThroughput value to set.

Returns:

the FleetspacePropertiesThroughputPoolConfiguration object itself.

Applies to