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.BuilderfixedResponse(Consumer<FixedResponseAction.Builder> fixedResponse) The fixed response action.fixedResponse(FixedResponseAction fixedResponse) The fixed response action.default RuleAction.Builderforward(Consumer<ForwardAction.Builder> forward) The forward action.forward(ForwardAction forward) The forward action.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
fixedResponse
The fixed response action. The rule returns a custom HTTP response.
- Parameters:
fixedResponse- The fixed response action. The rule returns a custom HTTP response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixedResponse
The fixed response action. The rule returns a custom HTTP response.
This is a convenience method that creates an instance of theFixedResponseAction.Builderavoiding the need to create one manually viaFixedResponseAction.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaForwardAction.builder().When the
Consumercompletes,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:
-