/*
* 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/email/SES_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Xml
{
  class XmlNode;
} // namespace Xml
} // namespace Utils
namespace SES
{
namespace Model
{

  /**
   * <p>Contains the topic ARN associated with an Amazon Simple Notification Service
   * (Amazon SNS) event destination.</p> <p>Event destinations, such as Amazon SNS,
   * are associated with configuration sets, which enable you to publish email
   * sending events. For information about using configuration sets, see the <a
   * href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon
   * SES Developer Guide</a>.</p><p><h3>See Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SNSDestination">AWS
   * API Reference</a></p>
   */
  class AWS_SES_API SNSDestination
  {
  public:
    SNSDestination();
    SNSDestination(const Aws::Utils::Xml::XmlNode& xmlNode);
    SNSDestination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);

    void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
    void OutputToStream(Aws::OStream& oStream, const char* location) const;


    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline const Aws::String& GetTopicARN() const{ return m_topicARN; }

    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; }

    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::move(value); }

    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); }

    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline SNSDestination& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;}

    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline SNSDestination& WithTopicARN(Aws::String&& value) { SetTopicARN(std::move(value)); return *this;}

    /**
     * <p>The ARN of the Amazon SNS topic to which you want to publish email sending
     * events. An example of an Amazon SNS topic ARN is
     * arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon
     * SNS topics, see the <a
     * href="http://docs.aws.amazon.com/http:/alpha-docs-aws.amazon.com/sns/latest/dg/CreateTopic.html">
     * <i>Amazon SNS Developer Guide</i> </a>.</p>
     */
    inline SNSDestination& WithTopicARN(const char* value) { SetTopicARN(value); return *this;}

  private:

    Aws::String m_topicARN;
    bool m_topicARNHasBeenSet;
  };

} // namespace Model
} // namespace SES
} // namespace Aws
