public static interface RuleAction.Builder extends SdkPojo, CopyableBuilder<RuleAction.Builder,RuleAction>
| Modifier and Type | Method and Description |
|---|---|
default RuleAction.Builder |
fixedResponse(Consumer<FixedResponseAction.Builder> fixedResponse)
Describes the rule action that returns a custom HTTP response.
|
RuleAction.Builder |
fixedResponse(FixedResponseAction fixedResponse)
Describes the rule action that returns a custom HTTP response.
|
default RuleAction.Builder |
forward(Consumer<ForwardAction.Builder> forward)
The forward action.
|
RuleAction.Builder |
forward(ForwardAction forward)
The forward action.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRuleAction.Builder fixedResponse(FixedResponseAction fixedResponse)
Describes the rule action that returns a custom HTTP response.
fixedResponse - Describes the rule action that returns a custom HTTP response.default RuleAction.Builder fixedResponse(Consumer<FixedResponseAction.Builder> fixedResponse)
Describes the rule action that returns a custom HTTP response.
This is a convenience method that creates an instance of theFixedResponseAction.Builder avoiding the
need to create one manually via FixedResponseAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to fixedResponse(FixedResponseAction).
fixedResponse - a consumer that will call methods on FixedResponseAction.BuilderfixedResponse(FixedResponseAction)RuleAction.Builder forward(ForwardAction forward)
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
forward - The forward action. Traffic that matches the rule is forwarded to the specified target groups.default RuleAction.Builder forward(Consumer<ForwardAction.Builder> forward)
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
This is a convenience method that creates an instance of theForwardAction.Builder avoiding the need
to create one manually via ForwardAction.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to forward(ForwardAction).
forward - a consumer that will call methods on ForwardAction.Builderforward(ForwardAction)Copyright © 2023. All rights reserved.