类 Action
- java.lang.Object
-
- com.baidubce.services.bos.model.Action
-
public class Action extends Object
For Bos Bucket Lifecycle. Operation actions performed on the resource. Required Parameters: actionName. Optional Parameters: actionStorageClass.
-
-
构造器概要
构造器 构造器 说明 Action()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetName()Gets the name of the bucket Lifecycle, just for Lifecycle jsonStringgetStorageClass()Gets the storageClass of the bucket Lifecycle, just for Lifecycle jsonvoidsetName(String name)Sets the name of the bucket Lifecycle, just for Lifecycle jsonvoidsetStorageClass(String storageClass)Sets the storageClass of the bucket Lifecycle Action,just for Lifecycle jsonStringtoString()ActionwithName(String name)Sets the name of the Action.ActionwithStorageClass(String storageClass)sets the storageClass of the Bucket Lifecycle Action
-
-
-
方法详细资料
-
getName
public String getName()
Gets the name of the bucket Lifecycle, just for Lifecycle json- 返回:
- the name of the bucket Lifecycle.
-
setName
public void setName(String name)
Sets the name of the bucket Lifecycle, just for Lifecycle json- 参数:
name- of the bucket Lifecycle.
-
withName
public Action withName(String name)
Sets the name of the Action.- 参数:
name- The name of the Action- 返回:
- this object
-
getStorageClass
public String getStorageClass()
Gets the storageClass of the bucket Lifecycle, just for Lifecycle json- 返回:
- the storageClass of the bucket Lifecycle.
-
setStorageClass
public void setStorageClass(String storageClass)
Sets the storageClass of the bucket Lifecycle Action,just for Lifecycle json- 参数:
storageClass- The storageClass if the Bucket Lifecycel Action.
-
withStorageClass
public Action withStorageClass(String storageClass)
sets the storageClass of the Bucket Lifecycle Action- 参数:
storageClass- The storageClass if the Bucket Lifecycel Action.- 返回:
- this object
-
-