Class BucketInfo.LifecycleRule.LifecycleAction (2.1.10)

public static class BucketInfo.LifecycleRule.LifecycleAction implements Serializable

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

Inheritance

java.lang.Object > BucketInfo.LifecycleRule.LifecycleAction

Implements

Serializable

Constructors

LifecycleAction(String actionType)

public LifecycleAction(String actionType)
Parameter
NameDescription
actionTypeString

Methods

getActionType()

public String getActionType()
Returns
TypeDescription
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
TypeDescription
BucketInfo.LifecycleRule.DeleteLifecycleAction

newLifecycleAction(String actionType)

public static BucketInfo.LifecycleRule.LifecycleAction newLifecycleAction(String actionType)

Creates a new {@code LifecycleAction , with no specific supported action associated with it. This is only intended as a "backup" for when the library doesn't recognize the type, and should generally not be used, instead use the supported actions, and upgrade the library if necessary to get new supported actions.

Parameter
NameDescription
actionTypeString
Returns
TypeDescription
BucketInfo.LifecycleRule.LifecycleAction

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
NameDescription
storageClassStorageClass

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

Returns
TypeDescription
BucketInfo.LifecycleRule.SetStorageClassLifecycleAction

toString()

public String toString()
Returns
TypeDescription
String
Overrides