AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
NotificationConfiguration.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/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElastiCache {
20namespace Model {
21
30 public:
31 AWS_ELASTICACHE_API NotificationConfiguration() = default;
32 AWS_ELASTICACHE_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICACHE_API NotificationConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
43 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
44 template <typename TopicArnT = Aws::String>
45 void SetTopicArn(TopicArnT&& value) {
46 m_topicArnHasBeenSet = true;
47 m_topicArn = std::forward<TopicArnT>(value);
48 }
49 template <typename TopicArnT = Aws::String>
51 SetTopicArn(std::forward<TopicArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTopicStatus() const { return m_topicStatus; }
61 inline bool TopicStatusHasBeenSet() const { return m_topicStatusHasBeenSet; }
62 template <typename TopicStatusT = Aws::String>
63 void SetTopicStatus(TopicStatusT&& value) {
64 m_topicStatusHasBeenSet = true;
65 m_topicStatus = std::forward<TopicStatusT>(value);
66 }
67 template <typename TopicStatusT = Aws::String>
69 SetTopicStatus(std::forward<TopicStatusT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_topicArn;
75
76 Aws::String m_topicStatus;
77 bool m_topicArnHasBeenSet = false;
78 bool m_topicStatusHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ElastiCache
83} // namespace Aws
NotificationConfiguration & WithTopicArn(TopicArnT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API NotificationConfiguration()=default
AWS_ELASTICACHE_API NotificationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NotificationConfiguration & WithTopicStatus(TopicStatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream