Class LinuxDevice

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

@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 LinuxDevice extends Object
LinuxDevice represents the mknod information for a Linux special device file
  • Field Details

  • Constructor Details

    • LinuxDevice

      public LinuxDevice()
  • Method Details

    • fileMode

      public LinuxDevice fileMode(Integer fileMode)
    • getFileMode

      @Nullable public Integer getFileMode()
      The bits have the same definition on all systems, so that information about files can be moved from one system to another portably. Not all bits apply to all systems. The only required bit is [ModeDir] for directories.
      Returns:
      fileMode
    • setFileMode

      public void setFileMode(Integer fileMode)
    • gid

      public LinuxDevice gid(Integer gid)
    • getGid

      @Nullable public Integer getGid()
      Gid of the device.
      Returns:
      gid
    • setGid

      public void setGid(Integer gid)
    • major

      public LinuxDevice major(Long major)
    • getMajor

      @Nullable public Long getMajor()
      Major is the device's major number.
      Returns:
      major
    • setMajor

      public void setMajor(Long major)
    • minor

      public LinuxDevice minor(Long minor)
    • getMinor

      @Nullable public Long getMinor()
      Minor is the device's minor number.
      Returns:
      minor
    • setMinor

      public void setMinor(Long minor)
    • path

      public LinuxDevice path(String path)
    • getPath

      @Nullable public String getPath()
      Path to the device.
      Returns:
      path
    • setPath

      public void setPath(String path)
    • type

      public LinuxDevice type(String type)
    • getType

      @Nullable public String getType()
      Device type, block, char, etc.
      Returns:
      type
    • setType

      public void setType(String type)
    • uid

      public LinuxDevice uid(Integer uid)
    • getUid

      @Nullable public Integer getUid()
      UID of the device.
      Returns:
      uid
    • setUid

      public void setUid(Integer uid)
    • 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 LinuxDevice
    • fromJson

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

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