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
Constructors -
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-CfnFunction.HttpApiEventProperty.ApiId.- Returns:
this
-
auth
Sets the value ofCfnFunction.HttpApiEventProperty.getAuth()- Parameters:
auth-CfnFunction.HttpApiEventProperty.Auth.- Returns:
this
-
auth
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder auth(CfnFunction.HttpApiFunctionAuthProperty auth) Sets the value ofCfnFunction.HttpApiEventProperty.getAuth()- Parameters:
auth-CfnFunction.HttpApiEventProperty.Auth.- Returns:
this
-
method
Sets the value ofCfnFunction.HttpApiEventProperty.getMethod()- Parameters:
method-CfnFunction.HttpApiEventProperty.Method.- Returns:
this
-
path
Sets the value ofCfnFunction.HttpApiEventProperty.getPath()- Parameters:
path-CfnFunction.HttpApiEventProperty.Path.- Returns:
this
-
payloadFormatVersion
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder payloadFormatVersion(String payloadFormatVersion) Sets the value ofCfnFunction.HttpApiEventProperty.getPayloadFormatVersion()- Parameters:
payloadFormatVersion-CfnFunction.HttpApiEventProperty.PayloadFormatVersion.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder routeSettings(IResolvable routeSettings) Sets the value ofCfnFunction.HttpApiEventProperty.getRouteSettings()- Parameters:
routeSettings-CfnFunction.HttpApiEventProperty.RouteSettings.- Returns:
this
-
routeSettings
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder routeSettings(CfnFunction.RouteSettingsProperty routeSettings) Sets the value ofCfnFunction.HttpApiEventProperty.getRouteSettings()- Parameters:
routeSettings-CfnFunction.HttpApiEventProperty.RouteSettings.- Returns:
this
-
timeoutInMillis
@Stability(Stable) public CfnFunction.HttpApiEventProperty.Builder timeoutInMillis(Number timeoutInMillis) Sets the value ofCfnFunction.HttpApiEventProperty.getTimeoutInMillis()- Parameters:
timeoutInMillis-CfnFunction.HttpApiEventProperty.TimeoutInMillis.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunction.HttpApiEventProperty>- Returns:
- a new instance of
CfnFunction.HttpApiEventProperty - Throws:
NullPointerException- if any required attribute was not provided
-