text: ﻿/*
  * Copyright 2010-2017 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.
  */
  
  #pragma once
  #include <aws/pinpoint/Pinpoint_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/pinpoint/model/__EndpointTypesElement.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace Pinpoint
  {
  namespace Model
  {
  
    /**
     * <p>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.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CustomDeliveryConfiguration">AWS
     * API Reference</a></p>
     */
    class AWS_PINPOINT_API CustomDeliveryConfiguration
    {
    public:
      CustomDeliveryConfiguration();
      CustomDeliveryConfiguration(Aws::Utils::Json::JsonView jsonValue);
      CustomDeliveryConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline const Aws::String& GetDeliveryUri() const{ return m_deliveryUri; }
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline bool DeliveryUriHasBeenSet() const { return m_deliveryUriHasBeenSet; }
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline void SetDeliveryUri(const Aws::String& value) { m_deliveryUriHasBeenSet = true; m_deliveryUri = value; }
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline void SetDeliveryUri(Aws::String&& value) { m_deliveryUriHasBeenSet = true; m_deliveryUri = std::move(value); }
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline void SetDeliveryUri(const char* value) { m_deliveryUriHasBeenSet = true; m_deliveryUri.assign(value); }
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline CustomDeliveryConfiguration& WithDeliveryUri(const Aws::String& value) { SetDeliveryUri(value); return *this;}
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline CustomDeliveryConfiguration& WithDeliveryUri(Aws::String&& value) { SetDeliveryUri(std::move(value)); return *this;}
  
      /**
       * <p>The destination to send the campaign or treatment to. This value can be one
       * of the following:</p> <ul><li><p>The name or Amazon Resource Name (ARN) of an
       * AWS Lambda function to invoke to handle delivery of the campaign or
       * treatment.</p></li> <li><p>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.</p></li></ul> 
       */
      inline CustomDeliveryConfiguration& WithDeliveryUri(const char* value) { SetDeliveryUri(value); return *this;}
  
  
      /**
       * <p>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.</p>
       */
      inline const Aws::Vector<__EndpointTypesElement>& GetEndpointTypes() const{ return m_endpointTypes; }
  
      /**
       * <p>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.</p>
       */
      inline bool EndpointTypesHasBeenSet() const { return m_endpointTypesHasBeenSet; }
  
      /**
       * <p>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.</p>
       */
      inline void SetEndpointTypes(const Aws::Vector<__EndpointTypesElement>& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes = value; }
  
      /**
       * <p>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.</p>
       */
      inline void SetEndpointTypes(Aws::Vector<__EndpointTypesElement>&& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes = std::move(value); }
  
      /**
       * <p>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.</p>
       */
      inline CustomDeliveryConfiguration& WithEndpointTypes(const Aws::Vector<__EndpointTypesElement>& value) { SetEndpointTypes(value); return *this;}
  
      /**
       * <p>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.</p>
       */
      inline CustomDeliveryConfiguration& WithEndpointTypes(Aws::Vector<__EndpointTypesElement>&& value) { SetEndpointTypes(std::move(value)); return *this;}
  
      /**
       * <p>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.</p>
       */
      inline CustomDeliveryConfiguration& AddEndpointTypes(const __EndpointTypesElement& value) { m_endpointTypesHasBeenSet = true; m_endpointTypes.push_back(value); return *this; }
  
      /**
       * <p>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.</p>
       */
      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;
  
      Aws::Vector<__EndpointTypesElement> m_endpointTypes;
      bool m_endpointTypesHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Pinpoint
  } // namespace Aws
  