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/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dms/model/SourceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DatabaseMigrationService
25{
26namespace Model
27{
28
37 class Event
38 {
39 public:
40 AWS_DATABASEMIGRATIONSERVICE_API Event();
41 AWS_DATABASEMIGRATIONSERVICE_API Event(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATABASEMIGRATIONSERVICE_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
51 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
52 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
53 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
54 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
55 inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
56 inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
57 inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
59
61
65 inline const SourceType& GetSourceType() const{ return m_sourceType; }
66 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
67 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
68 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
69 inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
70 inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetMessage() const{ return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
80 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
81 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
82 inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
84 inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
86
88
91 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
92 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
93 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
94 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
95 inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
96 inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
97 inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
98 inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
99 inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
101
103
106 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
107 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
108 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
109 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
110 inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
111 inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_sourceIdentifier;
116 bool m_sourceIdentifierHasBeenSet = false;
117
118 SourceType m_sourceType;
119 bool m_sourceTypeHasBeenSet = false;
120
121 Aws::String m_message;
122 bool m_messageHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_eventCategories;
125 bool m_eventCategoriesHasBeenSet = false;
126
128 bool m_dateHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace DatabaseMigrationService
133} // namespace Aws
Event & WithSourceType(SourceType &&value)
Definition Event.h:70
Event & AddEventCategories(const Aws::String &value)
Definition Event.h:97
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:106
const Aws::String & GetMessage() const
Definition Event.h:77
void SetMessage(const Aws::String &value)
Definition Event.h:79
const Aws::String & GetSourceIdentifier() const
Definition Event.h:50
void SetMessage(const char *value)
Definition Event.h:81
void SetSourceType(SourceType &&value)
Definition Event.h:68
Event & WithDate(const Aws::Utils::DateTime &value)
Definition Event.h:110
AWS_DATABASEMIGRATIONSERVICE_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:93
Event & WithSourceType(const SourceType &value)
Definition Event.h:69
AWS_DATABASEMIGRATIONSERVICE_API Event(Aws::Utils::Json::JsonView jsonValue)
void SetDate(const Aws::Utils::DateTime &value)
Definition Event.h:108
Event & AddEventCategories(const char *value)
Definition Event.h:99
void SetSourceIdentifier(const char *value)
Definition Event.h:54
Event & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition Event.h:95
Event & WithDate(Aws::Utils::DateTime &&value)
Definition Event.h:111
Event & WithSourceIdentifier(Aws::String &&value)
Definition Event.h:56
AWS_DATABASEMIGRATIONSERVICE_API Event()
void SetDate(Aws::Utils::DateTime &&value)
Definition Event.h:109
Event & WithSourceIdentifier(const Aws::String &value)
Definition Event.h:55
Event & WithMessage(const Aws::String &value)
Definition Event.h:82
Event & WithMessage(const char *value)
Definition Event.h:84
void SetSourceType(const SourceType &value)
Definition Event.h:67
void SetSourceIdentifier(Aws::String &&value)
Definition Event.h:53
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:94
void SetMessage(Aws::String &&value)
Definition Event.h:80
const SourceType & GetSourceType() const
Definition Event.h:65
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:91
Event & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition Event.h:96
void SetSourceIdentifier(const Aws::String &value)
Definition Event.h:52
Event & WithMessage(Aws::String &&value)
Definition Event.h:83
Event & AddEventCategories(Aws::String &&value)
Definition Event.h:98
Event & WithSourceIdentifier(const char *value)
Definition Event.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue