类 Rule


  • public class Rule
    extends Object
    The Rule for Bucket Lifecycle.
    • 构造器详细资料

      • Rule

        public Rule()
    • 方法详细资料

      • 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.
      • getResource

        public List<String> getResource()
        Which resources the rules take effect.
      • 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.