AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutEventsRequestEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EventBridge {
22namespace Model {
23
30 public:
31 AWS_EVENTBRIDGE_API PutEventsRequestEntry() = default;
32 AWS_EVENTBRIDGE_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
45 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
46 template <typename TimeT = Aws::Utils::DateTime>
47 void SetTime(TimeT&& value) {
48 m_timeHasBeenSet = true;
49 m_time = std::forward<TimeT>(value);
50 }
51 template <typename TimeT = Aws::Utils::DateTime>
53 SetTime(std::forward<TimeT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetSource() const { return m_source; }
68 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
69 template <typename SourceT = Aws::String>
70 void SetSource(SourceT&& value) {
71 m_sourceHasBeenSet = true;
72 m_source = std::forward<SourceT>(value);
73 }
74 template <typename SourceT = Aws::String>
76 SetSource(std::forward<SourceT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
88 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
89 template <typename ResourcesT = Aws::Vector<Aws::String>>
90 void SetResources(ResourcesT&& value) {
91 m_resourcesHasBeenSet = true;
92 m_resources = std::forward<ResourcesT>(value);
93 }
94 template <typename ResourcesT = Aws::Vector<Aws::String>>
95 PutEventsRequestEntry& WithResources(ResourcesT&& value) {
96 SetResources(std::forward<ResourcesT>(value));
97 return *this;
98 }
99 template <typename ResourcesT = Aws::String>
100 PutEventsRequestEntry& AddResources(ResourcesT&& value) {
101 m_resourcesHasBeenSet = true;
102 m_resources.emplace_back(std::forward<ResourcesT>(value));
103 return *this;
104 }
106
108
117 inline const Aws::String& GetDetailType() const { return m_detailType; }
118 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
119 template <typename DetailTypeT = Aws::String>
120 void SetDetailType(DetailTypeT&& value) {
121 m_detailTypeHasBeenSet = true;
122 m_detailType = std::forward<DetailTypeT>(value);
123 }
124 template <typename DetailTypeT = Aws::String>
125 PutEventsRequestEntry& WithDetailType(DetailTypeT&& value) {
126 SetDetailType(std::forward<DetailTypeT>(value));
127 return *this;
128 }
130
132
141 inline const Aws::String& GetDetail() const { return m_detail; }
142 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
143 template <typename DetailT = Aws::String>
144 void SetDetail(DetailT&& value) {
145 m_detailHasBeenSet = true;
146 m_detail = std::forward<DetailT>(value);
147 }
148 template <typename DetailT = Aws::String>
150 SetDetail(std::forward<DetailT>(value));
151 return *this;
152 }
154
156
166 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
167 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
168 template <typename EventBusNameT = Aws::String>
169 void SetEventBusName(EventBusNameT&& value) {
170 m_eventBusNameHasBeenSet = true;
171 m_eventBusName = std::forward<EventBusNameT>(value);
172 }
173 template <typename EventBusNameT = Aws::String>
174 PutEventsRequestEntry& WithEventBusName(EventBusNameT&& value) {
175 SetEventBusName(std::forward<EventBusNameT>(value));
176 return *this;
177 }
179
181
188 inline const Aws::String& GetTraceHeader() const { return m_traceHeader; }
189 inline bool TraceHeaderHasBeenSet() const { return m_traceHeaderHasBeenSet; }
190 template <typename TraceHeaderT = Aws::String>
191 void SetTraceHeader(TraceHeaderT&& value) {
192 m_traceHeaderHasBeenSet = true;
193 m_traceHeader = std::forward<TraceHeaderT>(value);
194 }
195 template <typename TraceHeaderT = Aws::String>
196 PutEventsRequestEntry& WithTraceHeader(TraceHeaderT&& value) {
197 SetTraceHeader(std::forward<TraceHeaderT>(value));
198 return *this;
199 }
201 private:
202 Aws::Utils::DateTime m_time{};
203
204 Aws::String m_source;
205
206 Aws::Vector<Aws::String> m_resources;
207
208 Aws::String m_detailType;
209
210 Aws::String m_detail;
211
212 Aws::String m_eventBusName;
213
214 Aws::String m_traceHeader;
215 bool m_timeHasBeenSet = false;
216 bool m_sourceHasBeenSet = false;
217 bool m_resourcesHasBeenSet = false;
218 bool m_detailTypeHasBeenSet = false;
219 bool m_detailHasBeenSet = false;
220 bool m_eventBusNameHasBeenSet = false;
221 bool m_traceHeaderHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace EventBridge
226} // namespace Aws
const Aws::Utils::DateTime & GetTime() const
const Aws::String & GetTraceHeader() const
bool EventBusNameHasBeenSet() const
bool ResourcesHasBeenSet() const
bool TraceHeaderHasBeenSet() const
const Aws::String & GetEventBusName() const
const Aws::String & GetDetail() const
PutEventsRequestEntry & WithTime(TimeT &&value)
const Aws::String & GetSource() const
const Aws::Vector< Aws::String > & GetResources() const
void SetEventBusName(EventBusNameT &&value)
PutEventsRequestEntry & AddResources(ResourcesT &&value)
PutEventsRequestEntry & WithSource(SourceT &&value)
const Aws::String & GetDetailType() const
PutEventsRequestEntry & WithResources(ResourcesT &&value)
AWS_EVENTBRIDGE_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
PutEventsRequestEntry & WithEventBusName(EventBusNameT &&value)
PutEventsRequestEntry & WithDetail(DetailT &&value)
bool DetailHasBeenSet() const
PutEventsRequestEntry & WithDetailType(DetailTypeT &&value)
void SetSource(SourceT &&value)
bool DetailTypeHasBeenSet() const
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTime(TimeT &&value)
AWS_EVENTBRIDGE_API PutEventsRequestEntry()=default
PutEventsRequestEntry & WithTraceHeader(TraceHeaderT &&value)
void SetDetail(DetailT &&value)
void SetDetailType(DetailTypeT &&value)
void SetResources(ResourcesT &&value)
bool TimeHasBeenSet() const
AWS_EVENTBRIDGE_API PutEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTraceHeader(TraceHeaderT &&value)
bool SourceHasBeenSet() 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