ContainerInfo Class

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

Implements

public final class ContainerInfo
implements JsonSerializable<ContainerInfo>

The ContainerInfo model.

Constructor Summary

Constructor Description
ContainerInfo()

Creates an instance of ContainerInfo class.

Method Summary

Modifier and Type Method and Description
ContainerCpuStatistics currentCpuStats()

Get the currentCpuStats property: The currentCpuStats property.

OffsetDateTime currentTimestamp()

Get the currentTimestamp property: The currentTimeStamp property.

ContainerNetworkInterfaceStatistics eth0()

Get the eth0 property: The eth0 property.

static ContainerInfo fromJson(JsonReader jsonReader)

Reads an instance of ContainerInfo from the JsonReader.

String id()

Get the id property: The id property.

ContainerMemoryStatistics memoryStats()

Get the memoryStats property: The memoryStats property.

String name()

Get the name property: The name property.

ContainerCpuStatistics previousCpuStats()

Get the previousCpuStats property: The previousCpuStats property.

OffsetDateTime previousTimestamp()

Get the previousTimestamp property: The previousTimeStamp property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerInfo withCurrentCpuStats(ContainerCpuStatistics currentCpuStats)

Set the currentCpuStats property: The currentCpuStats property.

ContainerInfo withCurrentTimestamp(OffsetDateTime currentTimestamp)

Set the currentTimestamp property: The currentTimeStamp property.

ContainerInfo withEth0(ContainerNetworkInterfaceStatistics eth0)

Set the eth0 property: The eth0 property.

ContainerInfo withId(String id)

Set the id property: The id property.

ContainerInfo withMemoryStats(ContainerMemoryStatistics memoryStats)

Set the memoryStats property: The memoryStats property.

ContainerInfo withName(String name)

Set the name property: The name property.

ContainerInfo withPreviousCpuStats(ContainerCpuStatistics previousCpuStats)

Set the previousCpuStats property: The previousCpuStats property.

ContainerInfo withPreviousTimestamp(OffsetDateTime previousTimestamp)

Set the previousTimestamp property: The previousTimeStamp property.

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:

the currentCpuStats value.

currentTimestamp

public OffsetDateTime currentTimestamp()

Get the currentTimestamp property: The currentTimeStamp property.

Returns:

the currentTimestamp value.

eth0

public ContainerNetworkInterfaceStatistics eth0()

Get the eth0 property: The eth0 property.

Returns:

the eth0 value.

fromJson

public static ContainerInfo fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: The id property.

Returns:

the id value.

memoryStats

public ContainerMemoryStatistics memoryStats()

Get the memoryStats property: The memoryStats property.

Returns:

the memoryStats value.

name

public String name()

Get the name property: The name property.

Returns:

the name value.

previousCpuStats

public ContainerCpuStatistics previousCpuStats()

Get the previousCpuStats property: The previousCpuStats property.

Returns:

the previousCpuStats value.

previousTimestamp

public OffsetDateTime previousTimestamp()

Get the previousTimestamp property: The previousTimeStamp property.

Returns:

the previousTimestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to