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>
43 AWS_DEVOPSGURU_API
Event() =
default;
53 template<
typename ResourceCollectionT = ResourceCollection>
54 void SetResourceCollection(ResourceCollectionT&& value) { m_resourceCollectionHasBeenSet =
true; m_resourceCollection = std::forward<ResourceCollectionT>(value); }
55 template<
typename ResourceCollectionT = ResourceCollection>
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>
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>
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>
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>
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>>
140 template<
typename ResourcesT = EventResource>
141 Event&
AddResources(ResourcesT&& value) { m_resourcesHasBeenSet =
true; m_resources.emplace_back(std::forward<ResourcesT>(value));
return *
this; }
146 bool m_resourceCollectionHasBeenSet =
false;
149 bool m_idHasBeenSet =
false;
152 bool m_timeHasBeenSet =
false;
155 bool m_eventSourceHasBeenSet =
false;
158 bool m_nameHasBeenSet =
false;
161 bool m_dataSourceHasBeenSet =
false;
164 bool m_eventClassHasBeenSet =
false;
167 bool m_resourcesHasBeenSet =
false;
void SetResourceCollection(ResourceCollectionT &&value)
EventClass GetEventClass() const
Event & WithResources(ResourcesT &&value)
void SetResources(ResourcesT &&value)
bool NameHasBeenSet() const
void SetEventSource(EventSourceT &&value)
AWS_DEVOPSGURU_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithDataSource(EventDataSource value)
bool IdHasBeenSet() const
Event & AddResources(ResourcesT &&value)
const ResourceCollection & GetResourceCollection() const
bool EventSourceHasBeenSet() const
bool ResourceCollectionHasBeenSet() const
Event & WithName(NameT &&value)
void SetName(NameT &&value)
void SetTime(TimeT &&value)
bool EventClassHasBeenSet() const
void SetDataSource(EventDataSource value)
const Aws::String & GetName() const
Event & WithEventClass(EventClass value)
const Aws::String & GetEventSource() const
const Aws::Vector< EventResource > & GetResources() const
bool ResourcesHasBeenSet() const
AWS_DEVOPSGURU_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API Event()=default
bool TimeHasBeenSet() const
Event & WithEventSource(EventSourceT &&value)
Event & WithTime(TimeT &&value)
bool DataSourceHasBeenSet() const
const Aws::Utils::DateTime & GetTime() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEventClass(EventClass value)
Event & WithResourceCollection(ResourceCollectionT &&value)
Event & WithId(IdT &&value)
EventDataSource GetDataSource() const
const Aws::String & GetId() 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