Class CfnFunction.ApiEventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunction.ApiEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.ApiEventProperty>
- Enclosing interface:
CfnFunction.ApiEventProperty
@Stability(Stable)
public static final class CfnFunction.ApiEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.ApiEventProperty>
A builder for
CfnFunction.ApiEventProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauth
(IResolvable auth) Sets the value ofCfnFunction.ApiEventProperty.getAuth()
auth
(CfnFunction.AuthProperty auth) Sets the value ofCfnFunction.ApiEventProperty.getAuth()
build()
Builds the configured instance.Sets the value ofCfnFunction.ApiEventProperty.getMethod()
Sets the value ofCfnFunction.ApiEventProperty.getPath()
requestModel
(IResolvable requestModel) Sets the value ofCfnFunction.ApiEventProperty.getRequestModel()
requestModel
(CfnFunction.RequestModelProperty requestModel) Sets the value ofCfnFunction.ApiEventProperty.getRequestModel()
requestParameters
(List<? extends Object> requestParameters) Sets the value ofCfnFunction.ApiEventProperty.getRequestParameters()
requestParameters
(IResolvable requestParameters) Sets the value ofCfnFunction.ApiEventProperty.getRequestParameters()
Sets the value ofCfnFunction.ApiEventProperty.getRestApiId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
Sets the value ofCfnFunction.ApiEventProperty.getMethod()
- Parameters:
method
- the value to be set. This parameter is required.- Returns:
this
-
path
Sets the value ofCfnFunction.ApiEventProperty.getPath()
- Parameters:
path
- the value to be set. This parameter is required.- Returns:
this
-
auth
Sets the value ofCfnFunction.ApiEventProperty.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
auth
Sets the value ofCfnFunction.ApiEventProperty.getAuth()
- Parameters:
auth
- the value to be set.- Returns:
this
-
requestModel
@Stability(Stable) public CfnFunction.ApiEventProperty.Builder requestModel(IResolvable requestModel) Sets the value ofCfnFunction.ApiEventProperty.getRequestModel()
- Parameters:
requestModel
- the value to be set.- Returns:
this
-
requestModel
@Stability(Stable) public CfnFunction.ApiEventProperty.Builder requestModel(CfnFunction.RequestModelProperty requestModel) Sets the value ofCfnFunction.ApiEventProperty.getRequestModel()
- Parameters:
requestModel
- the value to be set.- Returns:
this
-
requestParameters
@Stability(Stable) public CfnFunction.ApiEventProperty.Builder requestParameters(IResolvable requestParameters) Sets the value ofCfnFunction.ApiEventProperty.getRequestParameters()
- Parameters:
requestParameters
- the value to be set.- Returns:
this
-
requestParameters
@Stability(Stable) public CfnFunction.ApiEventProperty.Builder requestParameters(List<? extends Object> requestParameters) Sets the value ofCfnFunction.ApiEventProperty.getRequestParameters()
- Parameters:
requestParameters
- the value to be set.- Returns:
this
-
restApiId
Sets the value ofCfnFunction.ApiEventProperty.getRestApiId()
- Parameters:
restApiId
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.ApiEventProperty>
- Returns:
- a new instance of
CfnFunction.ApiEventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-