public abstract static class BucketInfo.LifecycleRule.LifecycleAction extends Object implements Serializable
Constructor and Description |
---|
LifecycleAction() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getActionType() |
static BucketInfo.LifecycleRule.DeleteLifecycleAction |
newDeleteAction()
Creates a new
DeleteLifecycleAction . |
static BucketInfo.LifecycleRule.SetStorageClassLifecycleAction |
newSetStorageClassAction(StorageClass storageClass)
Creates a new
SetStorageClassLifecycleAction . |
public abstract String getActionType()
public static BucketInfo.LifecycleRule.DeleteLifecycleAction newDeleteAction()
DeleteLifecycleAction
. Blobs that meet the Condition associated with
this action will be deleted.public static BucketInfo.LifecycleRule.SetStorageClassLifecycleAction newSetStorageClassAction(StorageClass storageClass)
SetStorageClassLifecycleAction
. A Blob's storage class that meets the
action's conditions will be changed to the specified storage class.storageClass
- The new storage class to use when conditions are met for this action.Copyright © 2019 Google LLC. All rights reserved.