AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/events/CloudWatchEvents_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchEvents {
22namespace Model {
23
30 public:
31 AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry() = default;
32 AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHEVENTS_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
62 inline const Aws::String& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 template <typename SourceT = Aws::String>
65 void SetSource(SourceT&& value) {
66 m_sourceHasBeenSet = true;
67 m_source = std::forward<SourceT>(value);
68 }
69 template <typename SourceT = Aws::String>
71 SetSource(std::forward<SourceT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
83 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
84 template <typename ResourcesT = Aws::Vector<Aws::String>>
85 void SetResources(ResourcesT&& value) {
86 m_resourcesHasBeenSet = true;
87 m_resources = std::forward<ResourcesT>(value);
88 }
89 template <typename ResourcesT = Aws::Vector<Aws::String>>
90 PutEventsRequestEntry& WithResources(ResourcesT&& value) {
91 SetResources(std::forward<ResourcesT>(value));
92 return *this;
93 }
94 template <typename ResourcesT = Aws::String>
95 PutEventsRequestEntry& AddResources(ResourcesT&& value) {
96 m_resourcesHasBeenSet = true;
97 m_resources.emplace_back(std::forward<ResourcesT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetDetailType() const { return m_detailType; }
108 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
109 template <typename DetailTypeT = Aws::String>
110 void SetDetailType(DetailTypeT&& value) {
111 m_detailTypeHasBeenSet = true;
112 m_detailType = std::forward<DetailTypeT>(value);
113 }
114 template <typename DetailTypeT = Aws::String>
115 PutEventsRequestEntry& WithDetailType(DetailTypeT&& value) {
116 SetDetailType(std::forward<DetailTypeT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetDetail() const { return m_detail; }
127 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
128 template <typename DetailT = Aws::String>
129 void SetDetail(DetailT&& value) {
130 m_detailHasBeenSet = true;
131 m_detail = std::forward<DetailT>(value);
132 }
133 template <typename DetailT = Aws::String>
135 SetDetail(std::forward<DetailT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
147 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
148 template <typename EventBusNameT = Aws::String>
149 void SetEventBusName(EventBusNameT&& value) {
150 m_eventBusNameHasBeenSet = true;
151 m_eventBusName = std::forward<EventBusNameT>(value);
152 }
153 template <typename EventBusNameT = Aws::String>
154 PutEventsRequestEntry& WithEventBusName(EventBusNameT&& value) {
155 SetEventBusName(std::forward<EventBusNameT>(value));
156 return *this;
157 }
159
161
168 inline const Aws::String& GetTraceHeader() const { return m_traceHeader; }
169 inline bool TraceHeaderHasBeenSet() const { return m_traceHeaderHasBeenSet; }
170 template <typename TraceHeaderT = Aws::String>
171 void SetTraceHeader(TraceHeaderT&& value) {
172 m_traceHeaderHasBeenSet = true;
173 m_traceHeader = std::forward<TraceHeaderT>(value);
174 }
175 template <typename TraceHeaderT = Aws::String>
176 PutEventsRequestEntry& WithTraceHeader(TraceHeaderT&& value) {
177 SetTraceHeader(std::forward<TraceHeaderT>(value));
178 return *this;
179 }
181 private:
182 Aws::Utils::DateTime m_time{};
183
184 Aws::String m_source;
185
186 Aws::Vector<Aws::String> m_resources;
187
188 Aws::String m_detailType;
189
190 Aws::String m_detail;
191
192 Aws::String m_eventBusName;
193
194 Aws::String m_traceHeader;
195 bool m_timeHasBeenSet = false;
196 bool m_sourceHasBeenSet = false;
197 bool m_resourcesHasBeenSet = false;
198 bool m_detailTypeHasBeenSet = false;
199 bool m_detailHasBeenSet = false;
200 bool m_eventBusNameHasBeenSet = false;
201 bool m_traceHeaderHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace CloudWatchEvents
206} // namespace Aws
PutEventsRequestEntry & AddResources(ResourcesT &&value)
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ResourcesHasBeenSet() const
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetail(DetailT &&value)
void SetSource(SourceT &&value)
bool TimeHasBeenSet() const
const Aws::String & GetSource() const
const Aws::String & GetEventBusName() const
PutEventsRequestEntry & WithTraceHeader(TraceHeaderT &&value)
PutEventsRequestEntry & WithTime(TimeT &&value)
const Aws::Utils::DateTime & GetTime() const
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
bool EventBusNameHasBeenSet() const
PutEventsRequestEntry & WithEventBusName(EventBusNameT &&value)
void SetResources(ResourcesT &&value)
PutEventsRequestEntry & WithResources(ResourcesT &&value)
void SetTraceHeader(TraceHeaderT &&value)
bool DetailTypeHasBeenSet() const
bool DetailHasBeenSet() const
const Aws::Vector< Aws::String > & GetResources() const
bool TraceHeaderHasBeenSet() const
AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry()=default
const Aws::String & GetDetail() const
bool SourceHasBeenSet() const
PutEventsRequestEntry & WithDetailType(DetailTypeT &&value)
void SetDetailType(DetailTypeT &&value)
void SetTime(TimeT &&value)
PutEventsRequestEntry & WithSource(SourceT &&value)
const Aws::String & GetDetailType() const
const Aws::String & GetTraceHeader() const
void SetEventBusName(EventBusNameT &&value)
PutEventsRequestEntry & WithDetail(DetailT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue