AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
55 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
56 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
57 inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
58 inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
59 inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
61
63
67 inline const SourceType& GetSourceType() const{ return m_sourceType; }
68 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
69 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
70 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
71 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
72 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetMessage() const{ return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
82 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
83 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
84 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
85 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
94 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
95 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
96 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
97 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
98 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
100 private:
101
102 Aws::String m_sourceIdentifier;
103 bool m_sourceIdentifierHasBeenSet = false;
104
105 SourceType m_sourceType;
106 bool m_sourceTypeHasBeenSet = false;
107
108 Aws::String m_message;
109 bool m_messageHasBeenSet = false;
110
112 bool m_dateHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ElastiCache
117} // namespace Aws
void SetMessage(const Aws::String &value)
Definition Event.h:81
Event & WithSourceIdentifier(Aws::String &&value)
Definition Event.h:58
void SetMessage(const char *value)
Definition Event.h:83
Event & WithSourceIdentifier(const char *value)
Definition Event.h:59
void SetSourceIdentifier(const Aws::String &value)
Definition Event.h:54
AWS_ELASTICACHE_API Event & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceIdentifier(const char *value)
Definition Event.h:56
Event & WithSourceType(const SourceType &value)
Definition Event.h:71
bool DateHasBeenSet() const
Definition Event.h:94
const Aws::String & GetSourceIdentifier() const
Definition Event.h:52
bool SourceIdentifierHasBeenSet() const
Definition Event.h:53
bool MessageHasBeenSet() const
Definition Event.h:80
void SetMessage(Aws::String &&value)
Definition Event.h:82
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:95
const SourceType & GetSourceType() const
Definition Event.h:67
Event & WithMessage(const char *value)
Definition Event.h:86
Event & WithMessage(const Aws::String &value)
Definition Event.h:84
Event & WithSourceType(SourceType &&value)
Definition Event.h:72
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:93
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:96
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:98
bool SourceTypeHasBeenSet() const
Definition Event.h:68
Event & WithMessage(Aws::String &&value)
Definition Event.h:85
void SetSourceType(const SourceType &value)
Definition Event.h:69
AWS_ELASTICACHE_API Event()
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:97
Event & WithSourceIdentifier(const Aws::String &value)
Definition Event.h:57
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetMessage() const
Definition Event.h:79
AWS_ELASTICACHE_API Event(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceType(SourceType &&value)
Definition Event.h:70
void SetSourceIdentifier(Aws::String &&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