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/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() = default;
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 template<typename SourceIdentifierT = Aws::String>
53 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
54 template<typename SourceIdentifierT = Aws::String>
55 Event& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
57
59
63 inline SourceType GetSourceType() const { return m_sourceType; }
64 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
65 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
66 inline Event& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
68
70
73 inline const Aws::String& GetMessage() const { return m_message; }
74 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
75 template<typename MessageT = Aws::String>
76 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
77 template<typename MessageT = Aws::String>
78 Event& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
86 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
87 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
88 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
89 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
90 Event& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
91 template<typename EventCategoriesT = Aws::String>
92 Event& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
94
96
99 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
100 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
101 template<typename DateT = Aws::Utils::DateTime>
102 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
103 template<typename DateT = Aws::Utils::DateTime>
104 Event& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
106 private:
107
108 Aws::String m_sourceIdentifier;
109 bool m_sourceIdentifierHasBeenSet = false;
110
111 SourceType m_sourceType{SourceType::NOT_SET};
112 bool m_sourceTypeHasBeenSet = false;
113
114 Aws::String m_message;
115 bool m_messageHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_eventCategories;
118 bool m_eventCategoriesHasBeenSet = false;
119
120 Aws::Utils::DateTime m_date{};
121 bool m_dateHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace DatabaseMigrationService
126} // namespace Aws
Event & WithMessage(MessageT &&value)
Definition Event.h:78
const Aws::Utils::DateTime & GetDate() const
Definition Event.h:99
const Aws::String & GetMessage() const
Definition Event.h:73
const Aws::String & GetSourceIdentifier() const
Definition Event.h:50
AWS_DATABASEMIGRATIONSERVICE_API Event()=default
void SetSourceType(SourceType value)
Definition Event.h:65
AWS_DATABASEMIGRATIONSERVICE_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithSourceType(SourceType value)
Definition Event.h:66
Event & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:55
Event & AddEventCategories(EventCategoriesT &&value)
Definition Event.h:92
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Event.h:53
void SetMessage(MessageT &&value)
Definition Event.h:76
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition Event.h:85
Event & WithEventCategories(EventCategoriesT &&value)
Definition Event.h:90
void SetEventCategories(EventCategoriesT &&value)
Definition Event.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue