/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

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 Also:

AWS * API Reference

*/ class CustomDeliveryConfiguration { public: AWS_PINPOINT_API CustomDeliveryConfiguration(); AWS_PINPOINT_API CustomDeliveryConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API CustomDeliveryConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetDeliveryUri() const{ return m_deliveryUri; } /** *

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.

*/ inline bool DeliveryUriHasBeenSet() const { return m_deliveryUriHasBeenSet; } /** *

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.

*/ inline void SetDeliveryUri(const Aws::String& value) { m_deliveryUriHasBeenSet = true; m_deliveryUri = value; } /** *

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.

*/ inline void SetDeliveryUri(Aws::String&& value) { m_deliveryUriHasBeenSet = true; m_deliveryUri = std::move(value); } /** *

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.

*/ inline void SetDeliveryUri(const char* value) { m_deliveryUriHasBeenSet = true; m_deliveryUri.assign(value); } /** *

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.

*/ inline CustomDeliveryConfiguration& WithDeliveryUri(const Aws::String& value) { SetDeliveryUri(value); return *this;} /** *

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.

*/ inline CustomDeliveryConfiguration& WithDeliveryUri(Aws::String&& value) { SetDeliveryUri(std::move(value)); return *this;} /** *

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.

*/ inline CustomDeliveryConfiguration& WithDeliveryUri(const char* value) { SetDeliveryUri(value); return *this;} /** *

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.

*/ inline const Aws::Vector<__EndpointTypesElement>& GetEndpointTypes() const{ return m_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.

*/ inline bool EndpointTypesHasBeenSet() const { return m_endpointTypesHasBeenSet; } /** *

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.

*/ inline void SetEndpointTypes(const Aws::Vector<__EndpointTypesElement>& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes = value; } /** *

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.

*/ inline void SetEndpointTypes(Aws::Vector<__EndpointTypesElement>&& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes = std::move(value); } /** *

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.

*/ inline CustomDeliveryConfiguration& WithEndpointTypes(const Aws::Vector<__EndpointTypesElement>& value) { SetEndpointTypes(value); return *this;} /** *

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.

*/ inline CustomDeliveryConfiguration& WithEndpointTypes(Aws::Vector<__EndpointTypesElement>&& value) { SetEndpointTypes(std::move(value)); return *this;} /** *

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.

*/ inline CustomDeliveryConfiguration& AddEndpointTypes(const __EndpointTypesElement& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes.push_back(value); return *this; } /** *

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.

*/ inline CustomDeliveryConfiguration& AddEndpointTypes(__EndpointTypesElement&& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes.push_back(std::move(value)); return *this; } private: Aws::String m_deliveryUri; bool m_deliveryUriHasBeenSet = false; Aws::Vector<__EndpointTypesElement> m_endpointTypes; bool m_endpointTypesHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws