Interface ModifyRuleRequest.Builder

    • Method Detail

      • ruleArn

        ModifyRuleRequest.Builder ruleArn​(String ruleArn)

        The Amazon Resource Name (ARN) of the rule.

        Parameters:
        ruleArn - The Amazon Resource Name (ARN) of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • conditions

        ModifyRuleRequest.Builder conditions​(RuleCondition... conditions)

        The conditions.

        Parameters:
        conditions - The conditions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        ModifyRuleRequest.Builder actions​(Collection<Action> actions)

        The actions.

        Parameters:
        actions - The actions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actions

        ModifyRuleRequest.Builder actions​(Action... actions)

        The actions.

        Parameters:
        actions - The actions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transforms

        ModifyRuleRequest.Builder transforms​(Collection<RuleTransform> transforms)

        The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform. If you specify Transforms, you can't specify ResetTransforms.

        Parameters:
        transforms - The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform. If you specify Transforms, you can't specify ResetTransforms.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transforms

        ModifyRuleRequest.Builder transforms​(RuleTransform... transforms)

        The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform. If you specify Transforms, you can't specify ResetTransforms.

        Parameters:
        transforms - The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform. If you specify Transforms, you can't specify ResetTransforms.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transforms

        ModifyRuleRequest.Builder transforms​(Consumer<RuleTransform.Builder>... transforms)

        The transforms to apply to requests that match this rule. You can add one host header rewrite transform and one URL rewrite transform. If you specify Transforms, you can't specify ResetTransforms.

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

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

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

        ModifyRuleRequest.Builder resetTransforms​(Boolean resetTransforms)

        Indicates whether to remove all transforms from the rule. If you specify ResetTransforms, you can't specify Transforms.

        Parameters:
        resetTransforms - Indicates whether to remove all transforms from the rule. If you specify ResetTransforms, you can't specify Transforms.
        Returns:
        Returns a reference to this object so that method calls can be chained together.