Class RuleUpdate

java.lang.Object
com.amazonaws.services.waf.model.RuleUpdate
All Implemented Interfaces:
Serializable, Cloneable

public class RuleUpdate extends Object implements Serializable, Cloneable

Specifies a Predicate (such as an IPSet) and indicates whether you want to add it to a Rule or delete it from a Rule.

See Also:
  • Constructor Details

    • RuleUpdate

      public RuleUpdate()
  • Method Details

    • setAction

      public void setAction(String action)

      Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

      Parameters:
      action - Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.
      See Also:
    • getAction

      public String getAction()

      Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

      Returns:
      Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.
      See Also:
    • withAction

      public RuleUpdate withAction(String action)

      Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

      Parameters:
      action - Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAction

      public void setAction(ChangeAction action)

      Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

      Parameters:
      action - Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.
      See Also:
    • withAction

      public RuleUpdate withAction(ChangeAction action)

      Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.

      Parameters:
      action - Specify INSERT to add a Predicate to a Rule. Use DELETE to remove a Predicate from a Rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setPredicate

      public void setPredicate(Predicate predicate)

      The ID of the Predicate (such as an IPSet) that you want to add to a Rule.

      Parameters:
      predicate - The ID of the Predicate (such as an IPSet) that you want to add to a Rule.
    • getPredicate

      public Predicate getPredicate()

      The ID of the Predicate (such as an IPSet) that you want to add to a Rule.

      Returns:
      The ID of the Predicate (such as an IPSet) that you want to add to a Rule.
    • withPredicate

      public RuleUpdate withPredicate(Predicate predicate)

      The ID of the Predicate (such as an IPSet) that you want to add to a Rule.

      Parameters:
      predicate - The ID of the Predicate (such as an IPSet) that you want to add to a Rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public RuleUpdate clone()
      Overrides:
      clone in class Object