AWS SDK for C++  1.8.153
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:
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
Aws::SES::Model::SNSAction::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: SNSAction.h:97
Aws::SES::Model::SNSAction
Definition: SNSAction.h:49
SNSActionEncoding.h
Aws::SES::Model::SNSAction::EncodingHasBeenSet
bool EncodingHasBeenSet() const
Definition: SNSAction.h:154
Aws::SES::Model::SNSAction::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::SNSAction::WithTopicArn
SNSAction & WithTopicArn(Aws::String &&value)
Definition: SNSAction.h:127
Aws::SES::Model::SNSAction::SetEncoding
void SetEncoding(SNSActionEncoding &&value)
Definition: SNSAction.h:170
AWSStreamFwd.h
Aws::SES::Model::SNSAction::SNSAction
SNSAction(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::SNSAction::WithTopicArn
SNSAction & WithTopicArn(const char *value)
Definition: SNSAction.h:137
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::SNSAction::WithEncoding
SNSAction & WithEncoding(SNSActionEncoding &&value)
Definition: SNSAction.h:186
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::SNSAction::SNSAction
SNSAction()
Aws::SES::Model::SNSAction::SetTopicArn
void SetTopicArn(const char *value)
Definition: SNSAction.h:107
Aws::SES::Model::SNSAction::WithEncoding
SNSAction & WithEncoding(const SNSActionEncoding &value)
Definition: SNSAction.h:178
Aws::SES::Model::SNSActionEncoding
SNSActionEncoding
Definition: SNSActionEncoding.h:17
AWSString.h
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::SNSAction::SetEncoding
void SetEncoding(const SNSActionEncoding &value)
Definition: SNSAction.h:162
Aws::SES::Model::SNSAction::GetEncoding
const SNSActionEncoding & GetEncoding() const
Definition: SNSAction.h:146
Aws::SES::Model::SNSAction::WithTopicArn
SNSAction & WithTopicArn(const Aws::String &value)
Definition: SNSAction.h:117
Aws::SES::Model::SNSAction::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: SNSAction.h:77
Aws::SES::Model::SNSAction::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: SNSAction.h:67
Aws::SES::Model::SNSAction::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: SNSAction.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SES::Model::SNSAction::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::SNSAction::operator=
SNSAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)