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/dax/DAX_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dax/model/SourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DAX
24{
25namespace Model
26{
27
35 class Event
36 {
37 public:
38 AWS_DAX_API Event() = default;
39 AWS_DAX_API Event(Aws::Utils::Json::JsonView jsonValue);
42
43
45
49 inline const Aws::String& GetSourceName() const { return m_sourceName; }
50 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
51 template<typename SourceNameT = Aws::String>
52 void SetSourceName(SourceNameT&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::forward<SourceNameT>(value); }
53 template<typename SourceNameT = Aws::String>
54 Event& WithSourceName(SourceNameT&& value) { SetSourceName(std::forward<SourceNameT>(value)); return *this;}
56
58
62 inline SourceType GetSourceType() const { return m_sourceType; }
63 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
64 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
65 inline Event& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
67
69
72 inline const Aws::String& GetMessage() const { return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 template<typename MessageT = Aws::String>
75 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
76 template<typename MessageT = Aws::String>
77 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
85 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
86 template<typename DateT = Aws::Utils::DateTime>
87 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
88 template<typename DateT = Aws::Utils::DateTime>
89 Event& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
91 private:
92
93 Aws::String m_sourceName;
94 bool m_sourceNameHasBeenSet = false;
95
96 SourceType m_sourceType{SourceType::NOT_SET};
97 bool m_sourceTypeHasBeenSet = false;
98
99 Aws::String m_message;
100 bool m_messageHasBeenSet = false;
101
102 Aws::Utils::DateTime m_date{};
103 bool m_dateHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace DAX
108} // namespace Aws
void SetSourceName(SourceNameT &&value)
Definition Event.h:52
Event & WithMessage(MessageT &&value)
Definition Event.h:77
Event & WithDate(DateT &&value)
Definition Event.h:89
const Aws::String & GetMessage() const
Definition Event.h:72
bool SourceNameHasBeenSet() const
Definition Event.h:50
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:54
const Aws::String & GetSourceName() const
Definition Event.h:49
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
bool DateHasBeenSet() const
Definition Event.h:85
void SetMessage(MessageT &&value)
Definition Event.h:75
SourceType GetSourceType() const
Definition Event.h:62
Event & WithSourceType(SourceType value)
Definition Event.h:65
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:84
AWS_DAX_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetDate(DateT &&value)
Definition Event.h:87
bool MessageHasBeenSet() const
Definition Event.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue