ContainerInfo Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ContainerInfo
- com.
Implements
public final class ContainerInfo
implements JsonSerializable<ContainerInfo>
The ContainerInfo model.
Constructor Summary
Constructor | Description |
---|---|
ContainerInfo() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
Container |
currentCpuStats()
Get the current |
Offset |
currentTimestamp()
Get the current |
Container |
eth0()
Get the eth0 property: The eth0 property. |
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
String |
id()
Get the id property: The id property. |
Container |
memoryStats()
Get the memory |
String |
name()
Get the name property: The name property. |
Container |
previousCpuStats()
Get the previous |
Offset |
previousTimestamp()
Get the previous |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container |
withCurrentCpuStats(ContainerCpuStatistics currentCpuStats)
Set the current |
Container |
withCurrentTimestamp(OffsetDateTime currentTimestamp)
Set the current |
Container |
withEth0(ContainerNetworkInterfaceStatistics eth0)
Set the eth0 property: The eth0 property. |
Container |
withId(String id)
Set the id property: The id property. |
Container |
withMemoryStats(ContainerMemoryStatistics memoryStats)
Set the memory |
Container |
withName(String name)
Set the name property: The name property. |
Container |
withPreviousCpuStats(ContainerCpuStatistics previousCpuStats)
Set the previous |
Container |
withPreviousTimestamp(OffsetDateTime previousTimestamp)
Set the previous |
Methods inherited from java.lang.Object
Constructor Details
ContainerInfo
public ContainerInfo()
Creates an instance of ContainerInfo class.
Method Details
currentCpuStats
public ContainerCpuStatistics currentCpuStats()
Get the currentCpuStats property: The currentCpuStats property.
Returns:
currentTimestamp
public OffsetDateTime currentTimestamp()
Get the currentTimestamp property: The currentTimeStamp property.
Returns:
eth0
public ContainerNetworkInterfaceStatistics eth0()
Get the eth0 property: The eth0 property.
Returns:
fromJson
public static ContainerInfo fromJson(JsonReader jsonReader)
Reads an instance of ContainerInfo from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The id property.
Returns:
memoryStats
public ContainerMemoryStatistics memoryStats()
Get the memoryStats property: The memoryStats property.
Returns:
name
public String name()
Get the name property: The name property.
Returns:
previousCpuStats
public ContainerCpuStatistics previousCpuStats()
Get the previousCpuStats property: The previousCpuStats property.
Returns:
previousTimestamp
public OffsetDateTime previousTimestamp()
Get the previousTimestamp property: The previousTimeStamp property.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCurrentCpuStats
public ContainerInfo withCurrentCpuStats(ContainerCpuStatistics currentCpuStats)
Set the currentCpuStats property: The currentCpuStats property.
Parameters:
Returns:
withCurrentTimestamp
public ContainerInfo withCurrentTimestamp(OffsetDateTime currentTimestamp)
Set the currentTimestamp property: The currentTimeStamp property.
Parameters:
Returns:
withEth0
public ContainerInfo withEth0(ContainerNetworkInterfaceStatistics eth0)
Set the eth0 property: The eth0 property.
Parameters:
Returns:
withId
public ContainerInfo withId(String id)
Set the id property: The id property.
Parameters:
Returns:
withMemoryStats
public ContainerInfo withMemoryStats(ContainerMemoryStatistics memoryStats)
Set the memoryStats property: The memoryStats property.
Parameters:
Returns:
withName
public ContainerInfo withName(String name)
Set the name property: The name property.
Parameters:
Returns:
withPreviousCpuStats
public ContainerInfo withPreviousCpuStats(ContainerCpuStatistics previousCpuStats)
Set the previousCpuStats property: The previousCpuStats property.
Parameters:
Returns:
withPreviousTimestamp
public ContainerInfo withPreviousTimestamp(OffsetDateTime previousTimestamp)
Set the previousTimestamp property: The previousTimeStamp property.
Parameters:
Returns:
Applies to
Azure SDK for Java