Package com.google.cloud.storage
Class BucketInfo.NumNewerVersionsDeleteRule
java.lang.Object
com.google.cloud.storage.BucketInfo.DeleteRule
com.google.cloud.storage.BucketInfo.NumNewerVersionsDeleteRule
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketInfo
Deprecated.
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.storage.BucketInfo.DeleteRule
BucketInfo.DeleteRule.Type -
Constructor Summary
ConstructorsConstructorDescriptionNumNewerVersionsDeleteRule(int numNewerVersions) Deprecated.Creates anNumNewerVersionsDeleteRuleobject. -
Method Summary
Methods inherited from class com.google.cloud.storage.BucketInfo.DeleteRule
equals, getType, hashCode
-
Constructor Details
-
NumNewerVersionsDeleteRule
public NumNewerVersionsDeleteRule(int numNewerVersions) Deprecated.Creates anNumNewerVersionsDeleteRuleobject.- Parameters:
numNewerVersions- the number of newer versions. A blob's version meets the delete condition whennumNewerVersionsnewer versions are available.
-
-
Method Details
-
getNumNewerVersions
public int getNumNewerVersions()Deprecated.
-
LifecycleRulewith aDeleteLifecycleActionand a conditionLifecycleCondition.Builder.setNumberOfNewerVersionsinstead.