Class ContainerInfo
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.ContainerInfo
-
public final class ContainerInfo extends Object
The ContainerInfo model.
-
-
Constructor Summary
Constructors Constructor Description ContainerInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerCpuStatisticscurrentCpuStats()Get the currentCpuStats property: The currentCpuStats property.OffsetDateTimecurrentTimestamp()Get the currentTimestamp property: The currentTimeStamp property.ContainerNetworkInterfaceStatisticseth0()Get the eth0 property: The eth0 property.Stringid()Get the id property: The id property.ContainerMemoryStatisticsmemoryStats()Get the memoryStats property: The memoryStats property.Stringname()Get the name property: The name property.ContainerCpuStatisticspreviousCpuStats()Get the previousCpuStats property: The previousCpuStats property.OffsetDateTimepreviousTimestamp()Get the previousTimestamp property: The previousTimeStamp property.voidvalidate()Validates the instance.ContainerInfowithCurrentCpuStats(ContainerCpuStatistics currentCpuStats)Set the currentCpuStats property: The currentCpuStats property.ContainerInfowithCurrentTimestamp(OffsetDateTime currentTimestamp)Set the currentTimestamp property: The currentTimeStamp property.ContainerInfowithEth0(ContainerNetworkInterfaceStatistics eth0)Set the eth0 property: The eth0 property.ContainerInfowithId(String id)Set the id property: The id property.ContainerInfowithMemoryStats(ContainerMemoryStatistics memoryStats)Set the memoryStats property: The memoryStats property.ContainerInfowithName(String name)Set the name property: The name property.ContainerInfowithPreviousCpuStats(ContainerCpuStatistics previousCpuStats)Set the previousCpuStats property: The previousCpuStats property.ContainerInfowithPreviousTimestamp(OffsetDateTime previousTimestamp)Set the previousTimestamp property: The previousTimeStamp property.
-
-
-
Method Detail
-
currentTimestamp
public OffsetDateTime currentTimestamp()
Get the currentTimestamp property: The currentTimeStamp property.- Returns:
- the currentTimestamp value.
-
withCurrentTimestamp
public ContainerInfo withCurrentTimestamp(OffsetDateTime currentTimestamp)
Set the currentTimestamp property: The currentTimeStamp property.- Parameters:
currentTimestamp- the currentTimestamp value to set.- Returns:
- the ContainerInfo object itself.
-
previousTimestamp
public OffsetDateTime previousTimestamp()
Get the previousTimestamp property: The previousTimeStamp property.- Returns:
- the previousTimestamp value.
-
withPreviousTimestamp
public ContainerInfo withPreviousTimestamp(OffsetDateTime previousTimestamp)
Set the previousTimestamp property: The previousTimeStamp property.- Parameters:
previousTimestamp- the previousTimestamp value to set.- Returns:
- the ContainerInfo object itself.
-
currentCpuStats
public ContainerCpuStatistics currentCpuStats()
Get the currentCpuStats property: The currentCpuStats property.- Returns:
- the currentCpuStats value.
-
withCurrentCpuStats
public ContainerInfo withCurrentCpuStats(ContainerCpuStatistics currentCpuStats)
Set the currentCpuStats property: The currentCpuStats property.- Parameters:
currentCpuStats- the currentCpuStats value to set.- Returns:
- the ContainerInfo object itself.
-
previousCpuStats
public ContainerCpuStatistics previousCpuStats()
Get the previousCpuStats property: The previousCpuStats property.- Returns:
- the previousCpuStats value.
-
withPreviousCpuStats
public ContainerInfo withPreviousCpuStats(ContainerCpuStatistics previousCpuStats)
Set the previousCpuStats property: The previousCpuStats property.- Parameters:
previousCpuStats- the previousCpuStats value to set.- Returns:
- the ContainerInfo object itself.
-
memoryStats
public ContainerMemoryStatistics memoryStats()
Get the memoryStats property: The memoryStats property.- Returns:
- the memoryStats value.
-
withMemoryStats
public ContainerInfo withMemoryStats(ContainerMemoryStatistics memoryStats)
Set the memoryStats property: The memoryStats property.- Parameters:
memoryStats- the memoryStats value to set.- Returns:
- the ContainerInfo object itself.
-
name
public String name()
Get the name property: The name property.- Returns:
- the name value.
-
withName
public ContainerInfo withName(String name)
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the ContainerInfo object itself.
-
id
public String id()
Get the id property: The id property.- Returns:
- the id value.
-
withId
public ContainerInfo withId(String id)
Set the id property: The id property.- Parameters:
id- the id value to set.- Returns:
- the ContainerInfo object itself.
-
eth0
public ContainerNetworkInterfaceStatistics eth0()
Get the eth0 property: The eth0 property.- Returns:
- the eth0 value.
-
withEth0
public ContainerInfo withEth0(ContainerNetworkInterfaceStatistics eth0)
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.
-
-