Class CfnApiDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnApiDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiDestinationProps>
- Enclosing interface:
CfnApiDestinationProps
@Stability(Stable)
public static final class CfnApiDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiDestinationProps>
A builder for
CfnApiDestinationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionArn
(String connectionArn) Sets the value ofCfnApiDestinationProps.getConnectionArn()
description
(String description) Sets the value ofCfnApiDestinationProps.getDescription()
httpMethod
(String httpMethod) Sets the value ofCfnApiDestinationProps.getHttpMethod()
invocationEndpoint
(String invocationEndpoint) Sets the value ofCfnApiDestinationProps.getInvocationEndpoint()
invocationRateLimitPerSecond
(Number invocationRateLimitPerSecond) Sets the value ofCfnApiDestinationProps.getInvocationRateLimitPerSecond()
Sets the value ofCfnApiDestinationProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionArn
Sets the value ofCfnApiDestinationProps.getConnectionArn()
- Parameters:
connectionArn
- The ARN of the connection to use for the API destination. This parameter is required. The destination endpoint must support the authorization type specified for the connection.- Returns:
this
-
httpMethod
Sets the value ofCfnApiDestinationProps.getHttpMethod()
- Parameters:
httpMethod
- The method to use for the request to the HTTP invocation endpoint. This parameter is required.- Returns:
this
-
invocationEndpoint
@Stability(Stable) public CfnApiDestinationProps.Builder invocationEndpoint(String invocationEndpoint) Sets the value ofCfnApiDestinationProps.getInvocationEndpoint()
- Parameters:
invocationEndpoint
- The URL to the HTTP invocation endpoint for the API destination. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnApiDestinationProps.getDescription()
- Parameters:
description
- A description for the API destination to create.- Returns:
this
-
invocationRateLimitPerSecond
@Stability(Stable) public CfnApiDestinationProps.Builder invocationRateLimitPerSecond(Number invocationRateLimitPerSecond) Sets the value ofCfnApiDestinationProps.getInvocationRateLimitPerSecond()
- Parameters:
invocationRateLimitPerSecond
- The maximum number of requests per second to send to the HTTP invocation endpoint.- Returns:
this
-
name
Sets the value ofCfnApiDestinationProps.getName()
- Parameters:
name
- The name for the API destination to create.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApiDestinationProps>
- Returns:
- a new instance of
CfnApiDestinationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-