AWS SDK for C++  1.8.102
AWS SDK for C++
SNSAction.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace SES
23 {
24 namespace Model
25 {
26 
49  {
50  public:
51  SNSAction();
52  SNSAction(const Aws::Utils::Xml::XmlNode& xmlNode);
53  SNSAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
54 
55  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
56  void OutputToStream(Aws::OStream& oStream, const char* location) const;
57 
58 
67  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
68 
77  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
78 
87  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
88 
97  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
98 
107  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
108 
117  inline SNSAction& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
118 
127  inline SNSAction& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
128 
137  inline SNSAction& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
138 
139 
146  inline const SNSActionEncoding& GetEncoding() const{ return m_encoding; }
147 
154  inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
155 
162  inline void SetEncoding(const SNSActionEncoding& value) { m_encodingHasBeenSet = true; m_encoding = value; }
163 
170  inline void SetEncoding(SNSActionEncoding&& value) { m_encodingHasBeenSet = true; m_encoding = std::move(value); }
171 
178  inline SNSAction& WithEncoding(const SNSActionEncoding& value) { SetEncoding(value); return *this;}
179 
186  inline SNSAction& WithEncoding(SNSActionEncoding&& value) { SetEncoding(std::move(value)); return *this;}
187 
188  private:
189 
190  Aws::String m_topicArn;
191  bool m_topicArnHasBeenSet;
192 
193  SNSActionEncoding m_encoding;
194  bool m_encodingHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace SES
199 } // namespace Aws
bool EncodingHasBeenSet() const
Definition: SNSAction.h:154
void SetTopicArn(const char *value)
Definition: SNSAction.h:107
void SetTopicArn(const Aws::String &value)
Definition: SNSAction.h:87
SNSAction & WithEncoding(SNSActionEncoding &&value)
Definition: SNSAction.h:186
void SetEncoding(const SNSActionEncoding &value)
Definition: SNSAction.h:162
void SetEncoding(SNSActionEncoding &&value)
Definition: SNSAction.h:170
int index
Definition: cJSON.h:171
SNSAction & WithTopicArn(const char *value)
Definition: SNSAction.h:137
bool TopicArnHasBeenSet() const
Definition: SNSAction.h:77
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
SNSAction & WithTopicArn(Aws::String &&value)
Definition: SNSAction.h:127
SNSAction & WithEncoding(const SNSActionEncoding &value)
Definition: SNSAction.h:178
const Aws::String & GetTopicArn() const
Definition: SNSAction.h:67
void SetTopicArn(Aws::String &&value)
Definition: SNSAction.h:97
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:117
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
const SNSActionEncoding & GetEncoding() const
Definition: SNSAction.h:146