@Stability(value=Experimental) public static final class GitHubSourceProps.Builder extends Object implements software.amazon.jsii.Builder<GitHubSourceProps>
GitHubSourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public GitHubSourceProps.Builder owner(String owner)
GitHubSourceProps.getOwner()owner - The GitHub account/user that owns the repo. This parameter is required.this@Stability(value=Experimental) public GitHubSourceProps.Builder repo(String repo)
GitHubSourceProps.getRepo()repo - The name of the repo (without the username). This parameter is required.this@Stability(value=Experimental) public GitHubSourceProps.Builder branchOrRef(String branchOrRef)
GitHubSourceProps.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 GitHubSourceProps.Builder cloneDepth(Number cloneDepth)
GitHubSourceProps.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 GitHubSourceProps.Builder fetchSubmodules(Boolean fetchSubmodules)
GitHubSourceProps.getFetchSubmodules()fetchSubmodules - Whether to fetch submodules while cloning git repo.this@Stability(value=Experimental) public GitHubSourceProps.Builder reportBuildStatus(Boolean reportBuildStatus)
GitHubSourceProps.getReportBuildStatus()reportBuildStatus - Whether to send notifications on your build's start and end.this@Stability(value=Experimental) public GitHubSourceProps.Builder webhook(Boolean webhook)
GitHubSourceProps.getWebhook()webhook - Whether to create a webhook that will trigger a build every time an event happens in the repository.this@Stability(value=Experimental) public GitHubSourceProps.Builder webhookFilters(List<? extends FilterGroup> webhookFilters)
GitHubSourceProps.getWebhookFilters()webhookFilters - A list of webhook filters that can constraint what events in the repository will trigger a build.
A build is triggered if any of the provided filter groups match.
Only valid if webhook was not provided as false.this@Stability(value=Experimental) public GitHubSourceProps.Builder webhookTriggersBatchBuild(Boolean webhookTriggersBatchBuild)
GitHubSourceProps.getWebhookTriggersBatchBuild()webhookTriggersBatchBuild - Trigger a batch build from a webhook instead of a standard one.
Enabling this will enable batch builds on the CodeBuild project.this@Stability(value=Experimental) public GitHubSourceProps.Builder identifier(String identifier)
SourceProps.getIdentifier()identifier - The source identifier.
This property is required on secondary sources.this@Stability(value=Experimental) public GitHubSourceProps build()
build in interface software.amazon.jsii.Builder<GitHubSourceProps>GitHubSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.