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