AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RequestMetadata.h
Go to the documentation of this file.
1
6#pragma once
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 CodeGuruReviewer
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const Aws::String& GetRequestId() const{ return m_requestId; }
47
51 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
52
56 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
57
61 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
62
66 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
67
71 inline RequestMetadata& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
72
76 inline RequestMetadata& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
77
81 inline RequestMetadata& WithRequestId(const char* value) { SetRequestId(value); return *this;}
82
83
89 inline const Aws::String& GetRequester() const{ return m_requester; }
90
96 inline bool RequesterHasBeenSet() const { return m_requesterHasBeenSet; }
97
103 inline void SetRequester(const Aws::String& value) { m_requesterHasBeenSet = true; m_requester = value; }
104
110 inline void SetRequester(Aws::String&& value) { m_requesterHasBeenSet = true; m_requester = std::move(value); }
111
117 inline void SetRequester(const char* value) { m_requesterHasBeenSet = true; m_requester.assign(value); }
118
124 inline RequestMetadata& WithRequester(const Aws::String& value) { SetRequester(value); return *this;}
125
131 inline RequestMetadata& WithRequester(Aws::String&& value) { SetRequester(std::move(value)); return *this;}
132
138 inline RequestMetadata& WithRequester(const char* value) { SetRequester(value); return *this;}
139
140
144 inline const EventInfo& GetEventInfo() const{ return m_eventInfo; }
145
149 inline bool EventInfoHasBeenSet() const { return m_eventInfoHasBeenSet; }
150
154 inline void SetEventInfo(const EventInfo& value) { m_eventInfoHasBeenSet = true; m_eventInfo = value; }
155
159 inline void SetEventInfo(EventInfo&& value) { m_eventInfoHasBeenSet = true; m_eventInfo = std::move(value); }
160
164 inline RequestMetadata& WithEventInfo(const EventInfo& value) { SetEventInfo(value); return *this;}
165
169 inline RequestMetadata& WithEventInfo(EventInfo&& value) { SetEventInfo(std::move(value)); return *this;}
170
171
181 inline const VendorName& GetVendorName() const{ return m_vendorName; }
182
192 inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; }
193
203 inline void SetVendorName(const VendorName& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; }
204
214 inline void SetVendorName(VendorName&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); }
215
225 inline RequestMetadata& WithVendorName(const VendorName& value) { SetVendorName(value); return *this;}
226
236 inline RequestMetadata& WithVendorName(VendorName&& value) { SetVendorName(std::move(value)); return *this;}
237
238 private:
239
240 Aws::String m_requestId;
241 bool m_requestIdHasBeenSet = false;
242
243 Aws::String m_requester;
244 bool m_requesterHasBeenSet = false;
245
246 EventInfo m_eventInfo;
247 bool m_eventInfoHasBeenSet = false;
248
249 VendorName m_vendorName;
250 bool m_vendorNameHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace CodeGuruReviewer
255} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
void SetVendorName(const VendorName &value)
AWS_CODEGURUREVIEWER_API RequestMetadata()
RequestMetadata & WithRequester(const Aws::String &value)
RequestMetadata & WithRequestId(Aws::String &&value)
RequestMetadata & WithEventInfo(EventInfo &&value)
RequestMetadata & WithVendorName(const VendorName &value)
RequestMetadata & WithRequestId(const Aws::String &value)
RequestMetadata & WithVendorName(VendorName &&value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUREVIEWER_API RequestMetadata(Aws::Utils::Json::JsonView jsonValue)
RequestMetadata & WithEventInfo(const EventInfo &value)
RequestMetadata & WithRequester(const char *value)
AWS_CODEGURUREVIEWER_API RequestMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestMetadata & WithRequester(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetRequester(const Aws::String &value)
RequestMetadata & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String