Class CfnWebhook.WebhookAuthConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnWebhook.WebhookAuthConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebhook.WebhookAuthConfigurationProperty>
- Enclosing interface:
- CfnWebhook.WebhookAuthConfigurationProperty
@Stability(Stable)
public static final class CfnWebhook.WebhookAuthConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebhook.WebhookAuthConfigurationProperty>
A builder for
CfnWebhook.WebhookAuthConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedIpRange(String allowedIpRange) Sets the value ofCfnWebhook.WebhookAuthConfigurationProperty.getAllowedIpRange()build()Builds the configured instance.secretToken(String secretToken) Sets the value ofCfnWebhook.WebhookAuthConfigurationProperty.getSecretToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedIpRange
@Stability(Stable) public CfnWebhook.WebhookAuthConfigurationProperty.Builder allowedIpRange(String allowedIpRange) Sets the value ofCfnWebhook.WebhookAuthConfigurationProperty.getAllowedIpRange()- Parameters:
allowedIpRange- The property used to configure acceptance of webhooks in an IP address range. For IP, only theAllowedIPRangeproperty must be set. This property must be set to a valid CIDR range.- Returns:
this
-
secretToken
@Stability(Stable) public CfnWebhook.WebhookAuthConfigurationProperty.Builder secretToken(String secretToken) Sets the value ofCfnWebhook.WebhookAuthConfigurationProperty.getSecretToken()- Parameters:
secretToken- The property used to configure GitHub authentication. For GITHUB_HMAC, only theSecretTokenproperty must be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebhook.WebhookAuthConfigurationProperty>- Returns:
- a new instance of
CfnWebhook.WebhookAuthConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-