Class CfnWebhook.WebhookFilterRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnWebhook.WebhookFilterRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebhook.WebhookFilterRuleProperty>
- Enclosing interface:
CfnWebhook.WebhookFilterRuleProperty
@Stability(Stable)
public static final class CfnWebhook.WebhookFilterRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebhook.WebhookFilterRuleProperty>
A builder for
CfnWebhook.WebhookFilterRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnWebhook.WebhookFilterRuleProperty.getJsonPath()
matchEquals
(String matchEquals) Sets the value ofCfnWebhook.WebhookFilterRuleProperty.getMatchEquals()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonPath
Sets the value ofCfnWebhook.WebhookFilterRuleProperty.getJsonPath()
- Parameters:
jsonPath
- A JsonPath expression that is applied to the body/payload of the webhook. This parameter is required. The value selected by the JsonPath expression must match the value specified in theMatchEquals
field. Otherwise, the request is ignored. For more information, see Java JsonPath implementation in GitHub.- Returns:
this
-
matchEquals
@Stability(Stable) public CfnWebhook.WebhookFilterRuleProperty.Builder matchEquals(String matchEquals) Sets the value ofCfnWebhook.WebhookFilterRuleProperty.getMatchEquals()
- Parameters:
matchEquals
- The value selected by theJsonPath
expression must match what is supplied in theMatchEquals
field. Otherwise, the request is ignored. Properties from the target action configuration can be included as placeholders in this value by surrounding the action configuration key with curly brackets. For example, if the value supplied here is "refs/heads/{Branch}" and the target action has an action configuration property called "Branch" with a value of "main", theMatchEquals
value is evaluated as "refs/heads/main". For a list of action configuration properties for built-in action types, see Pipeline Structure Reference Action Requirements .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWebhook.WebhookFilterRuleProperty>
- Returns:
- a new instance of
CfnWebhook.WebhookFilterRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-