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.
public static BucketInfo.LifecycleRule.LifecycleAction newAbortIncompleteMPUploadAction()
Create a new 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-mpu
public static BucketInfo.LifecycleRule.LifecycleAction newLifecycleAction(@NonNull 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.
public static BucketInfo.LifecycleRule.SetStorageClassLifecycleAction newSetStorageClassAction(@NonNull 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 UTC."],[],[]]