Interface RuleUpdate.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RuleUpdate.Builder,RuleUpdate>, SdkBuilder<RuleUpdate.Builder,RuleUpdate>, SdkPojo
Enclosing class:
RuleUpdate

public static interface RuleUpdate.Builder extends SdkPojo, CopyableBuilder<RuleUpdate.Builder,RuleUpdate>
  • Method Details

    • action

      RuleUpdate.Builder action(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:
    • 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:
    • predicate

      RuleUpdate.Builder predicate(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.
    • predicate

      default RuleUpdate.Builder predicate(Consumer<Predicate.Builder> predicate)

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

      This is a convenience method that creates an instance of the Predicate.Builder avoiding the need to create one manually via Predicate.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to predicate(Predicate).

      Parameters:
      predicate - a consumer that will call methods on Predicate.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: