Class BucketInfo.NumNewerVersionsDeleteRule (2.2.3)

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.

Inheritance

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

Constructors

NumNewerVersionsDeleteRule(int numNewerVersions) (deprecated)

public NumNewerVersionsDeleteRule(int numNewerVersions)

Creates an NumNewerVersionsDeleteRule object.

Parameter
Name Description
numNewerVersions int

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
Type Description
int