Class CfnListener.DefaultActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnListener.DefaultActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.DefaultActionProperty>
- Enclosing interface:
- CfnListener.DefaultActionProperty
@Stability(Stable)
public static final class CfnListener.DefaultActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.DefaultActionProperty>
A builder for
CfnListener.DefaultActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.fixedResponse
(IResolvable fixedResponse) Sets the value ofCfnListener.DefaultActionProperty.getFixedResponse()
fixedResponse
(CfnListener.FixedResponseProperty fixedResponse) Sets the value ofCfnListener.DefaultActionProperty.getFixedResponse()
forward
(IResolvable forward) Sets the value ofCfnListener.DefaultActionProperty.getForward()
forward
(CfnListener.ForwardProperty forward) Sets the value ofCfnListener.DefaultActionProperty.getForward()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fixedResponse
@Stability(Stable) public CfnListener.DefaultActionProperty.Builder fixedResponse(IResolvable fixedResponse) Sets the value ofCfnListener.DefaultActionProperty.getFixedResponse()
- Parameters:
fixedResponse
- Describes an action that returns a custom HTTP response.- Returns:
this
-
fixedResponse
@Stability(Stable) public CfnListener.DefaultActionProperty.Builder fixedResponse(CfnListener.FixedResponseProperty fixedResponse) Sets the value ofCfnListener.DefaultActionProperty.getFixedResponse()
- Parameters:
fixedResponse
- Describes an action that returns a custom HTTP response.- Returns:
this
-
forward
Sets the value ofCfnListener.DefaultActionProperty.getForward()
- Parameters:
forward
- Describes a forward action. You can use forward actions to route requests to one or more target groups.- Returns:
this
-
forward
@Stability(Stable) public CfnListener.DefaultActionProperty.Builder forward(CfnListener.ForwardProperty forward) Sets the value ofCfnListener.DefaultActionProperty.getForward()
- Parameters:
forward
- Describes a forward action. You can use forward actions to route requests to one or more target groups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListener.DefaultActionProperty>
- Returns:
- a new instance of
CfnListener.DefaultActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-