Class ContainerCgroupConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerCgroupConfig
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ContainerCgroupConfig extends Object implements Serializable
ContainerCgroupConfig contains configuration information about a container's cgroups.
See Also:
  • Field Details

  • Constructor Details

    • ContainerCgroupConfig

      public ContainerCgroupConfig()
  • Method Details

    • cgroupParent

      public ContainerCgroupConfig cgroupParent(String cgroupParent)
    • getCgroupParent

      @Nullable public String getCgroupParent()
      CgroupParent is the container's Cgroup parent. If not set, the default for the current cgroup driver will be used. Optional.
      Returns:
      cgroupParent
    • setCgroupParent

      public void setCgroupParent(String cgroupParent)
    • cgroupns

      public ContainerCgroupConfig cgroupns(Namespace cgroupns)
    • getCgroupns

      @Nullable @Valid public @Valid Namespace getCgroupns()
      Get cgroupns
      Returns:
      cgroupns
    • setCgroupns

      public void setCgroupns(Namespace cgroupns)
    • cgroupsMode

      public ContainerCgroupConfig cgroupsMode(String cgroupsMode)
    • getCgroupsMode

      @Nullable public String getCgroupsMode()
      CgroupsMode sets a policy for how cgroups will be created for the container, including the ability to disable creation entirely. Optional.
      Returns:
      cgroupsMode
    • setCgroupsMode

      public void setCgroupsMode(String cgroupsMode)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to ContainerCgroupConfig
    • fromJson

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

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