ContainerThrottlingData Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ContainerThrottlingData

Implements

public final class ContainerThrottlingData
implements JsonSerializable<ContainerThrottlingData>

The ContainerThrottlingData model.

Constructor Summary

Constructor Description
ContainerThrottlingData()

Creates an instance of ContainerThrottlingData class.

Method Summary

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

Reads an instance of ContainerThrottlingData from the JsonReader.

Integer periods()

Get the periods property: The periods property.

Integer throttledPeriods()

Get the throttledPeriods property: The throttledPeriods property.

Integer throttledTime()

Get the throttledTime property: The throttledTime property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerThrottlingData withPeriods(Integer periods)

Set the periods property: The periods property.

ContainerThrottlingData withThrottledPeriods(Integer throttledPeriods)

Set the throttledPeriods property: The throttledPeriods property.

ContainerThrottlingData withThrottledTime(Integer throttledTime)

Set the throttledTime property: The throttledTime property.

Methods inherited from java.lang.Object

Constructor Details

ContainerThrottlingData

public ContainerThrottlingData()

Creates an instance of ContainerThrottlingData class.

Method Details

fromJson

public static ContainerThrottlingData fromJson(JsonReader jsonReader)

Reads an instance of ContainerThrottlingData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

periods

public Integer periods()

Get the periods property: The periods property.

Returns:

the periods value.

throttledPeriods

public Integer throttledPeriods()

Get the throttledPeriods property: The throttledPeriods property.

Returns:

the throttledPeriods value.

throttledTime

public Integer throttledTime()

Get the throttledTime property: The throttledTime property.

Returns:

the throttledTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPeriods

public ContainerThrottlingData withPeriods(Integer periods)

Set the periods property: The periods property.

Parameters:

periods - the periods value to set.

Returns:

the ContainerThrottlingData object itself.

withThrottledPeriods

public ContainerThrottlingData withThrottledPeriods(Integer throttledPeriods)

Set the throttledPeriods property: The throttledPeriods property.

Parameters:

throttledPeriods - the throttledPeriods value to set.

Returns:

the ContainerThrottlingData object itself.

withThrottledTime

public ContainerThrottlingData withThrottledTime(Integer throttledTime)

Set the throttledTime property: The throttledTime property.

Parameters:

throttledTime - the throttledTime value to set.

Returns:

the ContainerThrottlingData object itself.

Applies to