Package io.lakefs.clients.api.model
Class GarbageCollectionConfig
- java.lang.Object
-
- io.lakefs.clients.api.model.GarbageCollectionConfig
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class GarbageCollectionConfig extends Object
GarbageCollectionConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGarbageCollectionConfig.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_GRACE_PERIOD
-
Constructor Summary
Constructors Constructor Description GarbageCollectionConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GarbageCollectionConfigfromJson(String jsonString)Create an instance of GarbageCollectionConfig given an JSON stringIntegergetGracePeriod()Duration in seconds.GarbageCollectionConfiggracePeriod(Integer gracePeriod)inthashCode()voidsetGracePeriod(Integer gracePeriod)StringtoJson()Convert an instance of GarbageCollectionConfig to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
gracePeriod
public GarbageCollectionConfig gracePeriod(Integer gracePeriod)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-