/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpoint.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends * messages to participants. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CustomMessageActivity implements Serializable, Cloneable, StructuredPojo { /** *

* The destination to send the campaign or treatment to. This value can be one of the following: *

* */ private String deliveryUri; /** *

* The types of endpoints to send the custom message to. Each valid value maps to a type of channel that you can * associate with an endpoint by using the ChannelType property of an endpoint. *

*/ private java.util.List endpointTypes; /** *

* Specifies the message data included in a custom channel message that's sent to participants in a journey. *

*/ private JourneyCustomMessage messageConfig; /** *

* The unique identifier for the next activity to perform, after Amazon Pinpoint calls the AWS Lambda function or * web hook. *

*/ private String nextActivity; /** *

* The name of the custom message template to use for the message. If specified, this value must match the name of * an existing message template. *

*/ private String templateName; /** *

* The unique identifier for the version of the message template to use for the message. If specified, this value * must match the identifier for an existing template version. To retrieve a list of versions and version * identifiers for a template, use the Template * Versions resource. *

*

* If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. * The active version is typically the version of a template that's been most recently reviewed and approved * for use, depending on your workflow. It isn't necessarily the latest version of a template. *

*/ private String templateVersion; /** *

* The destination to send the campaign or treatment to. This value can be one of the following: *

* * * @param deliveryUri * The destination to send the campaign or treatment to. This value can be one of the following:

*