AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ResourceT = Aws::String>
49 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
50 template<typename ResourceT = Aws::String>
51 RelationalDatabaseEvent& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
62 template<typename CreatedAtT = Aws::Utils::DateTime>
63 RelationalDatabaseEvent& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
65
67
70 inline const Aws::String& GetMessage() const { return m_message; }
71 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 template<typename MessageT = Aws::String>
73 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
74 template<typename MessageT = Aws::String>
75 RelationalDatabaseEvent& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
83 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
84 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
85 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
86 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
87 RelationalDatabaseEvent& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
88 template<typename EventCategoriesT = Aws::String>
89 RelationalDatabaseEvent& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
91 private:
92
93 Aws::String m_resource;
94 bool m_resourceHasBeenSet = false;
95
96 Aws::Utils::DateTime m_createdAt{};
97 bool m_createdAtHasBeenSet = false;
98
99 Aws::String m_message;
100 bool m_messageHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_eventCategories;
103 bool m_eventCategoriesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Lightsail
108} // 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