Class CfnFunction.HttpApiEventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunction.HttpApiEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.HttpApiEventProperty>
- Enclosing interface:
CfnFunction.HttpApiEventProperty
@Stability(Stable)
public static final class CfnFunction.HttpApiEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.HttpApiEventProperty>
A builder for
CfnFunction.HttpApiEventProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunction.HttpApiEventProperty.getApiId()
auth
(IResolvable auth) Sets the value ofCfnFunction.HttpApiEventProperty.getAuth()
Sets the value ofCfnFunction.HttpApiEventProperty.getAuth()
build()
Builds the configured instance.Sets the value ofCfnFunction.HttpApiEventProperty.getMethod()
Sets the value ofCfnFunction.HttpApiEventProperty.getPath()
payloadFormatVersion
(String payloadFormatVersion) Sets the value ofCfnFunction.HttpApiEventProperty.getPayloadFormatVersion()
routeSettings
(IResolvable routeSettings) Sets the value ofCfnFunction.HttpApiEventProperty.getRouteSettings()
routeSettings
(CfnFunction.RouteSettingsProperty routeSettings) Sets the value ofCfnFunction.HttpApiEventProperty.getRouteSettings()
timeoutInMillis
(Number timeoutInMillis) Sets the value ofCfnFunction.HttpApiEventProperty.getTimeoutInMillis()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnFunction.HttpApiEventProperty.getApiId()
- Parameters:
apiId
- the value to be set.- Returns:
this
-
auth
Sets the value ofCfnFunction.HttpApiEventProperty.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
auth
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder auth(CfnFunction.HttpApiFunctionAuthProperty auth) Sets the value ofCfnFunction.HttpApiEventProperty.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
method
Sets the value ofCfnFunction.HttpApiEventProperty.getMethod()
- Parameters:
method
- the value to be set.- Returns:
this
-
path
Sets the value ofCfnFunction.HttpApiEventProperty.getPath()
- Parameters:
path
- the value to be set.- Returns:
this
-
payloadFormatVersion
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder payloadFormatVersion(String payloadFormatVersion) Sets the value ofCfnFunction.HttpApiEventProperty.getPayloadFormatVersion()
- Parameters:
payloadFormatVersion
- the value to be set.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder routeSettings(IResolvable routeSettings) Sets the value ofCfnFunction.HttpApiEventProperty.getRouteSettings()
- Parameters:
routeSettings
- the value to be set.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder routeSettings(CfnFunction.RouteSettingsProperty routeSettings) Sets the value ofCfnFunction.HttpApiEventProperty.getRouteSettings()
- Parameters:
routeSettings
- the value to be set.- Returns:
this
-
timeoutInMillis
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder timeoutInMillis(Number timeoutInMillis) Sets the value ofCfnFunction.HttpApiEventProperty.getTimeoutInMillis()
- Parameters:
timeoutInMillis
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.HttpApiEventProperty>
- Returns:
- a new instance of
CfnFunction.HttpApiEventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-