AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dax/DAX_EXPORTS.h>
10#include <aws/dax/model/SourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DAX {
22namespace Model {
23
31class Event {
32 public:
33 AWS_DAX_API Event() = default;
34 AWS_DAX_API Event(Aws::Utils::Json::JsonView jsonValue);
37
39
43 inline const Aws::String& GetSourceName() const { return m_sourceName; }
44 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
45 template <typename SourceNameT = Aws::String>
46 void SetSourceName(SourceNameT&& value) {
47 m_sourceNameHasBeenSet = true;
48 m_sourceName = std::forward<SourceNameT>(value);
49 }
50 template <typename SourceNameT = Aws::String>
51 Event& WithSourceName(SourceNameT&& value) {
52 SetSourceName(std::forward<SourceNameT>(value));
53 return *this;
54 }
56
58
62 inline SourceType GetSourceType() const { return m_sourceType; }
63 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
64 inline void SetSourceType(SourceType value) {
65 m_sourceTypeHasBeenSet = true;
66 m_sourceType = value;
67 }
69 SetSourceType(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetMessage() const { return m_message; }
79 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
80 template <typename MessageT = Aws::String>
81 void SetMessage(MessageT&& value) {
82 m_messageHasBeenSet = true;
83 m_message = std::forward<MessageT>(value);
84 }
85 template <typename MessageT = Aws::String>
86 Event& WithMessage(MessageT&& value) {
87 SetMessage(std::forward<MessageT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
97 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
98 template <typename DateT = Aws::Utils::DateTime>
99 void SetDate(DateT&& value) {
100 m_dateHasBeenSet = true;
101 m_date = std::forward<DateT>(value);
102 }
103 template <typename DateT = Aws::Utils::DateTime>
104 Event& WithDate(DateT&& value) {
105 SetDate(std::forward<DateT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_sourceName;
111
112 SourceType m_sourceType{SourceType::NOT_SET};
113
114 Aws::String m_message;
115
116 Aws::Utils::DateTime m_date{};
117 bool m_sourceNameHasBeenSet = false;
118 bool m_sourceTypeHasBeenSet = false;
119 bool m_messageHasBeenSet = false;
120 bool m_dateHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace DAX
125} // namespace Aws
void SetSourceName(SourceNameT &&value)
Definition Event.h:46
Event & WithMessage(MessageT &&value)
Definition Event.h:86
Event & WithDate(DateT &&value)
Definition Event.h:104
const Aws::String & GetMessage() const
Definition Event.h:78
bool SourceNameHasBeenSet() const
Definition Event.h:44
AWS_DAX_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DAX_API Event()=default
void SetSourceType(SourceType value)
Definition Event.h:64
bool SourceTypeHasBeenSet() const
Definition Event.h:63
Event & WithSourceName(SourceNameT &&value)
Definition Event.h:51
const Aws::String & GetSourceName() const
Definition Event.h:43
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
bool DateHasBeenSet() const
Definition Event.h:97
void SetMessage(MessageT &&value)
Definition Event.h:81
SourceType GetSourceType() const
Definition Event.h:62
Event & WithSourceType(SourceType value)
Definition Event.h:68
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:96
AWS_DAX_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetDate(DateT &&value)
Definition Event.h:99
bool MessageHasBeenSet() const
Definition Event.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue