com.baidubce.services.bos.model
Class Rule

java.lang.Object
  extended by com.baidubce.services.bos.model.Rule

public class Rule
extends Object

The Rule for Bucket Lifecycle.


Constructor Summary
Rule()
           
 
Method Summary
 Action getAction()
          Gets the action of Bucket Lifecycle.
 Condition getCondition()
          Gets the condtion of Bucket Lifecycle.
 String getId()
          Gets the rule id of Bucket Lifecycle.
 List<String> getResource()
          Which resources the rules take effect.
 String getStatus()
          Gets the status of Bucket Lifecycle.
 void setAction(Action action)
          Sets the action of Bucket Lifecycle.
 void setCondition(Condition condition)
          Sets the condtion of Bucket Lifecycle.
 void setId(String id)
          Sets the rule id of Bucket Lifecycle.
 void setResource(List<String> resource)
          Sets the resource of Bucket Lifecycle.
 void setStatus(String status)
          Sets the status of Bucket Lifecycle.
 String toString()
           
 Rule withAction(Action action)
          Sets the action of Bucket Lifecycle.
 Rule withCondtion(Condition condition)
          Sets the condtion of Bucket Lifecycle.
 Rule withId(String id)
          Sets the rule id of Bucket Lifecycle.
 Rule withResource(List<String> resource)
          Sets the resource of Bucket Lifecycle.
 Rule withStatus(String status)
          Sets the status of Bucket Lifecycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule()
Method Detail

getId

public String getId()
Gets the rule id of Bucket Lifecycle.

Returns:
the rule id of Bucket Lifecycle.

setId

public void setId(String id)
Sets the rule id of Bucket Lifecycle.

Parameters:
id - The rule id of Bucket Lifecycle.

withId

public Rule withId(String id)
Sets the rule id of Bucket Lifecycle.

Parameters:
id - The rule id of Bucket Lifecycle.
Returns:
this object.

getStatus

public String getStatus()
Gets the status of Bucket Lifecycle.

Returns:
the status of Bucket Lifecycle.

setStatus

public void setStatus(String status)
Sets the status of Bucket Lifecycle.

Parameters:
status - The status of Bucket Lifecycle.

withStatus

public Rule withStatus(String status)
Sets the status of Bucket Lifecycle.

Parameters:
status - The status of Bucket Lifecycle.
Returns:
this object.

getResource

public List<String> getResource()
Which resources the rules take effect.


setResource

public void setResource(List<String> resource)
Sets the resource of Bucket Lifecycle.

Parameters:
resource - The resource of Bucket Lifecycle.

withResource

public Rule withResource(List<String> resource)
Sets the resource of Bucket Lifecycle.

Parameters:
resource - The resources of Bucket Lifecycle.
Returns:
this object.

getCondition

public Condition getCondition()
Gets the condtion of Bucket Lifecycle.

Returns:
the condtion of Bucket Lifecycle.

setCondition

public void setCondition(Condition condition)
Sets the condtion of Bucket Lifecycle.

Parameters:
condition - The condtion of Bucket Lifecycle.

withCondtion

public Rule withCondtion(Condition condition)
Sets the condtion of Bucket Lifecycle.

Parameters:
condition - The condtion of Bucket Lifecycle.
Returns:
this object.

getAction

public Action getAction()
Gets the action of Bucket Lifecycle.

Returns:
the action of Bucket Lifecycle.

setAction

public void setAction(Action action)
Sets the action of Bucket Lifecycle.

Parameters:
action - The action of Bucket Lifecycle.

withAction

public Rule withAction(Action action)
Sets the action of Bucket Lifecycle.

Parameters:
action - The action of Bucket Lifecycle.
Returns:
this object.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.