AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutEventsRequestEntry.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EVENTBRIDGE_API PutEventsRequestEntry() = default;
37 AWS_EVENTBRIDGE_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
51 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
52 template<typename TimeT = Aws::Utils::DateTime>
53 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
54 template<typename TimeT = Aws::Utils::DateTime>
55 PutEventsRequestEntry& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
71 template<typename SourceT = Aws::String>
72 PutEventsRequestEntry& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
74
76
81 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
82 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
83 template<typename ResourcesT = Aws::Vector<Aws::String>>
84 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
85 template<typename ResourcesT = Aws::Vector<Aws::String>>
86 PutEventsRequestEntry& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
87 template<typename ResourcesT = Aws::String>
88 PutEventsRequestEntry& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
90
92
101 inline const Aws::String& GetDetailType() const { return m_detailType; }
102 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
103 template<typename DetailTypeT = Aws::String>
104 void SetDetailType(DetailTypeT&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::forward<DetailTypeT>(value); }
105 template<typename DetailTypeT = Aws::String>
106 PutEventsRequestEntry& WithDetailType(DetailTypeT&& value) { SetDetailType(std::forward<DetailTypeT>(value)); return *this;}
108
110
119 inline const Aws::String& GetDetail() const { return m_detail; }
120 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
121 template<typename DetailT = Aws::String>
122 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
123 template<typename DetailT = Aws::String>
124 PutEventsRequestEntry& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
126
128
138 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
139 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
140 template<typename EventBusNameT = Aws::String>
141 void SetEventBusName(EventBusNameT&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::forward<EventBusNameT>(value); }
142 template<typename EventBusNameT = Aws::String>
143 PutEventsRequestEntry& WithEventBusName(EventBusNameT&& value) { SetEventBusName(std::forward<EventBusNameT>(value)); return *this;}
145
147
154 inline const Aws::String& GetTraceHeader() const { return m_traceHeader; }
155 inline bool TraceHeaderHasBeenSet() const { return m_traceHeaderHasBeenSet; }
156 template<typename TraceHeaderT = Aws::String>
157 void SetTraceHeader(TraceHeaderT&& value) { m_traceHeaderHasBeenSet = true; m_traceHeader = std::forward<TraceHeaderT>(value); }
158 template<typename TraceHeaderT = Aws::String>
159 PutEventsRequestEntry& WithTraceHeader(TraceHeaderT&& value) { SetTraceHeader(std::forward<TraceHeaderT>(value)); return *this;}
161 private:
162
163 Aws::Utils::DateTime m_time{};
164 bool m_timeHasBeenSet = false;
165
166 Aws::String m_source;
167 bool m_sourceHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_resources;
170 bool m_resourcesHasBeenSet = false;
171
172 Aws::String m_detailType;
173 bool m_detailTypeHasBeenSet = false;
174
175 Aws::String m_detail;
176 bool m_detailHasBeenSet = false;
177
178 Aws::String m_eventBusName;
179 bool m_eventBusNameHasBeenSet = false;
180
181 Aws::String m_traceHeader;
182 bool m_traceHeaderHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace EventBridge
187} // 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