类 Rule
- java.lang.Object
-
- com.baidubce.services.bos.model.Rule
-
public class Rule extends Object
The Rule for Bucket Lifecycle.
-
-
构造器概要
构造器 构造器 说明 Rule()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ActiongetAction()Gets the action of Bucket Lifecycle.ConditiongetCondition()Gets the condtion of Bucket Lifecycle.StringgetId()Gets the rule id of Bucket Lifecycle.List<String>getResource()Which resources the rules take effect.StringgetStatus()Gets the status of Bucket Lifecycle.voidsetAction(Action action)Sets the action of Bucket Lifecycle.voidsetCondition(Condition condition)Sets the condtion of Bucket Lifecycle.voidsetId(String id)Sets the rule id of Bucket Lifecycle.voidsetResource(List<String> resource)Sets the resource of Bucket Lifecycle.voidsetStatus(String status)Sets the status of Bucket Lifecycle.StringtoString()RulewithAction(Action action)Sets the action of Bucket Lifecycle.RulewithCondtion(Condition condition)Sets the condtion of Bucket Lifecycle.RulewithId(String id)Sets the rule id of Bucket Lifecycle.RulewithResource(List<String> resource)Sets the resource of Bucket Lifecycle.RulewithStatus(String status)Sets the status of Bucket Lifecycle.
-
-
-
方法详细资料
-
getId
public String getId()
Gets the rule id of Bucket Lifecycle.- 返回:
- the rule id of Bucket Lifecycle.
-
setId
public void setId(String id)
Sets the rule id of Bucket Lifecycle.- 参数:
id- The rule id of Bucket Lifecycle.
-
withId
public Rule withId(String id)
Sets the rule id of Bucket Lifecycle.- 参数:
id- The rule id of Bucket Lifecycle.- 返回:
- this object.
-
getStatus
public String getStatus()
Gets the status of Bucket Lifecycle.- 返回:
- the status of Bucket Lifecycle.
-
setStatus
public void setStatus(String status)
Sets the status of Bucket Lifecycle.- 参数:
status- The status of Bucket Lifecycle.
-
withStatus
public Rule withStatus(String status)
Sets the status of Bucket Lifecycle.- 参数:
status- The status of Bucket Lifecycle.- 返回:
- this object.
-
setResource
public void setResource(List<String> resource)
Sets the resource of Bucket Lifecycle.- 参数:
resource- The resource of Bucket Lifecycle.
-
withResource
public Rule withResource(List<String> resource)
Sets the resource of Bucket Lifecycle.- 参数:
resource- The resources of Bucket Lifecycle.- 返回:
- this object.
-
getCondition
public Condition getCondition()
Gets the condtion of Bucket Lifecycle.- 返回:
- the condtion of Bucket Lifecycle.
-
setCondition
public void setCondition(Condition condition)
Sets the condtion of Bucket Lifecycle.- 参数:
condition- The condtion of Bucket Lifecycle.
-
withCondtion
public Rule withCondtion(Condition condition)
Sets the condtion of Bucket Lifecycle.- 参数:
condition- The condtion of Bucket Lifecycle.- 返回:
- this object.
-
getAction
public Action getAction()
Gets the action of Bucket Lifecycle.- 返回:
- the action of Bucket Lifecycle.
-
setAction
public void setAction(Action action)
Sets the action of Bucket Lifecycle.- 参数:
action- The action of Bucket Lifecycle.
-
withAction
public Rule withAction(Action action)
Sets the action of Bucket Lifecycle.- 参数:
action- The action of Bucket Lifecycle.- 返回:
- this object.
-
-