AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/SourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache {
22namespace Model {
23
31class Event {
32 public:
33 AWS_ELASTICACHE_API Event() = default;
34 AWS_ELASTICACHE_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICACHE_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
46 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
47 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
48 template <typename SourceIdentifierT = Aws::String>
49 void SetSourceIdentifier(SourceIdentifierT&& value) {
50 m_sourceIdentifierHasBeenSet = true;
51 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
52 }
53 template <typename SourceIdentifierT = Aws::String>
54 Event& WithSourceIdentifier(SourceIdentifierT&& value) {
55 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
56 return *this;
57 }
59
61
65 inline SourceType GetSourceType() const { return m_sourceType; }
66 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
67 inline void SetSourceType(SourceType value) {
68 m_sourceTypeHasBeenSet = true;
69 m_sourceType = value;
70 }
72 SetSourceType(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetMessage() const { return m_message; }
82 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 template <typename MessageT = Aws::String>
84 void SetMessage(MessageT&& value) {
85 m_messageHasBeenSet = true;
86 m_message = std::forward<MessageT>(value);
87 }
88 template <typename MessageT = Aws::String>
89 Event& WithMessage(MessageT&& value) {
90 SetMessage(std::forward<MessageT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
100 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
101 template <typename DateT = Aws::Utils::DateTime>
102 void SetDate(DateT&& value) {
103 m_dateHasBeenSet = true;
104 m_date = std::forward<DateT>(value);
105 }
106 template <typename DateT = Aws::Utils::DateTime>
107 Event& WithDate(DateT&& value) {
108 SetDate(std::forward<DateT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_sourceIdentifier;
114
115 SourceType m_sourceType{SourceType::NOT_SET};
116
117 Aws::String m_message;
118
119 Aws::Utils::DateTime m_date{};
120 bool m_sourceIdentifierHasBeenSet = false;
121 bool m_sourceTypeHasBeenSet = false;
122 bool m_messageHasBeenSet = false;
123 bool m_dateHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ElastiCache
128} // namespace Aws
AWS_ELASTICACHE_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithDate(DateT &&value)
Definition Event.h:107
bool DateHasBeenSet() const
Definition Event.h:100
const Aws::String & GetSourceIdentifier() const
Definition Event.h:46
bool SourceIdentifierHasBeenSet() const
Definition Event.h:47
bool MessageHasBeenSet() const
Definition Event.h:82
SourceType GetSourceType() const
Definition Event.h:65
Event & WithMessage(MessageT &&value)
Definition Event.h:89
Event & WithSourceType(SourceType value)
Definition Event.h:71
Event & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:54
void SetSourceType(SourceType value)
Definition Event.h:67
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:99
bool SourceTypeHasBeenSet() const
Definition Event.h:66
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
void SetDate(DateT &&value)
Definition Event.h:102
const Aws::String & GetMessage() const
Definition Event.h:81
void SetMessage(MessageT &&value)
Definition Event.h:84
AWS_ELASTICACHE_API Event()=default
AWS_ELASTICACHE_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream