AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotificationConfiguration.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_ELASTICACHE_API NotificationConfiguration() = default;
37 AWS_ELASTICACHE_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API NotificationConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
49 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
50 template<typename TopicArnT = Aws::String>
51 void SetTopicArn(TopicArnT&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::forward<TopicArnT>(value); }
52 template<typename TopicArnT = Aws::String>
53 NotificationConfiguration& WithTopicArn(TopicArnT&& value) { SetTopicArn(std::forward<TopicArnT>(value)); return *this;}
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) { m_topicStatusHasBeenSet = true; m_topicStatus = std::forward<TopicStatusT>(value); }
64 template<typename TopicStatusT = Aws::String>
65 NotificationConfiguration& WithTopicStatus(TopicStatusT&& value) { SetTopicStatus(std::forward<TopicStatusT>(value)); return *this;}
67 private:
68
69 Aws::String m_topicArn;
70 bool m_topicArnHasBeenSet = false;
71
72 Aws::String m_topicStatus;
73 bool m_topicStatusHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ElastiCache
78} // 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