@Stability(value=Stable) public static final class CfnProject.WebhookFilterProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnProject.WebhookFilterProperty>
CfnProject.WebhookFilterProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnProject.WebhookFilterProperty |
build()
Builds the configured instance.
|
CfnProject.WebhookFilterProperty.Builder |
excludeMatchedPattern(Boolean excludeMatchedPattern)
Sets the value of
CfnProject.WebhookFilterProperty.getExcludeMatchedPattern() |
CfnProject.WebhookFilterProperty.Builder |
excludeMatchedPattern(IResolvable excludeMatchedPattern)
Sets the value of
CfnProject.WebhookFilterProperty.getExcludeMatchedPattern() |
CfnProject.WebhookFilterProperty.Builder |
pattern(String pattern)
Sets the value of
CfnProject.WebhookFilterProperty.getPattern() |
CfnProject.WebhookFilterProperty.Builder |
type(String type)
Sets the value of
CfnProject.WebhookFilterProperty.getType() |
@Stability(value=Stable) public CfnProject.WebhookFilterProperty.Builder pattern(String pattern)
CfnProject.WebhookFilterProperty.getPattern()pattern - For a `WebHookFilter` that uses `EVENT` type, a comma-separated string that specifies one or more events. This parameter is required.
For example, the webhook filter PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED allows all push, pull request created, and pull request updated events to trigger a build.
For a WebHookFilter that uses any of the other filter types, a regular expression pattern. For example, a WebHookFilter that uses HEAD_REF for its type and the pattern ^refs/heads/ triggers a build when the head reference is a branch with a reference name refs/heads/branch-name .
this@Stability(value=Stable) public CfnProject.WebhookFilterProperty.Builder type(String type)
CfnProject.WebhookFilterProperty.getType()type - The type of webhook filter. This parameter is required.
There are six webhook filter types: EVENT , ACTOR_ACCOUNT_ID , HEAD_REF , BASE_REF , FILE_PATH , and COMMIT_MESSAGE .
pattern matches one of five event types: PUSH , PULL_REQUEST_CREATED , PULL_REQUEST_UPDATED , PULL_REQUEST_REOPENED , and PULL_REQUEST_MERGED . The EVENT patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull request created, and pull request updated events.
The
PULL_REQUEST_REOPENEDworks with GitHub and GitHub Enterprise only.
pattern .pattern . For example, refs/heads/branch-name and refs/tags/tag-name .Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.
pattern . For example, refs/heads/branch-name .
Works with pull request events only.
pattern .
Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
pattern .
Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
this@Stability(value=Stable) public CfnProject.WebhookFilterProperty.Builder excludeMatchedPattern(Boolean excludeMatchedPattern)
CfnProject.WebhookFilterProperty.getExcludeMatchedPattern()excludeMatchedPattern - Used to indicate that the `pattern` determines which webhook events do not trigger a build.
If true, then a webhook event that does not match the pattern triggers a build. If false, then a webhook event that matches the pattern triggers a build.this@Stability(value=Stable) public CfnProject.WebhookFilterProperty.Builder excludeMatchedPattern(IResolvable excludeMatchedPattern)
CfnProject.WebhookFilterProperty.getExcludeMatchedPattern()excludeMatchedPattern - Used to indicate that the `pattern` determines which webhook events do not trigger a build.
If true, then a webhook event that does not match the pattern triggers a build. If false, then a webhook event that matches the pattern triggers a build.this@Stability(value=Stable) public CfnProject.WebhookFilterProperty build()
build in interface software.amazon.jsii.Builder<CfnProject.WebhookFilterProperty>CfnProject.WebhookFilterPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.