AWS SDK for C++  0.14.3
AWS SDK for C++
SNSAction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace SES
31 {
32 namespace Model
33 {
34 
55  {
56  public:
57  SNSAction();
58  SNSAction(const Aws::Utils::Xml::XmlNode& xmlNode);
59  SNSAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
60 
61  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
62  void OutputToStream(Aws::OStream& oStream, const char* location) const;
63 
72  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
73 
82  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
83 
92  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
93 
102  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
103 
112  inline SNSAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
113 
122  inline SNSAction& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
123 
132  inline SNSAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
133 
140  inline const SNSActionEncoding& GetEncoding() const{ return m_encoding; }
141 
148  inline void SetEncoding(const SNSActionEncoding& value) { m_encodingHasBeenSet = true; m_encoding = value; }
149 
156  inline void SetEncoding(SNSActionEncoding&& value) { m_encodingHasBeenSet = true; m_encoding = value; }
157 
164  inline SNSAction& WithEncoding(const SNSActionEncoding& value) { SetEncoding(value); return *this;}
165 
172  inline SNSAction& WithEncoding(SNSActionEncoding&& value) { SetEncoding(value); return *this;}
173 
174  private:
175  Aws::String m_topicArn;
176  bool m_topicArnHasBeenSet;
177  SNSActionEncoding m_encoding;
178  bool m_encodingHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace SES
183 } // namespace Aws
void SetTopicArn(const char *value)
Definition: SNSAction.h:102
void SetTopicArn(const Aws::String &value)
Definition: SNSAction.h:82
const Aws::String & GetTopicArn() const
Definition: SNSAction.h:72
SNSAction & WithEncoding(SNSActionEncoding &&value)
Definition: SNSAction.h:172
void SetEncoding(const SNSActionEncoding &value)
Definition: SNSAction.h:148
const SNSActionEncoding & GetEncoding() const
Definition: SNSAction.h:140
void SetEncoding(SNSActionEncoding &&value)
Definition: SNSAction.h:156
SNSAction & WithTopicArn(const char *value)
Definition: SNSAction.h:132
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SNSAction & WithTopicArn(Aws::String &&value)
Definition: SNSAction.h:122
SNSAction & WithEncoding(const SNSActionEncoding &value)
Definition: SNSAction.h:164
void SetTopicArn(Aws::String &&value)
Definition: SNSAction.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SNSAction & WithTopicArn(const Aws::String &value)
Definition: SNSAction.h:112
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
JSON (JavaScript Object Notation).