Package io.lakefs.clients.api.model
Class GarbageCollectionRules
- java.lang.Object
-
- io.lakefs.clients.api.model.GarbageCollectionRules
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class GarbageCollectionRules extends Object
GarbageCollectionRules
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGarbageCollectionRules.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BRANCHESstatic StringSERIALIZED_NAME_DEFAULT_RETENTION_DAYS
-
Constructor Summary
Constructors Constructor Description GarbageCollectionRules()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GarbageCollectionRulesaddBranchesItem(GarbageCollectionRule branchesItem)GarbageCollectionRulesbranches(List<GarbageCollectionRule> branches)GarbageCollectionRulesdefaultRetentionDays(Integer defaultRetentionDays)booleanequals(Object o)static GarbageCollectionRulesfromJson(String jsonString)Create an instance of GarbageCollectionRules given an JSON stringList<GarbageCollectionRule>getBranches()Get branchesIntegergetDefaultRetentionDays()Get defaultRetentionDaysinthashCode()voidsetBranches(List<GarbageCollectionRule> branches)voidsetDefaultRetentionDays(Integer defaultRetentionDays)StringtoJson()Convert an instance of GarbageCollectionRules to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DEFAULT_RETENTION_DAYS
public static final String SERIALIZED_NAME_DEFAULT_RETENTION_DAYS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BRANCHES
public static final String SERIALIZED_NAME_BRANCHES
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultRetentionDays
public GarbageCollectionRules defaultRetentionDays(Integer defaultRetentionDays)
-
getDefaultRetentionDays
@Nonnull public Integer getDefaultRetentionDays()
Get defaultRetentionDays- Returns:
- defaultRetentionDays
-
setDefaultRetentionDays
public void setDefaultRetentionDays(Integer defaultRetentionDays)
-
branches
public GarbageCollectionRules branches(List<GarbageCollectionRule> branches)
-
addBranchesItem
public GarbageCollectionRules addBranchesItem(GarbageCollectionRule branchesItem)
-
getBranches
@Nonnull public List<GarbageCollectionRule> getBranches()
Get branches- Returns:
- branches
-
setBranches
public void setBranches(List<GarbageCollectionRule> branches)
-
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 GarbageCollectionRules
-
fromJson
public static GarbageCollectionRules fromJson(String jsonString) throws IOException
Create an instance of GarbageCollectionRules given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GarbageCollectionRules
- Throws:
IOException- if the JSON string is invalid with respect to GarbageCollectionRules
-
toJson
public String toJson()
Convert an instance of GarbageCollectionRules to an JSON string- Returns:
- JSON string
-
-