public static class BucketInfo.LifecycleRule.LifecycleAction extends Object implements Serializable
| Constructor and Description |
|---|
LifecycleAction(String actionType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionType() |
static BucketInfo.LifecycleRule.DeleteLifecycleAction |
newDeleteAction()
Creates a new
DeleteLifecycleAction. |
static BucketInfo.LifecycleRule.LifecycleAction |
newLifecycleAction(String actionType)
Creates a new {@code LifecycleAction , with no specific supported action associated with it.
|
static BucketInfo.LifecycleRule.SetStorageClassLifecycleAction |
newSetStorageClassAction(StorageClass storageClass)
Creates a new
SetStorageClassLifecycleAction. |
String |
toString() |
public LifecycleAction(String actionType)
public 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.public static BucketInfo.LifecycleRule.LifecycleAction newLifecycleAction(String actionType)
Copyright © 2022 Google LLC. All rights reserved.