AWS SDK for C++  1.9.16
AWS SDK for C++
RelationalDatabaseEvent.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetResource() const{ return m_resource; }
46 
50  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
51 
55  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
56 
60  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
61 
65  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
66 
70  inline RelationalDatabaseEvent& WithResource(const Aws::String& value) { SetResource(value); return *this;}
71 
75  inline RelationalDatabaseEvent& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
76 
80  inline RelationalDatabaseEvent& WithResource(const char* value) { SetResource(value); return *this;}
81 
82 
86  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
87 
91  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 
96  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
97 
101  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
102 
106  inline RelationalDatabaseEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
107 
111  inline RelationalDatabaseEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetMessage() const{ return m_message; }
118 
122  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
123 
127  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
128 
132  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
133 
137  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
138 
142  inline RelationalDatabaseEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
143 
147  inline RelationalDatabaseEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
148 
152  inline RelationalDatabaseEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
153 
154 
158  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
159 
163  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
164 
168  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
169 
173  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
174 
178  inline RelationalDatabaseEvent& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
179 
183  inline RelationalDatabaseEvent& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
184 
188  inline RelationalDatabaseEvent& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
189 
193  inline RelationalDatabaseEvent& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
194 
198  inline RelationalDatabaseEvent& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
199 
200  private:
201 
202  Aws::String m_resource;
203  bool m_resourceHasBeenSet;
204 
205  Aws::Utils::DateTime m_createdAt;
206  bool m_createdAtHasBeenSet;
207 
208  Aws::String m_message;
209  bool m_messageHasBeenSet;
210 
211  Aws::Vector<Aws::String> m_eventCategories;
212  bool m_eventCategoriesHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace Lightsail
217 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::RelationalDatabaseEvent::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: RelationalDatabaseEvent.h:50
Aws::Lightsail::Model::RelationalDatabaseEvent::SetResource
void SetResource(const char *value)
Definition: RelationalDatabaseEvent.h:65
Aws::Lightsail::Model::RelationalDatabaseEvent::SetResource
void SetResource(const Aws::String &value)
Definition: RelationalDatabaseEvent.h:55
Aws::Lightsail::Model::RelationalDatabaseEvent::GetResource
const Aws::String & GetResource() const
Definition: RelationalDatabaseEvent.h:45
Aws::Lightsail::Model::RelationalDatabaseEvent::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: RelationalDatabaseEvent.h:168
Aws::Lightsail::Model::RelationalDatabaseEvent::RelationalDatabaseEvent
RelationalDatabaseEvent()
Aws::Lightsail::Model::RelationalDatabaseEvent::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: RelationalDatabaseEvent.h:122
DateTime.h
Aws::Lightsail::Model::RelationalDatabaseEvent::RelationalDatabaseEvent
RelationalDatabaseEvent(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::RelationalDatabaseEvent::AddEventCategories
RelationalDatabaseEvent & AddEventCategories(const char *value)
Definition: RelationalDatabaseEvent.h:198
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::RelationalDatabaseEvent::WithMessage
RelationalDatabaseEvent & WithMessage(Aws::String &&value)
Definition: RelationalDatabaseEvent.h:147
Aws::Lightsail::Model::RelationalDatabaseEvent::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: RelationalDatabaseEvent.h:163
Aws::Lightsail::Model::RelationalDatabaseEvent::WithMessage
RelationalDatabaseEvent & WithMessage(const char *value)
Definition: RelationalDatabaseEvent.h:152
Aws::Lightsail::Model::RelationalDatabaseEvent::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: RelationalDatabaseEvent.h:96
Aws::Lightsail::Model::RelationalDatabaseEvent::GetMessage
const Aws::String & GetMessage() const
Definition: RelationalDatabaseEvent.h:117
Aws::Lightsail::Model::RelationalDatabaseEvent::AddEventCategories
RelationalDatabaseEvent & AddEventCategories(const Aws::String &value)
Definition: RelationalDatabaseEvent.h:188
Aws::Lightsail::Model::RelationalDatabaseEvent::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: RelationalDatabaseEvent.h:86
Aws::Lightsail::Model::RelationalDatabaseEvent::WithResource
RelationalDatabaseEvent & WithResource(const char *value)
Definition: RelationalDatabaseEvent.h:80
Aws::Lightsail::Model::RelationalDatabaseEvent::WithEventCategories
RelationalDatabaseEvent & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: RelationalDatabaseEvent.h:178
Aws::Lightsail::Model::RelationalDatabaseEvent::SetMessage
void SetMessage(const Aws::String &value)
Definition: RelationalDatabaseEvent.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::RelationalDatabaseEvent::SetMessage
void SetMessage(Aws::String &&value)
Definition: RelationalDatabaseEvent.h:132
Aws::Lightsail::Model::RelationalDatabaseEvent::WithCreatedAt
RelationalDatabaseEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: RelationalDatabaseEvent.h:111
Aws::Lightsail::Model::RelationalDatabaseEvent::WithEventCategories
RelationalDatabaseEvent & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: RelationalDatabaseEvent.h:183
Lightsail_EXPORTS.h
Aws::Lightsail::Model::RelationalDatabaseEvent::WithResource
RelationalDatabaseEvent & WithResource(Aws::String &&value)
Definition: RelationalDatabaseEvent.h:75
Aws::Lightsail::Model::RelationalDatabaseEvent::AddEventCategories
RelationalDatabaseEvent & AddEventCategories(Aws::String &&value)
Definition: RelationalDatabaseEvent.h:193
Aws::Lightsail::Model::RelationalDatabaseEvent::SetResource
void SetResource(Aws::String &&value)
Definition: RelationalDatabaseEvent.h:60
Aws::Lightsail::Model::RelationalDatabaseEvent::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: RelationalDatabaseEvent.h:173
Aws::Lightsail::Model::RelationalDatabaseEvent::WithResource
RelationalDatabaseEvent & WithResource(const Aws::String &value)
Definition: RelationalDatabaseEvent.h:70
Aws::Lightsail::Model::RelationalDatabaseEvent::WithMessage
RelationalDatabaseEvent & WithMessage(const Aws::String &value)
Definition: RelationalDatabaseEvent.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::RelationalDatabaseEvent
Definition: RelationalDatabaseEvent.h:34
Aws::Lightsail::Model::RelationalDatabaseEvent::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: RelationalDatabaseEvent.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::RelationalDatabaseEvent::SetMessage
void SetMessage(const char *value)
Definition: RelationalDatabaseEvent.h:137
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::RelationalDatabaseEvent::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: RelationalDatabaseEvent.h:101
Aws::Lightsail::Model::RelationalDatabaseEvent::operator=
RelationalDatabaseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::RelationalDatabaseEvent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::RelationalDatabaseEvent::WithCreatedAt
RelationalDatabaseEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: RelationalDatabaseEvent.h:106
Aws::Lightsail::Model::RelationalDatabaseEvent::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: RelationalDatabaseEvent.h:158