Package software.amazon.awscdk.pipelines
Class ConnectionSourceOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.ConnectionSourceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConnectionSourceOptions>
- Enclosing interface:
ConnectionSourceOptions
@Stability(Stable)
public static final class ConnectionSourceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ConnectionSourceOptions>
A builder for
ConnectionSourceOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofConnectionSourceOptions.getActionName()
build()
Builds the configured instance.codeBuildCloneOutput
(Boolean codeBuildCloneOutput) Sets the value ofConnectionSourceOptions.getCodeBuildCloneOutput()
connectionArn
(String connectionArn) Sets the value ofConnectionSourceOptions.getConnectionArn()
triggerOnPush
(Boolean triggerOnPush) Sets the value ofConnectionSourceOptions.getTriggerOnPush()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionArn
Sets the value ofConnectionSourceOptions.getConnectionArn()
- Parameters:
connectionArn
- The ARN of the CodeStar Connection created in the AWS console that has permissions to access this GitHub or BitBucket repository. This parameter is required.- Returns:
this
-
actionName
Sets the value ofConnectionSourceOptions.getActionName()
- Parameters:
actionName
- The action name used for this source in the CodePipeline.- Returns:
this
-
codeBuildCloneOutput
@Stability(Stable) public ConnectionSourceOptions.Builder codeBuildCloneOutput(Boolean codeBuildCloneOutput) Sets the value ofConnectionSourceOptions.getCodeBuildCloneOutput()
- Parameters:
codeBuildCloneOutput
- If this is set, the next CodeBuild job clones the repository (instead of CodePipeline downloading the files). This provides access to repository history, and retains symlinks (symlinks would otherwise be removed by CodePipeline).Note: if this option is true, only CodeBuild jobs can use the output artifact.
- Returns:
this
-
triggerOnPush
Sets the value ofConnectionSourceOptions.getTriggerOnPush()
- Parameters:
triggerOnPush
- Controls automatically starting your pipeline when a new commit is made on the configured repository and branch. If unspecified, the default value is true, and the field does not display by default.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ConnectionSourceOptions>
- Returns:
- a new instance of
ConnectionSourceOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-