Class ApiDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.ApiDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiDestinationProps>
- Enclosing interface:
- ApiDestinationProps
@Stability(Stable)
public static final class ApiDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApiDestinationProps>
A builder for
ApiDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiDestinationName(String apiDestinationName) Sets the value ofApiDestinationProps.getApiDestinationName()build()Builds the configured instance.connection(IConnection connection) Sets the value ofApiDestinationProps.getConnection()description(String description) Sets the value ofApiDestinationProps.getDescription()Sets the value ofApiDestinationProps.getEndpoint()httpMethod(HttpMethod httpMethod) Sets the value ofApiDestinationProps.getHttpMethod()rateLimitPerSecond(Number rateLimitPerSecond) Sets the value ofApiDestinationProps.getRateLimitPerSecond()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connection
Sets the value ofApiDestinationProps.getConnection()- Parameters:
connection- The ARN of the connection to use for the API destination. This parameter is required.- Returns:
this
-
endpoint
Sets the value ofApiDestinationProps.getEndpoint()- Parameters:
endpoint- The URL to the HTTP invocation endpoint for the API destination.. This parameter is required.- Returns:
this
-
apiDestinationName
Sets the value ofApiDestinationProps.getApiDestinationName()- Parameters:
apiDestinationName- The name for the API destination.- Returns:
this
-
description
Sets the value ofApiDestinationProps.getDescription()- Parameters:
description- A description for the API destination.- Returns:
this
-
httpMethod
Sets the value ofApiDestinationProps.getHttpMethod()- Parameters:
httpMethod- The method to use for the request to the HTTP invocation endpoint.- Returns:
this
-
rateLimitPerSecond
Sets the value ofApiDestinationProps.getRateLimitPerSecond()- Parameters:
rateLimitPerSecond- The maximum number of requests per second to send to the HTTP invocation endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiDestinationProps>- Returns:
- a new instance of
ApiDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-