Class ListContainer

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ListContainer

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class ListContainer extends Object
ListContainer describes a container suitable for listing
  • Field Details

  • Constructor Details

    • ListContainer

      public ListContainer()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static ListContainer fromJson(String jsonString) throws IOException
      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
    • autoRemove

      public ListContainer autoRemove(Boolean autoRemove)
    • getAutoRemove

      @Nullable public Boolean getAutoRemove()
      AutoRemove
      Returns:
      autoRemove
    • setAutoRemove

      public void setAutoRemove(Boolean autoRemove)
    • ciDFile

      public ListContainer ciDFile(String ciDFile)
    • getCiDFile

      @Nullable public String getCiDFile()
      CIDFile specified at creation time.
      Returns:
      ciDFile
    • setCiDFile

      public void setCiDFile(String ciDFile)
    • command

      public ListContainer command(List<String> command)
    • addCommandItem

      public ListContainer addCommandItem(String commandItem)
    • getCommand

      @Nullable public List<String> getCommand()
      Container command
      Returns:
      command
    • setCommand

      public void setCommand(List<String> command)
    • created

      public ListContainer created(OffsetDateTime created)
    • getCreated

      @Nullable @Valid public @Valid OffsetDateTime getCreated()
      Container creation time
      Returns:
      created
    • setCreated

      public void setCreated(OffsetDateTime created)
    • createdAt

      public ListContainer createdAt(String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      Human-readable container creation time.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(String createdAt)
    • exitCode

      public ListContainer exitCode(Integer exitCode)
    • getExitCode

      @Nullable public Integer getExitCode()
      If container has exited, the return code from the command
      Returns:
      exitCode
    • setExitCode

      public void setExitCode(Integer exitCode)
    • exited

      public ListContainer exited(Boolean exited)
    • getExited

      @Nullable public Boolean getExited()
      If container has exited/stopped
      Returns:
      exited
    • setExited

      public void setExited(Boolean exited)
    • exitedAt

      public ListContainer exitedAt(Long exitedAt)
    • getExitedAt

      @Nullable public Long getExitedAt()
      Time container exited
      Returns:
      exitedAt
    • setExitedAt

      public void setExitedAt(Long exitedAt)
    • exposedPorts

      public ListContainer exposedPorts(Object exposedPorts)
    • getExposedPorts

      @Nullable public Object 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

      public void setExposedPorts(Object exposedPorts)
    • id

      public ListContainer id(String id)
    • getId

      @Nullable public String getId()
      The unique identifier for the container
      Returns:
      id
    • setId

      public void setId(String id)
    • image

      public ListContainer image(String image)
    • getImage

      @Nullable public String getImage()
      Container image
      Returns:
      image
    • setImage

      public void setImage(String image)
    • imageID

      public ListContainer imageID(String imageID)
    • getImageID

      @Nullable public String getImageID()
      Container image ID
      Returns:
      imageID
    • setImageID

      public void setImageID(String imageID)
    • isInfra

      public ListContainer isInfra(Boolean isInfra)
    • getIsInfra

      @Nullable public Boolean getIsInfra()
      If this container is a Pod infra container
      Returns:
      isInfra
    • setIsInfra

      public void setIsInfra(Boolean isInfra)
    • labels

      public ListContainer labels(Map<String,String> labels)
    • putLabelsItem

      public ListContainer putLabelsItem(String key, String labelsItem)
    • getLabels

      @Nullable public Map<String,String> getLabels()
      Labels for container
      Returns:
      labels
    • setLabels

      public void setLabels(Map<String,String> labels)
    • mounts

      public ListContainer mounts(List<String> mounts)
    • addMountsItem

      public ListContainer addMountsItem(String mountsItem)
    • getMounts

      @Nullable public List<String> getMounts()
      User volume mounts
      Returns:
      mounts
    • setMounts

      public void setMounts(List<String> mounts)
    • names

      public ListContainer names(List<String> names)
    • addNamesItem

      public ListContainer addNamesItem(String namesItem)
    • getNames

      @Nullable public List<String> getNames()
      The names assigned to the container
      Returns:
      names
    • setNames

      public void setNames(List<String> names)
    • namespaces

      public ListContainer namespaces(ListContainerNamespaces namespaces)
    • getNamespaces

      @Nullable @Valid public @Valid ListContainerNamespaces getNamespaces()
      Get namespaces
      Returns:
      namespaces
    • setNamespaces

      public void setNamespaces(ListContainerNamespaces namespaces)
    • networks

      public ListContainer networks(List<String> networks)
    • addNetworksItem

      public ListContainer addNetworksItem(String networksItem)
    • getNetworks

      @Nullable public List<String> getNetworks()
      The network names assigned to the container
      Returns:
      networks
    • setNetworks

      public void setNetworks(List<String> networks)
    • pid

      public ListContainer pid(Long pid)
    • getPid

      @Nullable public Long getPid()
      The process id of the container
      Returns:
      pid
    • setPid

      public void setPid(Long pid)
    • pod

      public ListContainer pod(String pod)
    • getPod

      @Nullable public String getPod()
      If the container is part of Pod, the Pod ID. Requires the pod boolean to be set
      Returns:
      pod
    • setPod

      public void setPod(String pod)
    • podName

      public ListContainer podName(String podName)
    • getPodName

      @Nullable public String getPodName()
      If the container is part of Pod, the Pod name. Requires the pod boolean to be set
      Returns:
      podName
    • setPodName

      public void setPodName(String podName)
    • ports

      public ListContainer ports(List<@Valid PortMapping> ports)
    • addPortsItem

      public ListContainer addPortsItem(PortMapping portsItem)
    • getPorts

      @Nullable @Valid public @Valid List<@Valid PortMapping> getPorts()
      Port mappings
      Returns:
      ports
    • setPorts

      public void setPorts(List<@Valid PortMapping> ports)
    • restarts

      public ListContainer restarts(Integer restarts)
    • getRestarts

      @Nullable public Integer 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

      public void setRestarts(Integer restarts)
    • size

      public ListContainer size(ContainerSize size)
    • getSize

      @Nullable @Valid public @Valid ContainerSize getSize()
      Get size
      Returns:
      size
    • setSize

      public void setSize(ContainerSize size)
    • startedAt

      public ListContainer startedAt(Long startedAt)
    • getStartedAt

      @Nullable public Long getStartedAt()
      Time when container started
      Returns:
      startedAt
    • setStartedAt

      public void setStartedAt(Long startedAt)
    • state

      public ListContainer state(String state)
    • getState

      @Nullable public String getState()
      State of container
      Returns:
      state
    • setState

      public void setState(String state)
    • status

      public ListContainer status(String status)
    • getStatus

      @Nullable public String getStatus()
      Status is a human-readable approximation of a duration for json output
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()
      Convert an instance of ListContainer to an JSON string
      Returns:
      JSON string