Class ApiDestinationAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.events.ApiDestinationAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiDestinationAttributes>
- Enclosing interface:
ApiDestinationAttributes
@Stability(Stable)
public static final class ApiDestinationAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ApiDestinationAttributes>
A builder for
ApiDestinationAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiDestinationArn
(String apiDestinationArn) Sets the value ofApiDestinationAttributes.getApiDestinationArn()
build()
Builds the configured instance.connection
(IConnection connection) Sets the value ofApiDestinationAttributes.getConnection()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiDestinationArn
@Stability(Stable) public ApiDestinationAttributes.Builder apiDestinationArn(String apiDestinationArn) Sets the value ofApiDestinationAttributes.getApiDestinationArn()
- Parameters:
apiDestinationArn
- The ARN of the Api Destination. This parameter is required.- Returns:
this
-
connection
Sets the value ofApiDestinationAttributes.getConnection()
- Parameters:
connection
- The Connection to associate with the Api Destination. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiDestinationAttributes>
- Returns:
- a new instance of
ApiDestinationAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-