public static final class CodeCommitSourceOptions.Builder
extends java.lang.Object
CodeCommitSourceOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CodeCommitSourceOptions |
build()
Builds the configured instance.
|
CodeCommitSourceOptions.Builder |
codeBuildCloneOutput(java.lang.Boolean codeBuildCloneOutput)
Sets the value of
CodeCommitSourceOptions.getCodeBuildCloneOutput() |
CodeCommitSourceOptions.Builder |
eventRole(IRole eventRole)
Sets the value of
CodeCommitSourceOptions.getEventRole() |
CodeCommitSourceOptions.Builder |
trigger(CodeCommitTrigger trigger)
Sets the value of
CodeCommitSourceOptions.getTrigger() |
public CodeCommitSourceOptions.Builder codeBuildCloneOutput(java.lang.Boolean codeBuildCloneOutput)
CodeCommitSourceOptions.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 CodeCommitSourceOptions.Builder eventRole(IRole eventRole)
CodeCommitSourceOptions.getEventRole()
eventRole
- Role to be used by on commit event rule.
Used only when trigger value is CodeCommitTrigger.EVENTS.this
public CodeCommitSourceOptions.Builder trigger(CodeCommitTrigger trigger)
CodeCommitSourceOptions.getTrigger()
trigger
- How should CodePipeline detect source changes for this Action.this
public CodeCommitSourceOptions build()
CodeCommitSourceOptions
java.lang.NullPointerException
- if any required attribute was not provided