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
- Whether the output should be the contents of the repository (which is the default), or a link that allows CodeBuild to clone the repository before building.
Note: if this option is true,
then only CodeBuild actions can use the resulting {@link output}.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