Class CfnConnectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codestarconnections.CfnConnectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectionProps>
- Enclosing interface:
CfnConnectionProps
@Stability(Stable)
public static final class CfnConnectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectionProps>
A builder for
CfnConnectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionName(String connectionName) Sets the value ofCfnConnectionProps.getConnectionName()Sets the value ofCfnConnectionProps.getHostArn()providerType(String providerType) Sets the value ofCfnConnectionProps.getProviderType()Sets the value ofCfnConnectionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionName
Sets the value ofCfnConnectionProps.getConnectionName()- Parameters:
connectionName- The name of the connection. This parameter is required. Connection names must be unique in an AWS account .- Returns:
this
-
hostArn
Sets the value ofCfnConnectionProps.getHostArn()- Parameters:
hostArn- The Amazon Resource Name (ARN) of the host associated with the connection.- Returns:
this
-
providerType
Sets the value ofCfnConnectionProps.getProviderType()- Parameters:
providerType- The name of the external provider where your third-party code repository is configured.- Returns:
this
-
tags
Sets the value ofCfnConnectionProps.getTags()- Parameters:
tags- Specifies the tags applied to the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectionProps>- Returns:
- a new instance of
CfnConnectionProps - Throws:
NullPointerException- if any required attribute was not provided
-