@Stability(value=Experimental) public static final class CodeCommitSourceProps.Builder extends Object implements software.amazon.jsii.Builder<CodeCommitSourceProps>
CodeCommitSourceProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CodeCommitSourceProps.Builder |
branchOrRef(String branchOrRef)
Sets the value of
CodeCommitSourceProps.getBranchOrRef() |
CodeCommitSourceProps |
build()
Builds the configured instance.
|
CodeCommitSourceProps.Builder |
cloneDepth(Number cloneDepth)
Sets the value of
CodeCommitSourceProps.getCloneDepth() |
CodeCommitSourceProps.Builder |
fetchSubmodules(Boolean fetchSubmodules)
Sets the value of
CodeCommitSourceProps.getFetchSubmodules() |
CodeCommitSourceProps.Builder |
identifier(String identifier)
Sets the value of
SourceProps.getIdentifier() |
CodeCommitSourceProps.Builder |
repository(IRepository repository)
Sets the value of
CodeCommitSourceProps.getRepository() |
@Stability(value=Experimental) public CodeCommitSourceProps.Builder repository(IRepository repository)
CodeCommitSourceProps.getRepository()repository - the value to be set. This parameter is required.this@Stability(value=Experimental) public CodeCommitSourceProps.Builder branchOrRef(String branchOrRef)
CodeCommitSourceProps.getBranchOrRef()branchOrRef - The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build.this@Stability(value=Experimental) public CodeCommitSourceProps.Builder cloneDepth(Number cloneDepth)
CodeCommitSourceProps.getCloneDepth()cloneDepth - The depth of history to download.
Minimum value is 0.
If this value is 0, greater than 25, or not provided,
then the full history is downloaded with each build of the project.this@Stability(value=Experimental) public CodeCommitSourceProps.Builder fetchSubmodules(Boolean fetchSubmodules)
CodeCommitSourceProps.getFetchSubmodules()fetchSubmodules - Whether to fetch submodules while cloning git repo.this@Stability(value=Experimental) public CodeCommitSourceProps.Builder identifier(String identifier)
SourceProps.getIdentifier()identifier - The source identifier.
This property is required on secondary sources.this@Stability(value=Experimental) public CodeCommitSourceProps build()
build in interface software.amazon.jsii.Builder<CodeCommitSourceProps>CodeCommitSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.