Class CfnApplicationSettings.CampaignHookProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnApplicationSettings.CampaignHookProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationSettings.CampaignHookProperty>
- Enclosing interface:
CfnApplicationSettings.CampaignHookProperty
@Stability(Stable)
public static final class CfnApplicationSettings.CampaignHookProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationSettings.CampaignHookProperty>
A builder for
CfnApplicationSettings.CampaignHookProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.lambdaFunctionName
(String lambdaFunctionName) Sets the value ofCfnApplicationSettings.CampaignHookProperty.getLambdaFunctionName()
Sets the value ofCfnApplicationSettings.CampaignHookProperty.getMode()
Sets the value ofCfnApplicationSettings.CampaignHookProperty.getWebUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaFunctionName
@Stability(Stable) public CfnApplicationSettings.CampaignHookProperty.Builder lambdaFunctionName(String lambdaFunctionName) Sets the value ofCfnApplicationSettings.CampaignHookProperty.getLambdaFunctionName()
- Parameters:
lambdaFunctionName
- The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to send messages for campaigns in the application.- Returns:
this
-
mode
Sets the value ofCfnApplicationSettings.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 theCustomDeliveryConfiguration
andCampaignCustomMessage
objects of the campaign.
- Returns:
this
-
webUrl
Sets the value ofCfnApplicationSettings.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplicationSettings.CampaignHookProperty>
- Returns:
- a new instance of
CfnApplicationSettings.CampaignHookProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-