Class BucketInfo.LifecycleRule.LifecycleAction (2.2.3)

public abstract static class BucketInfo.LifecycleRule.LifecycleAction implements Serializable

Base class for the Action to take when a Lifecycle Condition is met. Specific Actions are expressed as subclasses of this class, accessed by static factory methods.

Inheritance

java.lang.Object > BucketInfo.LifecycleRule.LifecycleAction

Implements

Serializable

Constructors

LifecycleAction()

public LifecycleAction()

Methods

getActionType()

public abstract String getActionType()
Returns
Type Description
String

newDeleteAction()

public static BucketInfo.LifecycleRule.DeleteLifecycleAction newDeleteAction()

Creates a new DeleteLifecycleAction. Blobs that meet the Condition associated with this action will be deleted.

Returns
Type Description
BucketInfo.LifecycleRule.DeleteLifecycleAction

newSetStorageClassAction(StorageClass storageClass)

public static BucketInfo.LifecycleRule.SetStorageClassLifecycleAction newSetStorageClassAction(StorageClass storageClass)

Creates a new SetStorageClassLifecycleAction. A Blob's storage class that meets the action's conditions will be changed to the specified storage class.

Parameter
Name Description
storageClass StorageClass

The new storage class to use when conditions are met for this action.

Returns
Type Description
BucketInfo.LifecycleRule.SetStorageClassLifecycleAction

toString()

public String toString()
Returns
Type Description
String
Overrides