Class CfnListener.FixedResponseProperty.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnListener.FixedResponseProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.FixedResponseProperty>
- Enclosing interface:
CfnListener.FixedResponseProperty
@Stability(Stable)
public static final class CfnListener.FixedResponseProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.FixedResponseProperty>
A builder for
CfnListener.FixedResponseProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.statusCode
(Number statusCode) Sets the value ofCfnListener.FixedResponseProperty.getStatusCode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
statusCode
Sets the value ofCfnListener.FixedResponseProperty.getStatusCode()
- Parameters:
statusCode
- The HTTP response code. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListener.FixedResponseProperty>
- Returns:
- a new instance of
CfnListener.FixedResponseProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-