Class V1ContainerStatus

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ContainerStatus

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ContainerStatus extends Object
ContainerStatus contains details for the current status of this container.
  • Field Details

  • Constructor Details

  • Method Details

    • getAllocatedResources

      public Map<String,String> getAllocatedResources()
      AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.
      Returns:
      the allocatedResources property value
    • setAllocatedResources

      public void setAllocatedResources(Map<String,String> allocatedResources)
      Set the allocatedResources property value
    • allocatedResources

      public V1ContainerStatus allocatedResources(Map<String,String> allocatedResources)
      Set allocatedResources in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • putallocatedResourcesItem

      public V1ContainerStatus putallocatedResourcesItem(String key, String allocatedResourcesItem)
      Set the value for the key for the allocatedResources map property in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getContainerID

      public String getContainerID()
      ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").
      Returns:
      the containerID property value
    • setContainerID

      public void setContainerID(String containerID)
      Set the containerID property value
    • containerID

      public V1ContainerStatus containerID(String containerID)
      Set containerID in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getImage

      public String getImage()
      Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.
      Returns:
      the image property value
    • setImage

      public void setImage(String image)
      Set the image property value
    • image

      public V1ContainerStatus image(String image)
      Set image in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getImageID

      public String getImageID()
      ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.
      Returns:
      the imageID property value
    • setImageID

      public void setImageID(String imageID)
      Set the imageID property value
    • imageID

      public V1ContainerStatus imageID(String imageID)
      Set imageID in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getLastState

      public V1ContainerState getLastState()
      Returns:
      the lastState property value
    • setLastState

      public void setLastState(V1ContainerState lastState)
      Set the lastState property value
    • lastState

      public V1ContainerStatus lastState(V1ContainerState lastState)
      Set lastState in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getName

      public String getName()
      Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
    • name

      public V1ContainerStatus name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getReady

      public Boolean getReady()
      Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic.
      Returns:
      the ready property value
    • setReady

      public void setReady(Boolean ready)
      Set the ready property value
    • ready

      public V1ContainerStatus ready(Boolean ready)
      Set ready in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getResources

      public V1ResourceRequirements getResources()
      Returns:
      the resources property value
    • setResources

      public void setResources(V1ResourceRequirements resources)
      Set the resources property value
    • resources

      public V1ContainerStatus resources(V1ResourceRequirements resources)
      Set resources in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getRestartCount

      public Integer getRestartCount()
      RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.
      Returns:
      the restartCount property value
    • setRestartCount

      public void setRestartCount(Integer restartCount)
      Set the restartCount property value
    • restartCount

      public V1ContainerStatus restartCount(Integer restartCount)
      Set restartCount in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getStarted

      public Boolean getStarted()
      Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.
      Returns:
      the started property value
    • setStarted

      public void setStarted(Boolean started)
      Set the started property value
    • started

      public V1ContainerStatus started(Boolean started)
      Set started in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • getState

      public V1ContainerState getState()
      Returns:
      the state property value
    • setState

      public void setState(V1ContainerState state)
      Set the state property value
    • state

      public V1ContainerStatus state(V1ContainerState state)
      Set state in a chainable fashion.
      Returns:
      The same instance of V1ContainerStatus for chaining.
    • 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