AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
SNSAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/email/SES_EXPORTS.h>
10#include <aws/email/model/SNSActionEncoding.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace SES {
21namespace Model {
22
44class SNSAction {
45 public:
46 AWS_SES_API SNSAction() = default;
47 AWS_SES_API SNSAction(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_SES_API SNSAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
54
63 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
64 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
65 template <typename TopicArnT = Aws::String>
66 void SetTopicArn(TopicArnT&& value) {
67 m_topicArnHasBeenSet = true;
68 m_topicArn = std::forward<TopicArnT>(value);
69 }
70 template <typename TopicArnT = Aws::String>
71 SNSAction& WithTopicArn(TopicArnT&& value) {
72 SetTopicArn(std::forward<TopicArnT>(value));
73 return *this;
74 }
76
78
84 inline SNSActionEncoding GetEncoding() const { return m_encoding; }
85 inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
86 inline void SetEncoding(SNSActionEncoding value) {
87 m_encodingHasBeenSet = true;
88 m_encoding = value;
89 }
91 SetEncoding(value);
92 return *this;
93 }
95 private:
96 Aws::String m_topicArn;
97
99 bool m_topicArnHasBeenSet = false;
100 bool m_encodingHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace SES
105} // namespace Aws
bool TopicArnHasBeenSet() const
Definition SNSAction.h:64
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SES_API SNSAction()=default
void SetEncoding(SNSActionEncoding value)
Definition SNSAction.h:86
SNSActionEncoding GetEncoding() const
Definition SNSAction.h:84
bool EncodingHasBeenSet() const
Definition SNSAction.h:85
AWS_SES_API SNSAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SNSAction & WithTopicArn(TopicArnT &&value)
Definition SNSAction.h:71
SNSAction & WithEncoding(SNSActionEncoding value)
Definition SNSAction.h:90
void SetTopicArn(TopicArnT &&value)
Definition SNSAction.h:66
AWS_SES_API SNSAction(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTopicArn() const
Definition SNSAction.h:63
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream