AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Http.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay
22{
23namespace Model
24{
25
31 class Http
32 {
33 public:
34 AWS_XRAY_API Http() = default;
35 AWS_XRAY_API Http(Aws::Utils::Json::JsonView jsonValue);
36 AWS_XRAY_API Http& operator=(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline const Aws::String& GetHttpURL() const { return m_httpURL; }
45 inline bool HttpURLHasBeenSet() const { return m_httpURLHasBeenSet; }
46 template<typename HttpURLT = Aws::String>
47 void SetHttpURL(HttpURLT&& value) { m_httpURLHasBeenSet = true; m_httpURL = std::forward<HttpURLT>(value); }
48 template<typename HttpURLT = Aws::String>
49 Http& WithHttpURL(HttpURLT&& value) { SetHttpURL(std::forward<HttpURLT>(value)); return *this;}
51
53
56 inline int GetHttpStatus() const { return m_httpStatus; }
57 inline bool HttpStatusHasBeenSet() const { return m_httpStatusHasBeenSet; }
58 inline void SetHttpStatus(int value) { m_httpStatusHasBeenSet = true; m_httpStatus = value; }
59 inline Http& WithHttpStatus(int value) { SetHttpStatus(value); return *this;}
61
63
66 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
67 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
68 template<typename HttpMethodT = Aws::String>
69 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
70 template<typename HttpMethodT = Aws::String>
71 Http& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
73
75
78 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
79 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
80 template<typename UserAgentT = Aws::String>
81 void SetUserAgent(UserAgentT&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::forward<UserAgentT>(value); }
82 template<typename UserAgentT = Aws::String>
83 Http& WithUserAgent(UserAgentT&& value) { SetUserAgent(std::forward<UserAgentT>(value)); return *this;}
85
87
90 inline const Aws::String& GetClientIp() const { return m_clientIp; }
91 inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
92 template<typename ClientIpT = Aws::String>
93 void SetClientIp(ClientIpT&& value) { m_clientIpHasBeenSet = true; m_clientIp = std::forward<ClientIpT>(value); }
94 template<typename ClientIpT = Aws::String>
95 Http& WithClientIp(ClientIpT&& value) { SetClientIp(std::forward<ClientIpT>(value)); return *this;}
97 private:
98
99 Aws::String m_httpURL;
100 bool m_httpURLHasBeenSet = false;
101
102 int m_httpStatus{0};
103 bool m_httpStatusHasBeenSet = false;
104
105 Aws::String m_httpMethod;
106 bool m_httpMethodHasBeenSet = false;
107
108 Aws::String m_userAgent;
109 bool m_userAgentHasBeenSet = false;
110
111 Aws::String m_clientIp;
112 bool m_clientIpHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace XRay
117} // namespace Aws
AWS_XRAY_API Http & operator=(Aws::Utils::Json::JsonView jsonValue)
Http & WithUserAgent(UserAgentT &&value)
Definition Http.h:83
bool ClientIpHasBeenSet() const
Definition Http.h:91
bool HttpURLHasBeenSet() const
Definition Http.h:45
void SetClientIp(ClientIpT &&value)
Definition Http.h:93
void SetUserAgent(UserAgentT &&value)
Definition Http.h:81
Http & WithHttpStatus(int value)
Definition Http.h:59
const Aws::String & GetHttpMethod() const
Definition Http.h:66
bool HttpStatusHasBeenSet() const
Definition Http.h:57
void SetHttpURL(HttpURLT &&value)
Definition Http.h:47
void SetHttpMethod(HttpMethodT &&value)
Definition Http.h:69
const Aws::String & GetHttpURL() const
Definition Http.h:44
const Aws::String & GetUserAgent() const
Definition Http.h:78
void SetHttpStatus(int value)
Definition Http.h:58
Http & WithHttpURL(HttpURLT &&value)
Definition Http.h:49
AWS_XRAY_API Http()=default
Http & WithHttpMethod(HttpMethodT &&value)
Definition Http.h:71
int GetHttpStatus() const
Definition Http.h:56
AWS_XRAY_API Http(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientIp() const
Definition Http.h:90
bool HttpMethodHasBeenSet() const
Definition Http.h:67
Http & WithClientIp(ClientIpT &&value)
Definition Http.h:95
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool UserAgentHasBeenSet() const
Definition Http.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue