com.baidubce.services.bos.model
Class Action

java.lang.Object
  extended by 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.


Constructor Summary
Action()
           
 
Method Summary
 String getName()
          Gets the name of the bucket Lifecycle, just for Lifecycle json
 String getStorageClass()
          Gets the storageClass of the bucket Lifecycle, just for Lifecycle json
 void setName(String name)
          Sets the name of the bucket Lifecycle, just for Lifecycle json
 void setStorageClass(String storageClass)
          Sets the storageClass of the bucket Lifecycle Action,just for Lifecycle json
 String toString()
           
 Action withName(String name)
          Sets the name of the Action.
 Action withStorageClass(String storageClass)
          sets the storageClass of the Bucket Lifecycle Action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action

public Action()
Method Detail

getName

public String getName()
Gets the name of the bucket Lifecycle, just for Lifecycle json

Returns:
the name of the bucket Lifecycle.

setName

public void setName(String name)
Sets the name of the bucket Lifecycle, just for Lifecycle json

Parameters:
name - of the bucket Lifecycle.

withName

public Action withName(String name)
Sets the name of the Action.

Parameters:
name - The name of the Action
Returns:
this object

getStorageClass

public String getStorageClass()
Gets the storageClass of the bucket Lifecycle, just for Lifecycle json

Returns:
the storageClass of the bucket Lifecycle.

setStorageClass

public void setStorageClass(String storageClass)
Sets the storageClass of the bucket Lifecycle Action,just for Lifecycle json

Parameters:
storageClass - The storageClass if the Bucket Lifecycel Action.

withStorageClass

public Action withStorageClass(String storageClass)
sets the storageClass of the Bucket Lifecycle Action

Parameters:
storageClass - The storageClass if the Bucket Lifecycel Action.
Returns:
this object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.