Class CfnCampaign.CampaignHookProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignHookProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.CampaignHookProperty>
- Enclosing interface:
CfnCampaign.CampaignHookProperty
@Stability(Stable)
public static final class CfnCampaign.CampaignHookProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.CampaignHookProperty>
A builder for
CfnCampaign.CampaignHookProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lambdaFunctionName(String lambdaFunctionName) Sets the value ofCfnCampaign.CampaignHookProperty.getLambdaFunctionName()Sets the value ofCfnCampaign.CampaignHookProperty.getMode()Sets the value ofCfnCampaign.CampaignHookProperty.getWebUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaFunctionName
@Stability(Stable) public CfnCampaign.CampaignHookProperty.Builder lambdaFunctionName(String lambdaFunctionName) Sets the value ofCfnCampaign.CampaignHookProperty.getLambdaFunctionName()- Parameters:
lambdaFunctionName- The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.- Returns:
this
-
mode
Sets the value ofCfnCampaign.CampaignHookProperty.getMode()- Parameters:
mode- The mode that Amazon Pinpoint uses to invoke the Lambda function. Possible values are:.FILTER- Invoke the function to customize the segment that's used by a campaign.DELIVERY- (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use theCustomDeliveryConfigurationandCampaignCustomMessageobjects of the campaign.
- Returns:
this
-
webUrl
Sets the value ofCfnCampaign.CampaignHookProperty.getWebUrl()- Parameters:
webUrl- The web URL that Amazon Pinpoint calls to invoke the Lambda function over HTTPS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaign.CampaignHookProperty>- Returns:
- a new instance of
CfnCampaign.CampaignHookProperty - Throws:
NullPointerException- if any required attribute was not provided
-