Class PushRule


  • public class PushRule
    extends Object
    Push rule.
    • Field Detail

      • actions

        private List<Object> actions
        Required. The actions to perform when this rule is matched.
      • defaultRule

        private Boolean defaultRule
        Required. Whether this is a default rule, or has been set explicitly.
      • enabled

        private Boolean enabled
        Required. Whether the push rule is enabled or not.
      • ruleId

        private String ruleId
        Required. The ID of this rule.
      • conditions

        private List<PushCondition> conditions
        The conditions that must hold true for an event in order for a rule to be applied to an event. A rule with no conditions always matches. Only applicable to underride and override rules.
      • pattern

        private String pattern
        The glob-style pattern to match against. Only applicable to content rules.
    • Constructor Detail

      • PushRule

        public PushRule()
    • Method Detail

      • setActions

        public void setActions​(List<Object> actions)
      • getDefaultRule

        public Boolean getDefaultRule()
      • setDefaultRule

        public void setDefaultRule​(Boolean defaultRule)
      • getEnabled

        public Boolean getEnabled()
      • setEnabled

        public void setEnabled​(Boolean enabled)
      • getRuleId

        public String getRuleId()
      • setRuleId

        public void setRuleId​(String ruleId)
      • getPattern

        public String getPattern()
      • setPattern

        public void setPattern​(String pattern)