AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RelationalDatabaseEvent.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 Lightsail
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LIGHTSAIL_API RelationalDatabaseEvent();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetResource() const{ return m_resource; }
47 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
48 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
49 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
50 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
51 inline RelationalDatabaseEvent& WithResource(const Aws::String& value) { SetResource(value); return *this;}
52 inline RelationalDatabaseEvent& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
53 inline RelationalDatabaseEvent& WithResource(const char* value) { SetResource(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
63 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
64 inline RelationalDatabaseEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
65 inline RelationalDatabaseEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline RelationalDatabaseEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline RelationalDatabaseEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline RelationalDatabaseEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
81
83
86 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
87 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
88 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
89 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
92 inline RelationalDatabaseEvent& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
93 inline RelationalDatabaseEvent& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
94 inline RelationalDatabaseEvent& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
96 private:
97
98 Aws::String m_resource;
99 bool m_resourceHasBeenSet = false;
100
101 Aws::Utils::DateTime m_createdAt;
102 bool m_createdAtHasBeenSet = false;
103
104 Aws::String m_message;
105 bool m_messageHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_eventCategories;
108 bool m_eventCategoriesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Lightsail
113} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
void SetEventCategories(const Aws::Vector< Aws::String > &value)
RelationalDatabaseEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
RelationalDatabaseEvent & WithMessage(Aws::String &&value)
RelationalDatabaseEvent & WithResource(const char *value)
RelationalDatabaseEvent & AddEventCategories(const Aws::String &value)
AWS_LIGHTSAIL_API RelationalDatabaseEvent(Aws::Utils::Json::JsonView jsonValue)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
RelationalDatabaseEvent & WithResource(Aws::String &&value)
RelationalDatabaseEvent & WithEventCategories(const Aws::Vector< Aws::String > &value)
RelationalDatabaseEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API RelationalDatabaseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
RelationalDatabaseEvent & WithResource(const Aws::String &value)
RelationalDatabaseEvent & WithMessage(const Aws::String &value)
RelationalDatabaseEvent & AddEventCategories(const char *value)
RelationalDatabaseEvent & AddEventCategories(Aws::String &&value)
RelationalDatabaseEvent & WithMessage(const char *value)
RelationalDatabaseEvent & WithEventCategories(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue