/* * 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; /** *
* Specifies the delivery configuration settings for sending a campaign or campaign treatment through a custom channel. * This object is required if you use the CampaignCustomMessage object to define the message to send for the campaign or * campaign treatment. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CustomDeliveryConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The destination to send the campaign or treatment to. This value can be one of the following: *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or * treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a * full URL, including the HTTPS protocol. *
** The types of endpoints to send the campaign or treatment 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* The destination to send the campaign or treatment to. This value can be one of the following: *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or * treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a * full URL, including the HTTPS protocol. *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the * campaign or treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to * be a full URL, including the HTTPS protocol. *
** The destination to send the campaign or treatment to. This value can be one of the following: *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or * treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a * full URL, including the HTTPS protocol. *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the * campaign or treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to * be a full URL, including the HTTPS protocol. *
** The destination to send the campaign or treatment to. This value can be one of the following: *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the campaign or * treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to be a * full URL, including the HTTPS protocol. *
** The name or Amazon Resource Name (ARN) of an AWS Lambda function to invoke to handle delivery of the * campaign or treatment. *
** The URL for a web application or service that supports HTTPS and can receive the message. The URL has to * be a full URL, including the HTTPS protocol. *
** The types of endpoints to send the campaign or treatment 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. *
* * @return The types of endpoints to send the campaign or treatment 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. * @see EndpointTypesElement */ public java.util.List* The types of endpoints to send the campaign or treatment 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. *
* * @param endpointTypes * The types of endpoints to send the campaign or treatment 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. * @see EndpointTypesElement */ public void setEndpointTypes(java.util.Collection* The types of endpoints to send the campaign or treatment 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEndpointTypes(java.util.Collection)} or {@link #withEndpointTypes(java.util.Collection)} if you want * to override the existing values. *
* * @param endpointTypes * The types of endpoints to send the campaign or treatment 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. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointTypesElement */ public CustomDeliveryConfiguration withEndpointTypes(String... endpointTypes) { if (this.endpointTypes == null) { setEndpointTypes(new java.util.ArrayList* The types of endpoints to send the campaign or treatment 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. *
* * @param endpointTypes * The types of endpoints to send the campaign or treatment 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. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointTypesElement */ public CustomDeliveryConfiguration withEndpointTypes(java.util.Collection* The types of endpoints to send the campaign or treatment 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. *
* * @param endpointTypes * The types of endpoints to send the campaign or treatment 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. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointTypesElement */ public CustomDeliveryConfiguration withEndpointTypes(EndpointTypesElement... endpointTypes) { java.util.ArrayList