AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
StopAction.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/StopScope.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
34 public:
35 AWS_SES_API StopAction() = default;
36 AWS_SES_API StopAction(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_SES_API StopAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
47 inline StopScope GetScope() const { return m_scope; }
48 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
49 inline void SetScope(StopScope value) {
50 m_scopeHasBeenSet = true;
51 m_scope = value;
52 }
54 SetScope(value);
55 return *this;
56 }
58
60
68 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
69 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
70 template <typename TopicArnT = Aws::String>
71 void SetTopicArn(TopicArnT&& value) {
72 m_topicArnHasBeenSet = true;
73 m_topicArn = std::forward<TopicArnT>(value);
74 }
75 template <typename TopicArnT = Aws::String>
76 StopAction& WithTopicArn(TopicArnT&& value) {
77 SetTopicArn(std::forward<TopicArnT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::String m_topicArn;
85 bool m_scopeHasBeenSet = false;
86 bool m_topicArnHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace SES
91} // namespace Aws
void SetTopicArn(TopicArnT &&value)
Definition StopAction.h:71
const Aws::String & GetTopicArn() const
Definition StopAction.h:68
bool TopicArnHasBeenSet() const
Definition StopAction.h:69
StopAction & WithScope(StopScope value)
Definition StopAction.h:53
void SetScope(StopScope value)
Definition StopAction.h:49
AWS_SES_API StopAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StopScope GetScope() const
Definition StopAction.h:47
AWS_SES_API StopAction()=default
AWS_SES_API StopAction(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StopAction & WithTopicArn(TopicArnT &&value)
Definition StopAction.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream