Class ListContainer
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ListContainer
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class ListContainer
extends Object
ListContainer describes a container suitable for listing
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCommandItem(String commandItem) addMountsItem(String mountsItem) addNamesItem(String namesItem) addNetworksItem(String networksItem) addPortsItem(PortMapping portsItem) autoRemove(Boolean autoRemove) created(OffsetDateTime created) booleanexposedPorts(Object exposedPorts) static ListContainerCreate an instance of ListContainer given an JSON stringAutoRemoveCIDFile specified at creation time.Container commandContainer creation timeHuman-readable container creation time.If container has exited, the return code from the commandIf container has exited/stoppedTime container exitedExposedPorts contains the ports that are exposed but not forwarded, see Ports for forwarded ports.getId()The unique identifier for the containergetImage()Container imageContainer image IDIf this container is a Pod infra containerLabels for containerUser volume mountsgetNames()The names assigned to the containerGet namespacesThe network names assigned to the containergetPid()The process id of the containergetPod()If the container is part of Pod, the Pod ID.If the container is part of Pod, the Pod name.getPorts()Port mappingsRestarts is how many times the container was restarted by its restart policy.getSize()Get sizeTime when container startedgetState()State of containerStatus is a human-readable approximation of a duration for json outputinthashCode()namespaces(ListContainerNamespaces namespaces) ports(List<PortMapping> ports) putLabelsItem(String key, String labelsItem) voidsetAutoRemove(Boolean autoRemove) voidsetCiDFile(String ciDFile) voidsetCommand(List<String> command) voidsetCreated(OffsetDateTime created) voidsetCreatedAt(String createdAt) voidsetExitCode(Integer exitCode) voidvoidsetExitedAt(Long exitedAt) voidsetExposedPorts(Object exposedPorts) voidvoidvoidsetImageID(String imageID) voidsetIsInfra(Boolean isInfra) voidvoidvoidvoidsetNamespaces(ListContainerNamespaces namespaces) voidsetNetworks(List<String> networks) voidvoidvoidsetPodName(String podName) voidsetPorts(List<PortMapping> ports) voidsetRestarts(Integer restarts) voidsetSize(ContainerSize size) voidsetStartedAt(Long startedAt) voidvoidsize(ContainerSize size) toJson()Convert an instance of ListContainer to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUTO_REMOVE
- See Also:
-
SERIALIZED_NAME_CI_D_FILE
- See Also:
-
SERIALIZED_NAME_COMMAND
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EXIT_CODE
- See Also:
-
SERIALIZED_NAME_EXITED
- See Also:
-
SERIALIZED_NAME_EXITED_AT
- See Also:
-
SERIALIZED_NAME_EXPOSED_PORTS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IMAGE
- See Also:
-
SERIALIZED_NAME_IMAGE_I_D
- See Also:
-
SERIALIZED_NAME_IS_INFRA
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_MOUNTS
- See Also:
-
SERIALIZED_NAME_NAMES
- See Also:
-
SERIALIZED_NAME_NAMESPACES
- See Also:
-
SERIALIZED_NAME_NETWORKS
- See Also:
-
SERIALIZED_NAME_PID
- See Also:
-
SERIALIZED_NAME_POD
- See Also:
-
SERIALIZED_NAME_POD_NAME
- See Also:
-
SERIALIZED_NAME_PORTS
- See Also:
-
SERIALIZED_NAME_RESTARTS
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ListContainer
public ListContainer()
-
-
Method Details
-
autoRemove
-
getAutoRemove
AutoRemove- Returns:
- autoRemove
-
setAutoRemove
-
ciDFile
-
getCiDFile
CIDFile specified at creation time.- Returns:
- ciDFile
-
setCiDFile
-
command
-
addCommandItem
-
getCommand
Container command- Returns:
- command
-
setCommand
-
created
-
getCreated
Container creation time- Returns:
- created
-
setCreated
-
createdAt
-
getCreatedAt
Human-readable container creation time.- Returns:
- createdAt
-
setCreatedAt
-
exitCode
-
getExitCode
If container has exited, the return code from the command- Returns:
- exitCode
-
setExitCode
-
exited
-
getExited
If container has exited/stopped- Returns:
- exited
-
setExited
-
exitedAt
-
getExitedAt
Time container exited- Returns:
- exitedAt
-
setExitedAt
-
exposedPorts
-
getExposedPorts
ExposedPorts contains the ports that are exposed but not forwarded, see Ports for forwarded ports. The key is the port number and the string slice contains the protocols, i.e. \"tcp\", \"udp\" and \"sctp\".- Returns:
- exposedPorts
-
setExposedPorts
-
id
-
getId
The unique identifier for the container- Returns:
- id
-
setId
-
image
-
getImage
Container image- Returns:
- image
-
setImage
-
imageID
-
getImageID
Container image ID- Returns:
- imageID
-
setImageID
-
isInfra
-
getIsInfra
If this container is a Pod infra container- Returns:
- isInfra
-
setIsInfra
-
labels
-
putLabelsItem
-
getLabels
Labels for container- Returns:
- labels
-
setLabels
-
mounts
-
addMountsItem
-
getMounts
User volume mounts- Returns:
- mounts
-
setMounts
-
names
-
addNamesItem
-
getNames
The names assigned to the container- Returns:
- names
-
setNames
-
namespaces
-
getNamespaces
Get namespaces- Returns:
- namespaces
-
setNamespaces
-
networks
-
addNetworksItem
-
getNetworks
The network names assigned to the container- Returns:
- networks
-
setNetworks
-
pid
-
getPid
The process id of the container- Returns:
- pid
-
setPid
-
pod
-
getPod
If the container is part of Pod, the Pod ID. Requires the pod boolean to be set- Returns:
- pod
-
setPod
-
podName
-
getPodName
If the container is part of Pod, the Pod name. Requires the pod boolean to be set- Returns:
- podName
-
setPodName
-
ports
-
addPortsItem
-
getPorts
Port mappings- Returns:
- ports
-
setPorts
-
restarts
-
getRestarts
Restarts is how many times the container was restarted by its restart policy. This is NOT incremented by normal container restarts (only by restart policy).- Returns:
- restarts
-
setRestarts
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
startedAt
-
getStartedAt
Time when container started- Returns:
- startedAt
-
setStartedAt
-
state
-
getState
State of container- Returns:
- state
-
setState
-
status
-
getStatus
Status is a human-readable approximation of a duration for json output- Returns:
- status
-
setStatus
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ListContainer
-
fromJson
Create an instance of ListContainer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListContainer
- Throws:
IOException- if the JSON string is invalid with respect to ListContainer
-
toJson
Convert an instance of ListContainer to an JSON string- Returns:
- JSON string
-