AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RelationalDatabaseEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail {
22namespace Model {
23
30 public:
31 AWS_LIGHTSAIL_API RelationalDatabaseEvent() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetResource() const { return m_resource; }
41 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
42 template <typename ResourceT = Aws::String>
43 void SetResource(ResourceT&& value) {
44 m_resourceHasBeenSet = true;
45 m_resource = std::forward<ResourceT>(value);
46 }
47 template <typename ResourceT = Aws::String>
49 SetResource(std::forward<ResourceT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template <typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) {
80 m_messageHasBeenSet = true;
81 m_message = std::forward<MessageT>(value);
82 }
83 template <typename MessageT = Aws::String>
85 SetMessage(std::forward<MessageT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
95 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
96 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
97 void SetEventCategories(EventCategoriesT&& value) {
98 m_eventCategoriesHasBeenSet = true;
99 m_eventCategories = std::forward<EventCategoriesT>(value);
100 }
101 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
102 RelationalDatabaseEvent& WithEventCategories(EventCategoriesT&& value) {
103 SetEventCategories(std::forward<EventCategoriesT>(value));
104 return *this;
105 }
106 template <typename EventCategoriesT = Aws::String>
107 RelationalDatabaseEvent& AddEventCategories(EventCategoriesT&& value) {
108 m_eventCategoriesHasBeenSet = true;
109 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_resource;
115
116 Aws::Utils::DateTime m_createdAt{};
117
118 Aws::String m_message;
119
120 Aws::Vector<Aws::String> m_eventCategories;
121 bool m_resourceHasBeenSet = false;
122 bool m_createdAtHasBeenSet = false;
123 bool m_messageHasBeenSet = false;
124 bool m_eventCategoriesHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Lightsail
129} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Aws::String > & GetEventCategories() const
RelationalDatabaseEvent & WithEventCategories(EventCategoriesT &&value)
RelationalDatabaseEvent & WithCreatedAt(CreatedAtT &&value)
AWS_LIGHTSAIL_API RelationalDatabaseEvent()=default
RelationalDatabaseEvent & WithResource(ResourceT &&value)
AWS_LIGHTSAIL_API RelationalDatabaseEvent(Aws::Utils::Json::JsonView jsonValue)
RelationalDatabaseEvent & WithMessage(MessageT &&value)
AWS_LIGHTSAIL_API RelationalDatabaseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
RelationalDatabaseEvent & AddEventCategories(EventCategoriesT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue