Class CfnRule.HttpParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.HttpParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.HttpParametersProperty>
- Enclosing interface:
- CfnRule.HttpParametersProperty
@Stability(Stable)
public static final class CfnRule.HttpParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.HttpParametersProperty>
A builder for
CfnRule.HttpParametersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.headerParameters
(Map<String, String> headerParameters) Sets the value ofCfnRule.HttpParametersProperty.getHeaderParameters()
headerParameters
(IResolvable headerParameters) Sets the value ofCfnRule.HttpParametersProperty.getHeaderParameters()
pathParameterValues
(List<String> pathParameterValues) Sets the value ofCfnRule.HttpParametersProperty.getPathParameterValues()
queryStringParameters
(Map<String, String> queryStringParameters) Sets the value ofCfnRule.HttpParametersProperty.getQueryStringParameters()
queryStringParameters
(IResolvable queryStringParameters) Sets the value ofCfnRule.HttpParametersProperty.getQueryStringParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerParameters
@Stability(Stable) public CfnRule.HttpParametersProperty.Builder headerParameters(IResolvable headerParameters) Sets the value ofCfnRule.HttpParametersProperty.getHeaderParameters()
- Parameters:
headerParameters
- The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.- Returns:
this
-
headerParameters
@Stability(Stable) public CfnRule.HttpParametersProperty.Builder headerParameters(Map<String, String> headerParameters) Sets the value ofCfnRule.HttpParametersProperty.getHeaderParameters()
- Parameters:
headerParameters
- The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.- Returns:
this
-
pathParameterValues
@Stability(Stable) public CfnRule.HttpParametersProperty.Builder pathParameterValues(List<String> pathParameterValues) Sets the value ofCfnRule.HttpParametersProperty.getPathParameterValues()
- Parameters:
pathParameterValues
- The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").- Returns:
this
-
queryStringParameters
@Stability(Stable) public CfnRule.HttpParametersProperty.Builder queryStringParameters(IResolvable queryStringParameters) Sets the value ofCfnRule.HttpParametersProperty.getQueryStringParameters()
- Parameters:
queryStringParameters
- The query string keys/values that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.- Returns:
this
-
queryStringParameters
@Stability(Stable) public CfnRule.HttpParametersProperty.Builder queryStringParameters(Map<String, String> queryStringParameters) Sets the value ofCfnRule.HttpParametersProperty.getQueryStringParameters()
- Parameters:
queryStringParameters
- The query string keys/values that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.HttpParametersProperty>
- Returns:
- a new instance of
CfnRule.HttpParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-