public static final class ConnectionSourceOptions.Builder
extends java.lang.Object
ConnectionSourceOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ConnectionSourceOptions |
build()
Builds the configured instance.
|
ConnectionSourceOptions.Builder |
codeBuildCloneOutput(java.lang.Boolean codeBuildCloneOutput)
Sets the value of
ConnectionSourceOptions.getCodeBuildCloneOutput() |
ConnectionSourceOptions.Builder |
connectionArn(java.lang.String connectionArn)
Sets the value of
ConnectionSourceOptions.getConnectionArn() |
ConnectionSourceOptions.Builder |
triggerOnPush(java.lang.Boolean triggerOnPush)
Sets the value of
ConnectionSourceOptions.getTriggerOnPush() |
public ConnectionSourceOptions.Builder connectionArn(java.lang.String connectionArn)
ConnectionSourceOptions.getConnectionArn()
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.this
public ConnectionSourceOptions.Builder codeBuildCloneOutput(java.lang.Boolean codeBuildCloneOutput)
ConnectionSourceOptions.getCodeBuildCloneOutput()
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.
this
public ConnectionSourceOptions.Builder triggerOnPush(java.lang.Boolean triggerOnPush)
ConnectionSourceOptions.getTriggerOnPush()
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.this
public ConnectionSourceOptions build()
ConnectionSourceOptions
java.lang.NullPointerException
- if any required attribute was not provided