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/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();
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 inline void SetSourceName(const Aws::String& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
52 inline void SetSourceName(Aws::String&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
53 inline void SetSourceName(const char* value) { m_sourceNameHasBeenSet = true; m_sourceName.assign(value); }
54 inline Event& WithSourceName(const Aws::String& value) { SetSourceName(value); return *this;}
55 inline Event& WithSourceName(Aws::String&& value) { SetSourceName(std::move(value)); return *this;}
56 inline Event& WithSourceName(const char* value) { SetSourceName(value); return *this;}
58
60
64 inline const SourceType& GetSourceType() const{ return m_sourceType; }
65 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
66 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
67 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
68 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
69 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetMessage() const{ return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
79 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
80 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
81 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
82 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
83 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
91 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
92 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
93 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
94 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
95 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_sourceName;
100 bool m_sourceNameHasBeenSet = false;
101
102 SourceType m_sourceType;
103 bool m_sourceTypeHasBeenSet = false;
104
105 Aws::String m_message;
106 bool m_messageHasBeenSet = false;
107
109 bool m_dateHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace DAX
114} // namespace Aws
Event & WithSourceType(SourceType &&value)
Definition Event.h:69
Event & WithMessage(const char *value)
Definition Event.h:83
Event & WithMessage(const Aws::String &value)
Definition Event.h:81
void SetMessage(const char *value)
Definition Event.h:80
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:95
void SetMessage(Aws::String &&value)
Definition Event.h:79
const Aws::String & GetMessage() const
Definition Event.h:76
void SetSourceName(const Aws::String &value)
Definition Event.h:51
bool SourceNameHasBeenSet() const
Definition Event.h:50
AWS_DAX_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourceType(const SourceType &value)
Definition Event.h:66
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:92
bool SourceTypeHasBeenSet() const
Definition Event.h:65
const SourceType & GetSourceType() const
Definition Event.h:64
void SetSourceName(const char *value)
Definition Event.h:53
const Aws::String & GetSourceName() const
Definition Event.h:49
void SetSourceType(SourceType &&value)
Definition Event.h:67
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
bool DateHasBeenSet() const
Definition Event.h:91
Event & WithSourceName(const Aws::String &value)
Definition Event.h:54
Event & WithMessage(Aws::String &&value)
Definition Event.h:82
Event & WithSourceName(const char *value)
Definition Event.h:56
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:90
void SetMessage(const Aws::String &value)
Definition Event.h:78
void SetSourceName(Aws::String &&value)
Definition Event.h:52
AWS_DAX_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:94
Event & WithSourceName(Aws::String &&value)
Definition Event.h:55
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:93
Event & WithSourceType(const SourceType &value)
Definition Event.h:68
bool MessageHasBeenSet() const
Definition Event.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue