Class ApiGatewayToKinesisStreamsProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.apigatewaykinesisstreams.ApiGatewayToKinesisStreamsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiGatewayToKinesisStreamsProps>
- Enclosing interface:
ApiGatewayToKinesisStreamsProps
public static final class ApiGatewayToKinesisStreamsProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApiGatewayToKinesisStreamsProps>
A builder for
ApiGatewayToKinesisStreamsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalPutRecordRequestTemplates(Map<String, String> additionalPutRecordRequestTemplates) Sets the value ofApiGatewayToKinesisStreamsProps.getAdditionalPutRecordRequestTemplates()additionalPutRecordsRequestTemplates(Map<String, String> additionalPutRecordsRequestTemplates) apiGatewayProps(software.amazon.awscdk.services.apigateway.RestApiProps apiGatewayProps) Sets the value ofApiGatewayToKinesisStreamsProps.getApiGatewayProps()build()Builds the configured instance.createCloudWatchAlarms(Boolean createCloudWatchAlarms) Sets the value ofApiGatewayToKinesisStreamsProps.getCreateCloudWatchAlarms()existingStreamObj(software.amazon.awscdk.services.kinesis.Stream existingStreamObj) Sets the value ofApiGatewayToKinesisStreamsProps.getExistingStreamObj()kinesisStreamProps(software.amazon.awscdk.services.kinesis.StreamProps kinesisStreamProps) Sets the value ofApiGatewayToKinesisStreamsProps.getKinesisStreamProps()logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofApiGatewayToKinesisStreamsProps.getLogGroupProps()putRecordIntegrationResponses(List<? extends software.amazon.awscdk.services.apigateway.IntegrationResponse> putRecordIntegrationResponses) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordIntegrationResponses()putRecordRequestModel(software.amazon.awscdk.services.apigateway.ModelOptions putRecordRequestModel) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordRequestModel()putRecordRequestTemplate(String putRecordRequestTemplate) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordRequestTemplate()putRecordsIntegrationResponses(List<? extends software.amazon.awscdk.services.apigateway.IntegrationResponse> putRecordsIntegrationResponses) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordsIntegrationResponses()putRecordsRequestModel(software.amazon.awscdk.services.apigateway.ModelOptions putRecordsRequestModel) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordsRequestModel()putRecordsRequestTemplate(String putRecordsRequestTemplate) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordsRequestTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalPutRecordRequestTemplates
public ApiGatewayToKinesisStreamsProps.Builder additionalPutRecordRequestTemplates(Map<String, String> additionalPutRecordRequestTemplates) Sets the value ofApiGatewayToKinesisStreamsProps.getAdditionalPutRecordRequestTemplates()- Parameters:
additionalPutRecordRequestTemplates- Optional PutRecord Request Templates for content-types other thanapplication/json. Use theputRecordRequestTemplateproperty to set the request template for theapplication/jsoncontent-type.- Returns:
this
-
additionalPutRecordsRequestTemplates
public ApiGatewayToKinesisStreamsProps.Builder additionalPutRecordsRequestTemplates(Map<String, String> additionalPutRecordsRequestTemplates) - Parameters:
additionalPutRecordsRequestTemplates- Optional PutRecords Request Templates for content-types other thanapplication/json. Use theputRecordsRequestTemplateproperty to set the request template for theapplication/jsoncontent-type.- Returns:
this
-
apiGatewayProps
public ApiGatewayToKinesisStreamsProps.Builder apiGatewayProps(software.amazon.awscdk.services.apigateway.RestApiProps apiGatewayProps) Sets the value ofApiGatewayToKinesisStreamsProps.getApiGatewayProps()- Parameters:
apiGatewayProps- Optional user-provided props to override the default props for the API Gateway.- Returns:
this
-
createCloudWatchAlarms
public ApiGatewayToKinesisStreamsProps.Builder createCloudWatchAlarms(Boolean createCloudWatchAlarms) Sets the value ofApiGatewayToKinesisStreamsProps.getCreateCloudWatchAlarms()- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms.- Returns:
this
-
existingStreamObj
public ApiGatewayToKinesisStreamsProps.Builder existingStreamObj(software.amazon.awscdk.services.kinesis.Stream existingStreamObj) Sets the value ofApiGatewayToKinesisStreamsProps.getExistingStreamObj()- Parameters:
existingStreamObj- Existing instance of Kinesis Stream, providing both this andkinesisStreamPropswill cause an error.- Returns:
this
-
kinesisStreamProps
public ApiGatewayToKinesisStreamsProps.Builder kinesisStreamProps(software.amazon.awscdk.services.kinesis.StreamProps kinesisStreamProps) Sets the value ofApiGatewayToKinesisStreamsProps.getKinesisStreamProps()- Parameters:
kinesisStreamProps- Optional user-provided props to override the default props for the Kinesis Data Stream.- Returns:
this
-
logGroupProps
public ApiGatewayToKinesisStreamsProps.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofApiGatewayToKinesisStreamsProps.getLogGroupProps()- Parameters:
logGroupProps- User provided props to override the default props for the CloudWatchLogs LogGroup.- Returns:
this
-
putRecordIntegrationResponses
public ApiGatewayToKinesisStreamsProps.Builder putRecordIntegrationResponses(List<? extends software.amazon.awscdk.services.apigateway.IntegrationResponse> putRecordIntegrationResponses) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordIntegrationResponses()- Parameters:
putRecordIntegrationResponses- Optional, custom API Gateway Integration Response for the PutRecord action.- Returns:
this
-
putRecordRequestModel
public ApiGatewayToKinesisStreamsProps.Builder putRecordRequestModel(software.amazon.awscdk.services.apigateway.ModelOptions putRecordRequestModel) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordRequestModel()- Parameters:
putRecordRequestModel- API Gateway request model for the PutRecord action. If not provided, a default one will be created.- Returns:
this
-
putRecordRequestTemplate
public ApiGatewayToKinesisStreamsProps.Builder putRecordRequestTemplate(String putRecordRequestTemplate) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordRequestTemplate()- Parameters:
putRecordRequestTemplate- API Gateway request template for the PutRecord action. If not provided, a default one will be used.- Returns:
this
-
putRecordsIntegrationResponses
public ApiGatewayToKinesisStreamsProps.Builder putRecordsIntegrationResponses(List<? extends software.amazon.awscdk.services.apigateway.IntegrationResponse> putRecordsIntegrationResponses) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordsIntegrationResponses()- Parameters:
putRecordsIntegrationResponses- Optional, custom API Gateway Integration Response for the PutRecord action.- Returns:
this
-
putRecordsRequestModel
public ApiGatewayToKinesisStreamsProps.Builder putRecordsRequestModel(software.amazon.awscdk.services.apigateway.ModelOptions putRecordsRequestModel) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordsRequestModel()- Parameters:
putRecordsRequestModel- API Gateway request model for the PutRecords action. If not provided, a default one will be created.- Returns:
this
-
putRecordsRequestTemplate
public ApiGatewayToKinesisStreamsProps.Builder putRecordsRequestTemplate(String putRecordsRequestTemplate) Sets the value ofApiGatewayToKinesisStreamsProps.getPutRecordsRequestTemplate()- Parameters:
putRecordsRequestTemplate- API Gateway request template for the PutRecords action for the defaultapplication/jsoncontent-type. If not provided, a default one will be used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiGatewayToKinesisStreamsProps>- Returns:
- a new instance of
ApiGatewayToKinesisStreamsProps - Throws:
NullPointerException- if any required attribute was not provided
-