Class ContainerInfo
java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerInfo>
public final class ContainerInfo
extends Object
implements com.azure.json.JsonSerializable<ContainerInfo>
The ContainerInfo model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentCpuStats property: The currentCpuStats property.Get the currentTimestamp property: The currentTimeStamp property.eth0()Get the eth0 property: The eth0 property.static ContainerInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerInfo from the JsonReader.id()Get the id property: The id property.Get the memoryStats property: The memoryStats property.name()Get the name property: The name property.Get the previousCpuStats property: The previousCpuStats property.Get the previousTimestamp property: The previousTimeStamp property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCurrentCpuStats(ContainerCpuStatistics currentCpuStats) Set the currentCpuStats property: The currentCpuStats property.withCurrentTimestamp(OffsetDateTime currentTimestamp) Set the currentTimestamp property: The currentTimeStamp property.Set the eth0 property: The eth0 property.Set the id property: The id property.withMemoryStats(ContainerMemoryStatistics memoryStats) Set the memoryStats property: The memoryStats property.Set the name property: The name property.withPreviousCpuStats(ContainerCpuStatistics previousCpuStats) Set the previousCpuStats property: The previousCpuStats property.withPreviousTimestamp(OffsetDateTime previousTimestamp) Set the previousTimestamp property: The previousTimeStamp property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerInfo
public ContainerInfo()Creates an instance of ContainerInfo class.
-
-
Method Details
-
currentTimestamp
Get the currentTimestamp property: The currentTimeStamp property.- Returns:
- the currentTimestamp value.
-
withCurrentTimestamp
Set the currentTimestamp property: The currentTimeStamp property.- Parameters:
currentTimestamp- the currentTimestamp value to set.- Returns:
- the ContainerInfo object itself.
-
previousTimestamp
Get the previousTimestamp property: The previousTimeStamp property.- Returns:
- the previousTimestamp value.
-
withPreviousTimestamp
Set the previousTimestamp property: The previousTimeStamp property.- Parameters:
previousTimestamp- the previousTimestamp value to set.- Returns:
- the ContainerInfo object itself.
-
currentCpuStats
Get the currentCpuStats property: The currentCpuStats property.- Returns:
- the currentCpuStats value.
-
withCurrentCpuStats
Set the currentCpuStats property: The currentCpuStats property.- Parameters:
currentCpuStats- the currentCpuStats value to set.- Returns:
- the ContainerInfo object itself.
-
previousCpuStats
Get the previousCpuStats property: The previousCpuStats property.- Returns:
- the previousCpuStats value.
-
withPreviousCpuStats
Set the previousCpuStats property: The previousCpuStats property.- Parameters:
previousCpuStats- the previousCpuStats value to set.- Returns:
- the ContainerInfo object itself.
-
memoryStats
Get the memoryStats property: The memoryStats property.- Returns:
- the memoryStats value.
-
withMemoryStats
Set the memoryStats property: The memoryStats property.- Parameters:
memoryStats- the memoryStats value to set.- Returns:
- the ContainerInfo object itself.
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the ContainerInfo object itself.
-
id
Get the id property: The id property.- Returns:
- the id value.
-
withId
Set the id property: The id property.- Parameters:
id- the id value to set.- Returns:
- the ContainerInfo object itself.
-
eth0
Get the eth0 property: The eth0 property.- Returns:
- the eth0 value.
-
withEth0
Set the eth0 property: The eth0 property.- Parameters:
eth0- the eth0 value to set.- Returns:
- the ContainerInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerInfo>- Throws:
IOException
-
fromJson
Reads an instance of ContainerInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerInfo 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 ContainerInfo.
-