AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
53 inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
54 inline PutEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
55 inline PutEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
57
59
67 inline const Aws::String& GetSource() const{ return m_source; }
68 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
69 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
70 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
71 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
72 inline PutEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
73 inline PutEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
74 inline PutEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
76
78
83 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
84 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
85 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
86 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
87 inline PutEventsRequestEntry& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
88 inline PutEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
89 inline PutEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
90 inline PutEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
91 inline PutEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
93
95
104 inline const Aws::String& GetDetailType() const{ return m_detailType; }
105 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
106 inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
107 inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
108 inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
109 inline PutEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
110 inline PutEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
111 inline PutEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
113
115
124 inline const Aws::String& GetDetail() const{ return m_detail; }
125 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
126 inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
127 inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
128 inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
129 inline PutEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
130 inline PutEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
131 inline PutEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
133
135
145 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
146 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
147 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
148 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
149 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
150 inline PutEventsRequestEntry& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
151 inline PutEventsRequestEntry& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
152 inline PutEventsRequestEntry& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
154
156
163 inline const Aws::String& GetTraceHeader() const{ return m_traceHeader; }
164 inline bool TraceHeaderHasBeenSet() const { return m_traceHeaderHasBeenSet; }
165 inline void SetTraceHeader(const Aws::String& value) { m_traceHeaderHasBeenSet = true; m_traceHeader = value; }
166 inline void SetTraceHeader(Aws::String&& value) { m_traceHeaderHasBeenSet = true; m_traceHeader = std::move(value); }
167 inline void SetTraceHeader(const char* value) { m_traceHeaderHasBeenSet = true; m_traceHeader.assign(value); }
168 inline PutEventsRequestEntry& WithTraceHeader(const Aws::String& value) { SetTraceHeader(value); return *this;}
169 inline PutEventsRequestEntry& WithTraceHeader(Aws::String&& value) { SetTraceHeader(std::move(value)); return *this;}
170 inline PutEventsRequestEntry& WithTraceHeader(const char* value) { SetTraceHeader(value); return *this;}
172 private:
173
175 bool m_timeHasBeenSet = false;
176
177 Aws::String m_source;
178 bool m_sourceHasBeenSet = false;
179
180 Aws::Vector<Aws::String> m_resources;
181 bool m_resourcesHasBeenSet = false;
182
183 Aws::String m_detailType;
184 bool m_detailTypeHasBeenSet = false;
185
186 Aws::String m_detail;
187 bool m_detailHasBeenSet = false;
188
189 Aws::String m_eventBusName;
190 bool m_eventBusNameHasBeenSet = false;
191
192 Aws::String m_traceHeader;
193 bool m_traceHeaderHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace EventBridge
198} // namespace Aws
const Aws::Utils::DateTime & GetTime() const
PutEventsRequestEntry & WithDetailType(Aws::String &&value)
PutEventsRequestEntry & WithDetailType(const Aws::String &value)
AWS_EVENTBRIDGE_API PutEventsRequestEntry()
const Aws::String & GetTraceHeader() const
bool EventBusNameHasBeenSet() const
PutEventsRequestEntry & AddResources(Aws::String &&value)
void SetSource(const Aws::String &value)
void SetTraceHeader(const char *value)
PutEventsRequestEntry & WithResources(Aws::Vector< Aws::String > &&value)
void SetDetailType(Aws::String &&value)
void SetDetailType(const char *value)
PutEventsRequestEntry & WithDetailType(const char *value)
void SetDetail(const char *value)
void SetTraceHeader(Aws::String &&value)
bool ResourcesHasBeenSet() const
PutEventsRequestEntry & WithSource(const Aws::String &value)
void SetTraceHeader(const Aws::String &value)
PutEventsRequestEntry & WithDetail(const char *value)
void SetDetail(Aws::String &&value)
bool TraceHeaderHasBeenSet() const
const Aws::String & GetEventBusName() const
PutEventsRequestEntry & WithSource(const char *value)
PutEventsRequestEntry & WithDetail(const Aws::String &value)
const Aws::String & GetDetail() const
PutEventsRequestEntry & WithTraceHeader(const Aws::String &value)
PutEventsRequestEntry & WithTraceHeader(const char *value)
void SetResources(const Aws::Vector< Aws::String > &value)
PutEventsRequestEntry & WithDetail(Aws::String &&value)
const Aws::String & GetSource() const
const Aws::Vector< Aws::String > & GetResources() const
PutEventsRequestEntry & WithTime(Aws::Utils::DateTime &&value)
const Aws::String & GetDetailType() const
PutEventsRequestEntry & AddResources(const Aws::String &value)
void SetEventBusName(Aws::String &&value)
AWS_EVENTBRIDGE_API PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue)
void SetTime(Aws::Utils::DateTime &&value)
bool DetailHasBeenSet() const
void SetSource(Aws::String &&value)
void SetDetailType(const Aws::String &value)
void SetResources(Aws::Vector< Aws::String > &&value)
PutEventsRequestEntry & WithSource(Aws::String &&value)
bool DetailTypeHasBeenSet() const
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
PutEventsRequestEntry & WithTraceHeader(Aws::String &&value)
PutEventsRequestEntry & WithEventBusName(const char *value)
void SetEventBusName(const Aws::String &value)
PutEventsRequestEntry & WithTime(const Aws::Utils::DateTime &value)
bool TimeHasBeenSet() const
AWS_EVENTBRIDGE_API PutEventsRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
PutEventsRequestEntry & WithEventBusName(Aws::String &&value)
PutEventsRequestEntry & WithEventBusName(const Aws::String &value)
PutEventsRequestEntry & WithResources(const Aws::Vector< Aws::String > &value)
void SetSource(const char *value)
PutEventsRequestEntry & AddResources(const char *value)
void SetEventBusName(const char *value)
void SetTime(const Aws::Utils::DateTime &value)
void SetDetail(const Aws::String &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