AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Event.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 <aws/elasticache/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
35 class Event
36 {
37 public:
38 AWS_ELASTICACHE_API Event() = default;
39 AWS_ELASTICACHE_API Event(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICACHE_API Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
52 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
53 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
54 template<typename SourceIdentifierT = Aws::String>
55 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
56 template<typename SourceIdentifierT = Aws::String>
57 Event& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
59
61
65 inline SourceType GetSourceType() const { return m_sourceType; }
66 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
67 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
68 inline Event& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
70
72
75 inline const Aws::String& GetMessage() const { return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 template<typename MessageT = Aws::String>
78 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
79 template<typename MessageT = Aws::String>
80 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
88 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
89 template<typename DateT = Aws::Utils::DateTime>
90 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
91 template<typename DateT = Aws::Utils::DateTime>
92 Event& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
94 private:
95
96 Aws::String m_sourceIdentifier;
97 bool m_sourceIdentifierHasBeenSet = false;
98
99 SourceType m_sourceType{SourceType::NOT_SET};
100 bool m_sourceTypeHasBeenSet = false;
101
102 Aws::String m_message;
103 bool m_messageHasBeenSet = false;
104
105 Aws::Utils::DateTime m_date{};
106 bool m_dateHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ElastiCache
111} // namespace Aws
AWS_ELASTICACHE_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Event & WithDate(DateT &&value)
Definition Event.h:92
bool DateHasBeenSet() const
Definition Event.h:88
const Aws::String & GetSourceIdentifier() const
Definition Event.h:52
bool SourceIdentifierHasBeenSet() const
Definition Event.h:53
bool MessageHasBeenSet() const
Definition Event.h:76
SourceType GetSourceType() const
Definition Event.h:65
Event & WithMessage(MessageT &&value)
Definition Event.h:80
Event & WithSourceType(SourceType value)
Definition Event.h:68
Event & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:57
void SetSourceType(SourceType value)
Definition Event.h:67
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:87
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:90
const Aws::String & GetMessage() const
Definition Event.h:75
void SetMessage(MessageT &&value)
Definition Event.h:78
AWS_ELASTICACHE_API Event()=default
AWS_ELASTICACHE_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream