/** * <p> * Specifies whether to insert or delete a <a>ByteMatchTuple</a>. * </p> * * @param action * Specifies whether to insert or delete a <a>ByteMatchTuple</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public ByteMatchSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return ChangeAction corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static ChangeAction fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (ChangeAction enumEntry : ChangeAction.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * Specifies whether to insert a <code>Rule</code> into or delete a <code>Rule</code> from a <code>WebACL</code>. * </p> * * @param action * Specifies whether to insert a <code>Rule</code> into or delete a <code>Rule</code> from a * <code>WebACL</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public WebACLUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specify <code>INSERT</code> to add an <code>ActivatedRule</code> to a <code>RuleGroup</code>. Use * <code>DELETE</code> to remove an <code>ActivatedRule</code> from a <code>RuleGroup</code>. * </p> * * @param action * Specify <code>INSERT</code> to add an <code>ActivatedRule</code> to a <code>RuleGroup</code>. Use * <code>DELETE</code> to remove an <code>ActivatedRule</code> from a <code>RuleGroup</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public RuleGroupUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specifies whether to insert or delete a <code>RegexPatternString</code>. * </p> * * @param action * Specifies whether to insert or delete a <code>RegexPatternString</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public RegexPatternSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specifies whether to insert or delete a <a>RegexMatchTuple</a>. * </p> * * @param action * Specifies whether to insert or delete a <a>RegexMatchTuple</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public RegexMatchSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specifies whether to insert or delete an IP address with <a>UpdateIPSet</a>. * </p> * * @param action * Specifies whether to insert or delete an IP address with <a>UpdateIPSet</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public IPSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specifies whether to insert or delete a country with <a>UpdateGeoMatchSet</a>. * </p> * * @param action * Specifies whether to insert or delete a country with <a>UpdateGeoMatchSet</a>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public GeoMatchSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specify <code>INSERT</code> to add a <a>SqlInjectionMatchSetUpdate</a> to a <a>SqlInjectionMatchSet</a>. Use * <code>DELETE</code> to remove a <code>SqlInjectionMatchSetUpdate</code> from a <code>SqlInjectionMatchSet</code>. * </p> * * @param action * Specify <code>INSERT</code> to add a <a>SqlInjectionMatchSetUpdate</a> to a <a>SqlInjectionMatchSet</a>. * Use <code>DELETE</code> to remove a <code>SqlInjectionMatchSetUpdate</code> from a * <code>SqlInjectionMatchSet</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public SqlInjectionMatchSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specify <code>INSERT</code> to add a <code>Predicate</code> to a <code>Rule</code>. Use <code>DELETE</code> to * remove a <code>Predicate</code> from a <code>Rule</code>. * </p> * * @param action * Specify <code>INSERT</code> to add a <code>Predicate</code> to a <code>Rule</code>. Use * <code>DELETE</code> to remove a <code>Predicate</code> from a <code>Rule</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public RuleUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specify <code>INSERT</code> to add an <a>XssMatchSetUpdate</a> to an <a>XssMatchSet</a>. Use <code>DELETE</code> * to remove an <code>XssMatchSetUpdate</code> from an <code>XssMatchSet</code>. * </p> * * @param action * Specify <code>INSERT</code> to add an <a>XssMatchSetUpdate</a> to an <a>XssMatchSet</a>. Use * <code>DELETE</code> to remove an <code>XssMatchSetUpdate</code> from an <code>XssMatchSet</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public XssMatchSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }
/** * <p> * Specify <code>INSERT</code> to add a <a>SizeConstraintSetUpdate</a> to a <a>SizeConstraintSet</a>. Use * <code>DELETE</code> to remove a <code>SizeConstraintSetUpdate</code> from a <code>SizeConstraintSet</code>. * </p> * * @param action * Specify <code>INSERT</code> to add a <a>SizeConstraintSetUpdate</a> to a <a>SizeConstraintSet</a>. Use * <code>DELETE</code> to remove a <code>SizeConstraintSetUpdate</code> from a <code>SizeConstraintSet</code> * . * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeAction */ public SizeConstraintSetUpdate withAction(ChangeAction action) { this.action = action.toString(); return this; }