Send feedback
Class BucketInfo.LifecycleRule.LifecycleAction (2.2.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.3 keyboard_arrow_down
public abstract static class BucketInfo.LifecycleRule.LifecycleAction implements Serializable
Base class for the Action to take when a Lifecycle Condition is met. Specific Actions are
expressed as subclasses of this class, accessed by static factory methods.
Constructors
LifecycleAction()
Methods
getActionType()
public abstract String getActionType()
Returns
newDeleteAction()
public static BucketInfo.LifecycleRule.DeleteLifecycleAction newDeleteAction()
Creates a new DeleteLifecycleAction
. Blobs that meet the Condition associated with
this action will be deleted.
Returns
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
Name Description storageClass StorageClass
The new storage class to use when conditions are met for this action.
Returns
toString()
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-16 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?