Class POSIXRlimit

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class POSIXRlimit extends Object implements Serializable
POSIXRlimit type and restrictions
See Also:
  • 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
    • 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 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