public class Rule extends Object
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String getId()
public void setId(String id)
id - The rule id of Bucket Lifecycle.public Rule withId(String id)
id - The rule id of Bucket Lifecycle.public String getStatus()
public void setStatus(String status)
status - The status of Bucket Lifecycle.public Rule withStatus(String status)
status - The status of Bucket Lifecycle.public void setResource(List<String> resource)
resource - The resource of Bucket Lifecycle.public Rule withResource(List<String> resource)
resource - The resources of Bucket Lifecycle.public Condition getCondition()
public void setCondition(Condition condition)
condition - The condtion of Bucket Lifecycle.public Rule withCondtion(Condition condition)
condition - The condtion of Bucket Lifecycle.public Action getAction()
public void setAction(Action action)
action - The action of Bucket Lifecycle.public Rule withAction(Action action)
action - The action of Bucket Lifecycle.Copyright © 2023. All rights reserved.