Interface UpdateRuleGroupRequest.Builder

    • Method Detail

      • updates

        UpdateRuleGroupRequest.Builder updates​(Collection<RuleGroupUpdate> updates)

        An array of RuleGroupUpdate objects that you want to insert into or delete from a RuleGroup.

        You can only insert REGULAR rules into a rule group.

        ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

        Parameters:
        updates - An array of RuleGroupUpdate objects that you want to insert into or delete from a RuleGroup.

        You can only insert REGULAR rules into a rule group.

        ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updates

        UpdateRuleGroupRequest.Builder updates​(RuleGroupUpdate... updates)

        An array of RuleGroupUpdate objects that you want to insert into or delete from a RuleGroup.

        You can only insert REGULAR rules into a rule group.

        ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

        Parameters:
        updates - An array of RuleGroupUpdate objects that you want to insert into or delete from a RuleGroup.

        You can only insert REGULAR rules into a rule group.

        ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updates

        UpdateRuleGroupRequest.Builder updates​(Consumer<RuleGroupUpdate.Builder>... updates)

        An array of RuleGroupUpdate objects that you want to insert into or delete from a RuleGroup.

        You can only insert REGULAR rules into a rule group.

        ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a WebACL. In this case you do not use ActivatedRule|Action. For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #updates(List).

        Parameters:
        updates - a consumer that will call methods on RuleGroupUpdate.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #updates(java.util.Collection)
      • changeToken

        UpdateRuleGroupRequest.Builder changeToken​(String changeToken)

        The value returned by the most recent call to GetChangeToken.

        Parameters:
        changeToken - The value returned by the most recent call to GetChangeToken.
        Returns:
        Returns a reference to this object so that method calls can be chained together.