Class SourceConfig.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.SourceConfig.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<SourceConfig>
- Enclosing interface:
- SourceConfig
@Stability(Stable)
public static final class SourceConfig.Builder
extends Object
implements software.amazon.jsii.Builder<SourceConfig>
A builder for 
SourceConfig- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.buildTriggers(CfnProject.ProjectTriggersProperty buildTriggers) Sets the value ofSourceConfig.getBuildTriggers()sourceProperty(CfnProject.SourceProperty sourceProperty) Sets the value ofSourceConfig.getSourceProperty()sourceVersion(String sourceVersion) Sets the value ofSourceConfig.getSourceVersion()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
sourceProperty@Stability(Stable) public SourceConfig.Builder sourceProperty(CfnProject.SourceProperty sourceProperty) Sets the value ofSourceConfig.getSourceProperty()- Parameters:
- sourceProperty- the value to be set. This parameter is required.
- Returns:
- this
 
- 
buildTriggers@Stability(Stable) public SourceConfig.Builder buildTriggers(CfnProject.ProjectTriggersProperty buildTriggers) Sets the value ofSourceConfig.getBuildTriggers()- Parameters:
- buildTriggers- the value to be set.
- Returns:
- this
 
- 
sourceVersionSets the value ofSourceConfig.getSourceVersion()- Parameters:
- sourceVersion-- AWS::CodeBuild::Project.SourceVersion.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<SourceConfig>
- Returns:
- a new instance of SourceConfig
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-