Package software.amazon.awscdk.pipelines
Class CodeCommitSourceOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.CodeCommitSourceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeCommitSourceOptions>
- Enclosing interface:
- CodeCommitSourceOptions
@Stability(Stable)
public static final class CodeCommitSourceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CodeCommitSourceOptions>
A builder for
CodeCommitSourceOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeBuildCloneOutput
(Boolean codeBuildCloneOutput) Sets the value ofCodeCommitSourceOptions.getCodeBuildCloneOutput()
Sets the value ofCodeCommitSourceOptions.getEventRole()
trigger
(CodeCommitTrigger trigger) Sets the value ofCodeCommitSourceOptions.getTrigger()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeBuildCloneOutput
@Stability(Stable) public CodeCommitSourceOptions.Builder codeBuildCloneOutput(Boolean codeBuildCloneOutput) Sets the value ofCodeCommitSourceOptions.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
-
eventRole
Sets the value ofCodeCommitSourceOptions.getEventRole()
- Parameters:
eventRole
- Role to be used by on commit event rule. Used only when trigger value is CodeCommitTrigger.EVENTS.- Returns:
this
-
trigger
Sets the value ofCodeCommitSourceOptions.getTrigger()
- Parameters:
trigger
- How should CodePipeline detect source changes for this Action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeCommitSourceOptions>
- Returns:
- a new instance of
CodeCommitSourceOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-