Class LinuxIDMapping

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LinuxIDMapping extends Object implements Serializable
LinuxIDMapping specifies UID/GID mappings
See Also:
  • Field Details

  • Constructor Details

    • LinuxIDMapping

      public LinuxIDMapping()
  • Method Details

    • containerID

      public LinuxIDMapping containerID(Integer containerID)
    • getContainerID

      @Nullable public Integer getContainerID()
      ContainerID is the starting UID/GID in the container
      Returns:
      containerID
    • setContainerID

      public void setContainerID(Integer containerID)
    • hostID

      public LinuxIDMapping hostID(Integer hostID)
    • getHostID

      @Nullable public Integer getHostID()
      HostID is the starting UID/GID on the host to be mapped to 'ContainerID'
      Returns:
      hostID
    • setHostID

      public void setHostID(Integer hostID)
    • size

      public LinuxIDMapping size(Integer size)
    • getSize

      @Nullable public Integer getSize()
      Size is the number of IDs to be mapped
      Returns:
      size
    • setSize

      public void setSize(Integer size)
    • 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 LinuxIDMapping
    • fromJson

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

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