Class PlayKubePod

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

@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 PlayKubePod extends Object
PlayKubePod
  • Field Details

  • Constructor Details

    • PlayKubePod

      public PlayKubePod()
  • Method Details

    • containerErrors

      public PlayKubePod containerErrors(List<String> containerErrors)
    • addContainerErrorsItem

      public PlayKubePod addContainerErrorsItem(String containerErrorsItem)
    • getContainerErrors

      @Nullable public List<String> getContainerErrors()
      ContainerErrors - any errors that occurred while starting containers in the pod.
      Returns:
      containerErrors
    • setContainerErrors

      public void setContainerErrors(List<String> containerErrors)
    • containers

      public PlayKubePod containers(List<String> containers)
    • addContainersItem

      public PlayKubePod addContainersItem(String containersItem)
    • getContainers

      @Nullable public List<String> getContainers()
      Containers - the IDs of the containers running in the created pod.
      Returns:
      containers
    • setContainers

      public void setContainers(List<String> containers)
    • ID

      public PlayKubePod ID(String ID)
    • getID

      @Nullable public String getID()
      ID - ID of the pod created as a result of play kube.
      Returns:
      ID
    • setID

      public void setID(String ID)
    • initContainers

      public PlayKubePod initContainers(List<String> initContainers)
    • addInitContainersItem

      public PlayKubePod addInitContainersItem(String initContainersItem)
    • getInitContainers

      @Nullable public List<String> getInitContainers()
      InitContainers - the IDs of the init containers to be run in the created pod.
      Returns:
      initContainers
    • setInitContainers

      public void setInitContainers(List<String> initContainers)
    • logs

      public PlayKubePod logs(List<String> logs)
    • addLogsItem

      public PlayKubePod addLogsItem(String logsItem)
    • getLogs

      @Nullable public List<String> getLogs()
      Logs - non-fatal errors and log messages while processing.
      Returns:
      logs
    • setLogs

      public void setLogs(List<String> logs)
    • 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
    • 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 PlayKubePod
    • fromJson

      public static PlayKubePod fromJson(String jsonString) throws IOException
      Create an instance of PlayKubePod given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PlayKubePod
      Throws:
      IOException - if the JSON string is invalid with respect to PlayKubePod
    • toJson

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