Class ConnectionAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.events.ConnectionAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConnectionAttributes>
- Enclosing interface:
ConnectionAttributes
@Stability(Stable)
public static final class ConnectionAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ConnectionAttributes>
A builder for
ConnectionAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionArn
(String connectionArn) Sets the value ofConnectionAttributes.getConnectionArn()
connectionName
(String connectionName) Sets the value ofConnectionAttributes.getConnectionName()
connectionSecretArn
(String connectionSecretArn) Sets the value ofConnectionAttributes.getConnectionSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionArn
Sets the value ofConnectionAttributes.getConnectionArn()
- Parameters:
connectionArn
- The ARN of the connection created. This parameter is required.- Returns:
this
-
connectionName
Sets the value ofConnectionAttributes.getConnectionName()
- Parameters:
connectionName
- The Name for the connection. This parameter is required.- Returns:
this
-
connectionSecretArn
@Stability(Stable) public ConnectionAttributes.Builder connectionSecretArn(String connectionSecretArn) Sets the value ofConnectionAttributes.getConnectionSecretArn()
- Parameters:
connectionSecretArn
- The ARN for the secret created for the connection. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConnectionAttributes>
- Returns:
- a new instance of
ConnectionAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-