Class GarbageCollectionConfig


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class GarbageCollectionConfig
    extends Object
    GarbageCollectionConfig
    • Constructor Detail

      • GarbageCollectionConfig

        public GarbageCollectionConfig()
    • Method Detail

      • getGracePeriod

        @Nullable
        public Integer getGracePeriod()
        Duration in seconds. Objects created in the recent grace_period will not be collected.
        Returns:
        gracePeriod
      • setGracePeriod

        public void setGracePeriod​(Integer gracePeriod)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode 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 GarbageCollectionConfig
      • fromJson

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

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