AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RequestMetadata.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeguru-reviewer/model/EventInfo.h>
10#include <aws/codeguru-reviewer/model/VendorName.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 CodeGuruReviewer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUREVIEWER_API RequestMetadata();
38 AWS_CODEGURUREVIEWER_API RequestMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUREVIEWER_API RequestMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRequestId() const{ return m_requestId; }
48 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
49 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
50 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
51 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
52 inline RequestMetadata& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
53 inline RequestMetadata& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
54 inline RequestMetadata& WithRequestId(const char* value) { SetRequestId(value); return *this;}
56
58
63 inline const Aws::String& GetRequester() const{ return m_requester; }
64 inline bool RequesterHasBeenSet() const { return m_requesterHasBeenSet; }
65 inline void SetRequester(const Aws::String& value) { m_requesterHasBeenSet = true; m_requester = value; }
66 inline void SetRequester(Aws::String&& value) { m_requesterHasBeenSet = true; m_requester = std::move(value); }
67 inline void SetRequester(const char* value) { m_requesterHasBeenSet = true; m_requester.assign(value); }
68 inline RequestMetadata& WithRequester(const Aws::String& value) { SetRequester(value); return *this;}
69 inline RequestMetadata& WithRequester(Aws::String&& value) { SetRequester(std::move(value)); return *this;}
70 inline RequestMetadata& WithRequester(const char* value) { SetRequester(value); return *this;}
72
74
77 inline const EventInfo& GetEventInfo() const{ return m_eventInfo; }
78 inline bool EventInfoHasBeenSet() const { return m_eventInfoHasBeenSet; }
79 inline void SetEventInfo(const EventInfo& value) { m_eventInfoHasBeenSet = true; m_eventInfo = value; }
80 inline void SetEventInfo(EventInfo&& value) { m_eventInfoHasBeenSet = true; m_eventInfo = std::move(value); }
81 inline RequestMetadata& WithEventInfo(const EventInfo& value) { SetEventInfo(value); return *this;}
82 inline RequestMetadata& WithEventInfo(EventInfo&& value) { SetEventInfo(std::move(value)); return *this;}
84
86
95 inline const VendorName& GetVendorName() const{ return m_vendorName; }
96 inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; }
97 inline void SetVendorName(const VendorName& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; }
98 inline void SetVendorName(VendorName&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); }
99 inline RequestMetadata& WithVendorName(const VendorName& value) { SetVendorName(value); return *this;}
100 inline RequestMetadata& WithVendorName(VendorName&& value) { SetVendorName(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_requestId;
105 bool m_requestIdHasBeenSet = false;
106
107 Aws::String m_requester;
108 bool m_requesterHasBeenSet = false;
109
110 EventInfo m_eventInfo;
111 bool m_eventInfoHasBeenSet = false;
112
113 VendorName m_vendorName;
114 bool m_vendorNameHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CodeGuruReviewer
119} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue