AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceCollection(const ResourceCollection& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = value; }
54 inline void SetResourceCollection(ResourceCollection&& value) { m_resourceCollectionHasBeenSet = true; m_resourceCollection = std::move(value); }
55 inline Event& WithResourceCollection(const ResourceCollection& value) { SetResourceCollection(value); return *this;}
56 inline Event& WithResourceCollection(ResourceCollection&& value) { SetResourceCollection(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetId() const{ return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
66 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 inline Event& WithId(const Aws::String& value) { SetId(value); return *this;}
69 inline Event& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
70 inline Event& WithId(const char* value) { SetId(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
78 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
79 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
80 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
81 inline Event& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
82 inline Event& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetEventSource() const{ return m_eventSource; }
90 inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
91 inline void SetEventSource(const Aws::String& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
92 inline void SetEventSource(Aws::String&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::move(value); }
93 inline void SetEventSource(const char* value) { m_eventSourceHasBeenSet = true; m_eventSource.assign(value); }
94 inline Event& WithEventSource(const Aws::String& value) { SetEventSource(value); return *this;}
95 inline Event& WithEventSource(Aws::String&& value) { SetEventSource(std::move(value)); return *this;}
96 inline Event& WithEventSource(const char* value) { SetEventSource(value); return *this;}
98
100
103 inline const Aws::String& GetName() const{ return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
106 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
107 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 inline Event& WithName(const Aws::String& value) { SetName(value); return *this;}
109 inline Event& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
110 inline Event& WithName(const char* value) { SetName(value); return *this;}
112
114
118 inline const EventDataSource& GetDataSource() const{ return m_dataSource; }
119 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
120 inline void SetDataSource(const EventDataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
121 inline void SetDataSource(EventDataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
122 inline Event& WithDataSource(const EventDataSource& value) { SetDataSource(value); return *this;}
123 inline Event& WithDataSource(EventDataSource&& value) { SetDataSource(std::move(value)); return *this;}
125
127
131 inline const EventClass& GetEventClass() const{ return m_eventClass; }
132 inline bool EventClassHasBeenSet() const { return m_eventClassHasBeenSet; }
133 inline void SetEventClass(const EventClass& value) { m_eventClassHasBeenSet = true; m_eventClass = value; }
134 inline void SetEventClass(EventClass&& value) { m_eventClassHasBeenSet = true; m_eventClass = std::move(value); }
135 inline Event& WithEventClass(const EventClass& value) { SetEventClass(value); return *this;}
136 inline Event& WithEventClass(EventClass&& value) { SetEventClass(std::move(value)); return *this;}
138
140
144 inline const Aws::Vector<EventResource>& GetResources() const{ return m_resources; }
145 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
146 inline void SetResources(const Aws::Vector<EventResource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
147 inline void SetResources(Aws::Vector<EventResource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
148 inline Event& WithResources(const Aws::Vector<EventResource>& value) { SetResources(value); return *this;}
149 inline Event& WithResources(Aws::Vector<EventResource>&& value) { SetResources(std::move(value)); return *this;}
150 inline Event& AddResources(const EventResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
151 inline Event& AddResources(EventResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
153 private:
154
155 ResourceCollection m_resourceCollection;
156 bool m_resourceCollectionHasBeenSet = false;
157
158 Aws::String m_id;
159 bool m_idHasBeenSet = false;
160
162 bool m_timeHasBeenSet = false;
163
164 Aws::String m_eventSource;
165 bool m_eventSourceHasBeenSet = false;
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 EventDataSource m_dataSource;
171 bool m_dataSourceHasBeenSet = false;
172
173 EventClass m_eventClass;
174 bool m_eventClassHasBeenSet = false;
175
176 Aws::Vector<EventResource> m_resources;
177 bool m_resourcesHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace DevOpsGuru
182} // namespace Aws
Event & WithEventSource(const Aws::String &value)
Definition Event.h:94
bool NameHasBeenSet() const
Definition Event.h:104
void SetDataSource(const EventDataSource &value)
Definition Event.h:120
void SetDataSource(EventDataSource &&value)
Definition Event.h:121
void SetEventClass(EventClass &&value)
Definition Event.h:134
void SetId(Aws::String &&value)
Definition Event.h:66
Event & WithResources(Aws::Vector< EventResource > &&value)
Definition Event.h:149
void SetTime(const Aws::Utils::DateTime &value)
Definition Event.h:79
AWS_DEVOPSGURU_API Event(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
Definition Event.h:64
Event & WithResourceCollection(ResourceCollection &&value)
Definition Event.h:56
const ResourceCollection & GetResourceCollection() const
Definition Event.h:51
Event & WithName(Aws::String &&value)
Definition Event.h:109
void SetName(const Aws::String &value)
Definition Event.h:105
void SetResourceCollection(const ResourceCollection &value)
Definition Event.h:53
bool EventSourceHasBeenSet() const
Definition Event.h:90
Event & WithDataSource(const EventDataSource &value)
Definition Event.h:122
AWS_DEVOPSGURU_API Event()
bool ResourceCollectionHasBeenSet() const
Definition Event.h:52
void SetTime(Aws::Utils::DateTime &&value)
Definition Event.h:80
const EventDataSource & GetDataSource() const
Definition Event.h:118
Event & WithResourceCollection(const ResourceCollection &value)
Definition Event.h:55
const EventClass & GetEventClass() const
Definition Event.h:131
bool EventClassHasBeenSet() const
Definition Event.h:132
const Aws::String & GetName() const
Definition Event.h:103
Event & WithEventSource(const char *value)
Definition Event.h:96
Event & WithEventClass(EventClass &&value)
Definition Event.h:136
void SetEventSource(const char *value)
Definition Event.h:93
void SetEventClass(const EventClass &value)
Definition Event.h:133
const Aws::String & GetEventSource() const
Definition Event.h:89
void SetName(Aws::String &&value)
Definition Event.h:106
void SetEventSource(Aws::String &&value)
Definition Event.h:92
const Aws::Vector< EventResource > & GetResources() const
Definition Event.h:144
bool ResourcesHasBeenSet() const
Definition Event.h:145
AWS_DEVOPSGURU_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
Event & AddResources(EventResource &&value)
Definition Event.h:151
Event & WithId(const char *value)
Definition Event.h:70
Event & WithDataSource(EventDataSource &&value)
Definition Event.h:123
void SetResources(const Aws::Vector< EventResource > &value)
Definition Event.h:146
Event & AddResources(const EventResource &value)
Definition Event.h:150
bool TimeHasBeenSet() const
Definition Event.h:78
Event & WithTime(const Aws::Utils::DateTime &value)
Definition Event.h:81
Event & WithResources(const Aws::Vector< EventResource > &value)
Definition Event.h:148
bool DataSourceHasBeenSet() const
Definition Event.h:119
const Aws::Utils::DateTime & GetTime() const
Definition Event.h:77
Event & WithTime(Aws::Utils::DateTime &&value)
Definition Event.h:82
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResources(Aws::Vector< EventResource > &&value)
Definition Event.h:147
void SetId(const char *value)
Definition Event.h:67
Event & WithId(Aws::String &&value)
Definition Event.h:69
void SetEventSource(const Aws::String &value)
Definition Event.h:91
Event & WithEventClass(const EventClass &value)
Definition Event.h:135
Event & WithName(const Aws::String &value)
Definition Event.h:108
void SetName(const char *value)
Definition Event.h:107
Event & WithName(const char *value)
Definition Event.h:110
Event & WithEventSource(Aws::String &&value)
Definition Event.h:95
void SetId(const Aws::String &value)
Definition Event.h:65
Event & WithId(const Aws::String &value)
Definition Event.h:68
void SetResourceCollection(ResourceCollection &&value)
Definition Event.h:54
const Aws::String & GetId() const
Definition Event.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue