Interface RuleAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleAction.Builder,
,RuleAction> SdkBuilder<RuleAction.Builder,
,RuleAction> SdkPojo
- Enclosing class:
RuleAction
public static interface RuleAction.Builder
extends SdkPojo, CopyableBuilder<RuleAction.Builder,RuleAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuleAction.Builder
fixedResponse
(Consumer<FixedResponseAction.Builder> fixedResponse) Describes the rule action that returns a custom HTTP response.fixedResponse
(FixedResponseAction fixedResponse) Describes the rule action that returns a custom HTTP response.default RuleAction.Builder
forward
(Consumer<ForwardAction.Builder> forward) The forward action.forward
(ForwardAction forward) The forward action.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
fixedResponse
Describes the rule action that returns a custom HTTP response.
- Parameters:
fixedResponse
- Describes the rule action that returns a custom HTTP response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaFixedResponseAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofixedResponse(FixedResponseAction)
.- Parameters:
fixedResponse
- a consumer that will call methods onFixedResponseAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
forward
The forward action. Traffic that matches the rule is forwarded to the specified target groups.
- Parameters:
forward
- The forward action. Traffic that matches the rule is forwarded to the specified target groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaForwardAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toforward(ForwardAction)
.- Parameters:
forward
- a consumer that will call methods onForwardAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-