ContainerMemoryStatistics Class

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

Implements

public final class ContainerMemoryStatistics
implements JsonSerializable<ContainerMemoryStatistics>

The ContainerMemoryStatistics model.

Constructor Summary

Constructor Description
ContainerMemoryStatistics()

Creates an instance of ContainerMemoryStatistics class.

Method Summary

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

Reads an instance of ContainerMemoryStatistics from the JsonReader.

Long limit()

Get the limit property: The limit property.

Long maxUsage()

Get the maxUsage property: The maxUsage property.

JsonWriter toJson(JsonWriter jsonWriter)
Long usage()

Get the usage property: The usage property.

void validate()

Validates the instance.

ContainerMemoryStatistics withLimit(Long limit)

Set the limit property: The limit property.

ContainerMemoryStatistics withMaxUsage(Long maxUsage)

Set the maxUsage property: The maxUsage property.

ContainerMemoryStatistics withUsage(Long usage)

Set the usage property: The usage property.

Methods inherited from java.lang.Object

Constructor Details

ContainerMemoryStatistics

public ContainerMemoryStatistics()

Creates an instance of ContainerMemoryStatistics class.

Method Details

fromJson

public static ContainerMemoryStatistics fromJson(JsonReader jsonReader)

Reads an instance of ContainerMemoryStatistics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

limit

public Long limit()

Get the limit property: The limit property.

Returns:

the limit value.

maxUsage

public Long maxUsage()

Get the maxUsage property: The maxUsage property.

Returns:

the maxUsage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usage

public Long usage()

Get the usage property: The usage property.

Returns:

the usage value.

validate

public void validate()

Validates the instance.

withLimit

public ContainerMemoryStatistics withLimit(Long limit)

Set the limit property: The limit property.

Parameters:

limit - the limit value to set.

Returns:

the ContainerMemoryStatistics object itself.

withMaxUsage

public ContainerMemoryStatistics withMaxUsage(Long maxUsage)

Set the maxUsage property: The maxUsage property.

Parameters:

maxUsage - the maxUsage value to set.

Returns:

the ContainerMemoryStatistics object itself.

withUsage

public ContainerMemoryStatistics withUsage(Long usage)

Set the usage property: The usage property.

Parameters:

usage - the usage value to set.

Returns:

the ContainerMemoryStatistics object itself.

Applies to