Class CfnProject.ProjectTriggersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.ProjectTriggersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.ProjectTriggersProperty>
- Enclosing interface:
CfnProject.ProjectTriggersProperty
@Stability(Stable)
public static final class CfnProject.ProjectTriggersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.ProjectTriggersProperty>
A builder for
CfnProject.ProjectTriggersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnProject.ProjectTriggersProperty.getBuildType()
filterGroups
(List<? extends Object> filterGroups) Sets the value ofCfnProject.ProjectTriggersProperty.getFilterGroups()
filterGroups
(IResolvable filterGroups) Sets the value ofCfnProject.ProjectTriggersProperty.getFilterGroups()
Sets the value ofCfnProject.ProjectTriggersProperty.getWebhook()
webhook
(IResolvable webhook) Sets the value ofCfnProject.ProjectTriggersProperty.getWebhook()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildType
Sets the value ofCfnProject.ProjectTriggersProperty.getBuildType()
- Parameters:
buildType
- Specifies the type of build this webhook will trigger. Allowed values are:.- BUILD - A single build
- BUILD_BATCH - A batch build
- Returns:
this
-
filterGroups
@Stability(Stable) public CfnProject.ProjectTriggersProperty.Builder filterGroups(IResolvable filterGroups) Sets the value ofCfnProject.ProjectTriggersProperty.getFilterGroups()
- Parameters:
filterGroups
- A list of lists ofWebhookFilter
objects used to determine which webhook events are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as its type.- Returns:
this
-
filterGroups
@Stability(Stable) public CfnProject.ProjectTriggersProperty.Builder filterGroups(List<? extends Object> filterGroups) Sets the value ofCfnProject.ProjectTriggersProperty.getFilterGroups()
- Parameters:
filterGroups
- A list of lists ofWebhookFilter
objects used to determine which webhook events are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as its type.- Returns:
this
-
webhook
Sets the value ofCfnProject.ProjectTriggersProperty.getWebhook()
- Parameters:
webhook
- Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.- Returns:
this
-
webhook
Sets the value ofCfnProject.ProjectTriggersProperty.getWebhook()
- Parameters:
webhook
- Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.ProjectTriggersProperty>
- Returns:
- a new instance of
CfnProject.ProjectTriggersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-