TurboTier Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.TurboTier

Implements

public final class TurboTier
implements JsonSerializable<TurboTier>

Configures Turbo Tier for a storage account.

Constructor Summary

Constructor Description
TurboTier()

Creates an instance of TurboTier class.

Method Summary

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

Reads an instance of TurboTier from the JsonReader.

TurboTierStatus status()

Get the status property: Indicates whether Turbo Tier is enabled or disabled.

Integer targetPercent()

Get the targetPercent property: The target fill percentage used for placement.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TurboTier withStatus(TurboTierStatus status)

Set the status property: Indicates whether Turbo Tier is enabled or disabled.

TurboTier withTargetPercent(Integer targetPercent)

Set the targetPercent property: The target fill percentage used for placement.

Methods inherited from java.lang.Object

Constructor Details

TurboTier

public TurboTier()

Creates an instance of TurboTier class.

Method Details

fromJson

public static TurboTier fromJson(JsonReader jsonReader)

Reads an instance of TurboTier from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public TurboTierStatus status()

Get the status property: Indicates whether Turbo Tier is enabled or disabled.

Returns:

the status value.

targetPercent

public Integer targetPercent()

Get the targetPercent property: The target fill percentage used for placement. The valid range is 10 to 100. When status is Enabled and this property is omitted, the default value is 20.

Returns:

the targetPercent value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withStatus

public TurboTier withStatus(TurboTierStatus status)

Set the status property: Indicates whether Turbo Tier is enabled or disabled.

Parameters:

status - the status value to set.

Returns:

the TurboTier object itself.

withTargetPercent

public TurboTier withTargetPercent(Integer targetPercent)

Set the targetPercent property: The target fill percentage used for placement. The valid range is 10 to 100. When status is Enabled and this property is omitted, the default value is 20.

Parameters:

targetPercent - the targetPercent value to set.

Returns:

the TurboTier object itself.

Applies to