public static class BucketInfo.LifecycleRule.LifecycleAction extends Object implements Serializable
Constructor and Description |
---|
LifecycleAction(String actionType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getActionType() |
int |
hashCode() |
static BucketInfo.LifecycleRule.LifecycleAction |
newAbortIncompleteMPUploadAction()
Create a new
AbortIncompleteMPUAction . |
static BucketInfo.LifecycleRule.DeleteLifecycleAction |
newDeleteAction()
Creates a new
DeleteLifecycleAction . |
static BucketInfo.LifecycleRule.LifecycleAction |
newLifecycleAction(@NonNull String actionType)
Creates a new
LifecycleAction , with no specific supported action associated with
it. |
static BucketInfo.LifecycleRule.SetStorageClassLifecycleAction |
newSetStorageClassAction(@NonNull 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(@NonNull 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 newAbortIncompleteMPUploadAction()
AbortIncompleteMPUAction
. An incomplete multipart upload will be
aborted when the multipart upload meets the specified condition. Age is the only condition
supported for this action. See: https://cloud.google.com/storage/docs/lifecycle##abort-mpupublic static BucketInfo.LifecycleRule.LifecycleAction newLifecycleAction(@NonNull String actionType)
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.Copyright © 2023 Google LLC. All rights reserved.