Class ContainerMemoryStatistics
java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerMemoryStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerMemoryStatistics>
public final class ContainerMemoryStatistics
extends Object
implements com.azure.json.JsonSerializable<ContainerMemoryStatistics>
The ContainerMemoryStatistics model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerMemoryStatistics class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerMemoryStatistics
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerMemoryStatistics from the JsonReader.limit()
Get the limit property: The limit property.maxUsage()
Get the maxUsage property: The maxUsage property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) usage()
Get the usage property: The usage property.void
validate()
Validates the instance.Set the limit property: The limit property.withMaxUsage
(Long maxUsage) Set the maxUsage property: The maxUsage property.Set the usage property: The usage property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerMemoryStatistics
public ContainerMemoryStatistics()Creates an instance of ContainerMemoryStatistics class.
-
-
Method Details
-
usage
Get the usage property: The usage property.- Returns:
- the usage value.
-
withUsage
Set the usage property: The usage property.- Parameters:
usage
- the usage value to set.- Returns:
- the ContainerMemoryStatistics object itself.
-
maxUsage
Get the maxUsage property: The maxUsage property.- Returns:
- the maxUsage value.
-
withMaxUsage
Set the maxUsage property: The maxUsage property.- Parameters:
maxUsage
- the maxUsage value to set.- Returns:
- the ContainerMemoryStatistics object itself.
-
limit
Get the limit property: The limit property.- Returns:
- the limit value.
-
withLimit
Set the limit property: The limit property.- Parameters:
limit
- the limit value to set.- Returns:
- the ContainerMemoryStatistics object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ContainerMemoryStatistics>
- Throws:
IOException
-
fromJson
public static ContainerMemoryStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-