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