Class CfnRulePropsMixin.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.vpclattice.mixins.CfnRulePropsMixin.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRulePropsMixin.ActionProperty>
- Enclosing interface:
CfnRulePropsMixin.ActionProperty
@Stability(Stable)
public static final class CfnRulePropsMixin.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRulePropsMixin.ActionProperty>
A builder for
CfnRulePropsMixin.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fixedResponse(IResolvable fixedResponse) Sets the value ofCfnRulePropsMixin.ActionProperty.getFixedResponse()fixedResponse(CfnRulePropsMixin.FixedResponseProperty fixedResponse) Sets the value ofCfnRulePropsMixin.ActionProperty.getFixedResponse()forward(IResolvable forward) Sets the value ofCfnRulePropsMixin.ActionProperty.getForward()forward(CfnRulePropsMixin.ForwardProperty forward) Sets the value ofCfnRulePropsMixin.ActionProperty.getForward()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fixedResponse
@Stability(Stable) public CfnRulePropsMixin.ActionProperty.Builder fixedResponse(IResolvable fixedResponse) Sets the value ofCfnRulePropsMixin.ActionProperty.getFixedResponse()- Parameters:
fixedResponse- The fixed response action. The rule returns a custom HTTP response.- Returns:
this
-
fixedResponse
@Stability(Stable) public CfnRulePropsMixin.ActionProperty.Builder fixedResponse(CfnRulePropsMixin.FixedResponseProperty fixedResponse) Sets the value ofCfnRulePropsMixin.ActionProperty.getFixedResponse()- Parameters:
fixedResponse- The fixed response action. The rule returns a custom HTTP response.- Returns:
this
-
forward
Sets the value ofCfnRulePropsMixin.ActionProperty.getForward()- Parameters:
forward- The forward action. Traffic that matches the rule is forwarded to the specified target groups.- Returns:
this
-
forward
@Stability(Stable) public CfnRulePropsMixin.ActionProperty.Builder forward(CfnRulePropsMixin.ForwardProperty forward) Sets the value ofCfnRulePropsMixin.ActionProperty.getForward()- Parameters:
forward- The forward action. Traffic that matches the rule is forwarded to the specified target groups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRulePropsMixin.ActionProperty>- Returns:
- a new instance of
CfnRulePropsMixin.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-