Package io.lakefs.clients.sdk.model
Class GarbageCollectionRules
- java.lang.Object
-
- io.lakefs.clients.sdk.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 stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.List<GarbageCollectionRule>getBranches()Get branchesIntegergetDefaultRetentionDays()Get defaultRetentionDaysinthashCode()GarbageCollectionRulesputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetBranches(List<GarbageCollectionRule> branches)voidsetDefaultRetentionDays(Integer defaultRetentionDays)StringtoJson()Convert an instance of GarbageCollectionRules to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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)
-
putAdditionalProperty
public GarbageCollectionRules putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the GarbageCollectionRules instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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 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
-
-