Class POSIXRlimit

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

@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 POSIXRlimit extends Object
POSIXRlimit type and restrictions
  • Field Details

  • Constructor Details

    • POSIXRlimit

      public POSIXRlimit()
  • Method Details

    • hard

      public POSIXRlimit hard(Integer hard)
    • getHard

      @Nullable public Integer getHard()
      Hard is the hard limit for the specified type
      Returns:
      hard
    • setHard

      public void setHard(Integer hard)
    • soft

      public POSIXRlimit soft(Integer soft)
    • getSoft

      @Nullable public Integer getSoft()
      Soft is the soft limit for the specified type
      Returns:
      soft
    • setSoft

      public void setSoft(Integer soft)
    • type

      public POSIXRlimit type(String type)
    • getType

      @Nullable public String getType()
      Type of the rlimit to set
      Returns:
      type
    • setType

      public void setType(String type)
    • 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 POSIXRlimit
    • fromJson

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

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