public static final class CfnCampaign.CampaignHookProperty.Builder
extends java.lang.Object
CfnCampaign.CampaignHookProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCampaign.CampaignHookProperty |
build()
Builds the configured instance.
|
CfnCampaign.CampaignHookProperty.Builder |
lambdaFunctionName(java.lang.String lambdaFunctionName)
Sets the value of
CfnCampaign.CampaignHookProperty.getLambdaFunctionName() |
CfnCampaign.CampaignHookProperty.Builder |
mode(java.lang.String mode)
Sets the value of
CfnCampaign.CampaignHookProperty.getMode() |
CfnCampaign.CampaignHookProperty.Builder |
webUrl(java.lang.String webUrl)
Sets the value of
CfnCampaign.CampaignHookProperty.getWebUrl() |
public CfnCampaign.CampaignHookProperty.Builder lambdaFunctionName(java.lang.String lambdaFunctionName)
CfnCampaign.CampaignHookProperty.getLambdaFunctionName()
lambdaFunctionName
- The name or Amazon Resource Name (ARN) of the Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.this
public CfnCampaign.CampaignHookProperty.Builder mode(java.lang.String mode)
CfnCampaign.CampaignHookProperty.getMode()
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 the CustomDeliveryConfiguration
and CampaignCustomMessage
objects of the campaign.this
public CfnCampaign.CampaignHookProperty.Builder webUrl(java.lang.String webUrl)
CfnCampaign.CampaignHookProperty.getWebUrl()
webUrl
- The web URL that Amazon Pinpoint calls to invoke the Lambda function over HTTPS.this
public CfnCampaign.CampaignHookProperty build()
CfnCampaign.CampaignHookProperty
java.lang.NullPointerException
- if any required attribute was not provided