AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Http.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/xray/XRay_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace XRay {
20namespace Model {
21
27class Http {
28 public:
29 AWS_XRAY_API Http() = default;
30 AWS_XRAY_API Http(Aws::Utils::Json::JsonView jsonValue);
31 AWS_XRAY_API Http& operator=(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetHttpURL() const { return m_httpURL; }
39 inline bool HttpURLHasBeenSet() const { return m_httpURLHasBeenSet; }
40 template <typename HttpURLT = Aws::String>
41 void SetHttpURL(HttpURLT&& value) {
42 m_httpURLHasBeenSet = true;
43 m_httpURL = std::forward<HttpURLT>(value);
44 }
45 template <typename HttpURLT = Aws::String>
46 Http& WithHttpURL(HttpURLT&& value) {
47 SetHttpURL(std::forward<HttpURLT>(value));
48 return *this;
49 }
51
53
56 inline int GetHttpStatus() const { return m_httpStatus; }
57 inline bool HttpStatusHasBeenSet() const { return m_httpStatusHasBeenSet; }
58 inline void SetHttpStatus(int value) {
59 m_httpStatusHasBeenSet = true;
60 m_httpStatus = value;
61 }
62 inline Http& WithHttpStatus(int value) {
63 SetHttpStatus(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
73 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
74 template <typename HttpMethodT = Aws::String>
75 void SetHttpMethod(HttpMethodT&& value) {
76 m_httpMethodHasBeenSet = true;
77 m_httpMethod = std::forward<HttpMethodT>(value);
78 }
79 template <typename HttpMethodT = Aws::String>
80 Http& WithHttpMethod(HttpMethodT&& value) {
81 SetHttpMethod(std::forward<HttpMethodT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
91 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
92 template <typename UserAgentT = Aws::String>
93 void SetUserAgent(UserAgentT&& value) {
94 m_userAgentHasBeenSet = true;
95 m_userAgent = std::forward<UserAgentT>(value);
96 }
97 template <typename UserAgentT = Aws::String>
98 Http& WithUserAgent(UserAgentT&& value) {
99 SetUserAgent(std::forward<UserAgentT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetClientIp() const { return m_clientIp; }
109 inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
110 template <typename ClientIpT = Aws::String>
111 void SetClientIp(ClientIpT&& value) {
112 m_clientIpHasBeenSet = true;
113 m_clientIp = std::forward<ClientIpT>(value);
114 }
115 template <typename ClientIpT = Aws::String>
116 Http& WithClientIp(ClientIpT&& value) {
117 SetClientIp(std::forward<ClientIpT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_httpURL;
123
124 int m_httpStatus{0};
125
126 Aws::String m_httpMethod;
127
128 Aws::String m_userAgent;
129
130 Aws::String m_clientIp;
131 bool m_httpURLHasBeenSet = false;
132 bool m_httpStatusHasBeenSet = false;
133 bool m_httpMethodHasBeenSet = false;
134 bool m_userAgentHasBeenSet = false;
135 bool m_clientIpHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace XRay
140} // namespace Aws
AWS_XRAY_API Http & operator=(Aws::Utils::Json::JsonView jsonValue)
Http & WithUserAgent(UserAgentT &&value)
Definition Http.h:98
bool ClientIpHasBeenSet() const
Definition Http.h:109
bool HttpURLHasBeenSet() const
Definition Http.h:39
void SetClientIp(ClientIpT &&value)
Definition Http.h:111
void SetUserAgent(UserAgentT &&value)
Definition Http.h:93
Http & WithHttpStatus(int value)
Definition Http.h:62
const Aws::String & GetHttpMethod() const
Definition Http.h:72
bool HttpStatusHasBeenSet() const
Definition Http.h:57
void SetHttpURL(HttpURLT &&value)
Definition Http.h:41
void SetHttpMethod(HttpMethodT &&value)
Definition Http.h:75
const Aws::String & GetHttpURL() const
Definition Http.h:38
const Aws::String & GetUserAgent() const
Definition Http.h:90
void SetHttpStatus(int value)
Definition Http.h:58
Http & WithHttpURL(HttpURLT &&value)
Definition Http.h:46
AWS_XRAY_API Http()=default
Http & WithHttpMethod(HttpMethodT &&value)
Definition Http.h:80
int GetHttpStatus() const
Definition Http.h:56
AWS_XRAY_API Http(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientIp() const
Definition Http.h:108
bool HttpMethodHasBeenSet() const
Definition Http.h:73
Http & WithClientIp(ClientIpT &&value)
Definition Http.h:116
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool UserAgentHasBeenSet() const
Definition Http.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue