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/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/model/ResourceCollection.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/devops-guru/model/EventDataSource.h>
12#include <aws/devops-guru/model/EventClass.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/devops-guru/model/EventResource.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DevOpsGuru
28{
29namespace Model
30{
31
40 class Event
41 {
42 public:
43 AWS_DEVOPSGURU_API Event() = default;
44 AWS_DEVOPSGURU_API Event(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DEVOPSGURU_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
51 inline const ResourceCollection& GetResourceCollection() const { return m_resourceCollection; }
52 inline bool ResourceCollectionHasBeenSet() const { return m_resourceCollectionHasBeenSet; }
53 template<typename ResourceCollectionT = ResourceCollection>
54 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
55 template<typename ResourceCollectionT = ResourceCollection>
56 Event& WithResourceCollection(ResourceCollectionT&& value) { SetResourceCollection(std::forward<ResourceCollectionT>(value)); return *this;}
58
60
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template<typename IdT = Aws::String>
66 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
67 template<typename IdT = Aws::String>
68 Event& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
76 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
77 template<typename TimeT = Aws::Utils::DateTime>
78 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
79 template<typename TimeT = Aws::Utils::DateTime>
80 Event& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
82
84
87 inline const Aws::String& GetEventSource() const { return m_eventSource; }
88 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
89 template<typename EventSourceT = Aws::String>
90 void SetEventSource(EventSourceT&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::forward<EventSourceT>(value); }
91 template<typename EventSourceT = Aws::String>
92 Event& WithEventSource(EventSourceT&& value) { SetEventSource(std::forward<EventSourceT>(value)); return *this;}
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template<typename NameT = Aws::String>
102 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
103 template<typename NameT = Aws::String>
104 Event& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
106
108
112 inline EventDataSource GetDataSource() const { return m_dataSource; }
113 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
114 inline void SetDataSource(EventDataSource value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
115 inline Event& WithDataSource(EventDataSource value) { SetDataSource(value); return *this;}
117
119
123 inline EventClass GetEventClass() const { return m_eventClass; }
124 inline bool EventClassHasBeenSet() const { return m_eventClassHasBeenSet; }
125 inline void SetEventClass(EventClass value) { m_eventClassHasBeenSet = true; m_eventClass = value; }
126 inline Event& WithEventClass(EventClass value) { SetEventClass(value); return *this;}
128
130
134 inline const Aws::Vector<EventResource>& GetResources() const { return m_resources; }
135 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
136 template<typename ResourcesT = Aws::Vector<EventResource>>
137 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
138 template<typename ResourcesT = Aws::Vector<EventResource>>
139 Event& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
140 template<typename ResourcesT = EventResource>
141 Event& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
143 private:
144
145 ResourceCollection m_resourceCollection;
146 bool m_resourceCollectionHasBeenSet = false;
147
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 Aws::Utils::DateTime m_time{};
152 bool m_timeHasBeenSet = false;
153
154 Aws::String m_eventSource;
155 bool m_eventSourceHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
161 bool m_dataSourceHasBeenSet = false;
162
163 EventClass m_eventClass{EventClass::NOT_SET};
164 bool m_eventClassHasBeenSet = false;
165
166 Aws::Vector<EventResource> m_resources;
167 bool m_resourcesHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace DevOpsGuru
172} // namespace Aws
void SetResourceCollection(ResourceCollectionT &&value)
Definition Event.h:54
EventClass GetEventClass() const
Definition Event.h:123
Event & WithResources(ResourcesT &&value)
Definition Event.h:139
void SetResources(ResourcesT &&value)
Definition Event.h:137
bool NameHasBeenSet() const
Definition Event.h:100
void SetEventSource(EventSourceT &&value)
Definition Event.h:90
AWS_DEVOPSGURU_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithDataSource(EventDataSource value)
Definition Event.h:115
bool IdHasBeenSet() const
Definition Event.h:64
Event & AddResources(ResourcesT &&value)
Definition Event.h:141
const ResourceCollection & GetResourceCollection() const
Definition Event.h:51
bool EventSourceHasBeenSet() const
Definition Event.h:88
bool ResourceCollectionHasBeenSet() const
Definition Event.h:52
Event & WithName(NameT &&value)
Definition Event.h:104
void SetName(NameT &&value)
Definition Event.h:102
void SetTime(TimeT &&value)
Definition Event.h:78
bool EventClassHasBeenSet() const
Definition Event.h:124
void SetDataSource(EventDataSource value)
Definition Event.h:114
const Aws::String & GetName() const
Definition Event.h:99
Event & WithEventClass(EventClass value)
Definition Event.h:126
const Aws::String & GetEventSource() const
Definition Event.h:87
const Aws::Vector< EventResource > & GetResources() const
Definition Event.h:134
bool ResourcesHasBeenSet() const
Definition Event.h:135
AWS_DEVOPSGURU_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API Event()=default
bool TimeHasBeenSet() const
Definition Event.h:76
Event & WithEventSource(EventSourceT &&value)
Definition Event.h:92
Event & WithTime(TimeT &&value)
Definition Event.h:80
bool DataSourceHasBeenSet() const
Definition Event.h:113
const Aws::Utils::DateTime & GetTime() const
Definition Event.h:75
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventClass(EventClass value)
Definition Event.h:125
Event & WithResourceCollection(ResourceCollectionT &&value)
Definition Event.h:56
Event & WithId(IdT &&value)
Definition Event.h:68
EventDataSource GetDataSource() const
Definition Event.h:112
const Aws::String & GetId() const
Definition Event.h:63
void SetId(IdT &&value)
Definition Event.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue