Send feedback
Class BucketInfo.LifecycleRule.LifecycleAction (2.4.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.5 keyboard_arrow_down
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.
Static Methods
newDeleteAction()
public static BucketInfo . LifecycleRule . DeleteLifecycleAction newDeleteAction ()
Creates a new DeleteLifecycleAction
. Blobs that meet the Condition associated with
this action will be deleted.
Returns
newLifecycleAction(String actionType)
public static BucketInfo . LifecycleRule . LifecycleAction newLifecycleAction ( 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.
Parameter
Name
Description
actionType
String
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
Constructors
LifecycleAction(String actionType)
public LifecycleAction ( String actionType )
Parameter
Name
Description
actionType
String
Methods
getActionType()
public String getActionType ()
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-09-24 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?
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["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-09-24 UTC."]]