Class BucketInfo.NumNewerVersionsDeleteRule (2.20.0)

public static class BucketInfo.NumNewerVersionsDeleteRule extends BucketInfo.DeleteRule

Deprecated. Use a LifecycleRule with a DeleteLifecycleAction and a condition LifecycleCondition.Builder.setNumberOfNewerVersions instead.

Delete rule class for versioned blobs. Specifies when to delete a blob's version according to the number of available newer versions for that blob. See Also: Object Lifecycle Management

Inheritance

java.lang.Object > BucketInfo.DeleteRule > BucketInfo.NumNewerVersionsDeleteRule

Constructors

NumNewerVersionsDeleteRule(int numNewerVersions) (deprecated)

public NumNewerVersionsDeleteRule(int numNewerVersions)

Creates an NumNewerVersionsDeleteRule object.

Parameter
NameDescription
numNewerVersionsint

the number of newer versions. A blob's version meets the delete condition when numNewerVersions newer versions are available.

Methods

getNumNewerVersions() (deprecated)

public int getNumNewerVersions()
Returns
TypeDescription
int