AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHttpURL(const Aws::String& value) { m_httpURLHasBeenSet = true; m_httpURL = value; }
47 inline void SetHttpURL(Aws::String&& value) { m_httpURLHasBeenSet = true; m_httpURL = std::move(value); }
48 inline void SetHttpURL(const char* value) { m_httpURLHasBeenSet = true; m_httpURL.assign(value); }
49 inline Http& WithHttpURL(const Aws::String& value) { SetHttpURL(value); return *this;}
50 inline Http& WithHttpURL(Aws::String&& value) { SetHttpURL(std::move(value)); return *this;}
51 inline Http& WithHttpURL(const char* value) { SetHttpURL(value); return *this;}
53
55
58 inline int GetHttpStatus() const{ return m_httpStatus; }
59 inline bool HttpStatusHasBeenSet() const { return m_httpStatusHasBeenSet; }
60 inline void SetHttpStatus(int value) { m_httpStatusHasBeenSet = true; m_httpStatus = value; }
61 inline Http& WithHttpStatus(int value) { SetHttpStatus(value); return *this;}
63
65
68 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
69 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
70 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
71 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
72 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
73 inline Http& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
74 inline Http& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
75 inline Http& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
77
79
82 inline const Aws::String& GetUserAgent() const{ return m_userAgent; }
83 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
84 inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; }
85 inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); }
86 inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); }
87 inline Http& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;}
88 inline Http& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;}
89 inline Http& WithUserAgent(const char* value) { SetUserAgent(value); return *this;}
91
93
96 inline const Aws::String& GetClientIp() const{ return m_clientIp; }
97 inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
98 inline void SetClientIp(const Aws::String& value) { m_clientIpHasBeenSet = true; m_clientIp = value; }
99 inline void SetClientIp(Aws::String&& value) { m_clientIpHasBeenSet = true; m_clientIp = std::move(value); }
100 inline void SetClientIp(const char* value) { m_clientIpHasBeenSet = true; m_clientIp.assign(value); }
101 inline Http& WithClientIp(const Aws::String& value) { SetClientIp(value); return *this;}
102 inline Http& WithClientIp(Aws::String&& value) { SetClientIp(std::move(value)); return *this;}
103 inline Http& WithClientIp(const char* value) { SetClientIp(value); return *this;}
105 private:
106
107 Aws::String m_httpURL;
108 bool m_httpURLHasBeenSet = false;
109
110 int m_httpStatus;
111 bool m_httpStatusHasBeenSet = false;
112
113 Aws::String m_httpMethod;
114 bool m_httpMethodHasBeenSet = false;
115
116 Aws::String m_userAgent;
117 bool m_userAgentHasBeenSet = false;
118
119 Aws::String m_clientIp;
120 bool m_clientIpHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace XRay
125} // namespace Aws
void SetHttpMethod(const char *value)
Definition Http.h:72
void SetHttpURL(const Aws::String &value)
Definition Http.h:46
AWS_XRAY_API Http & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ClientIpHasBeenSet() const
Definition Http.h:97
bool HttpURLHasBeenSet() const
Definition Http.h:45
void SetClientIp(const char *value)
Definition Http.h:100
void SetHttpURL(Aws::String &&value)
Definition Http.h:47
void SetUserAgent(const Aws::String &value)
Definition Http.h:84
void SetClientIp(Aws::String &&value)
Definition Http.h:99
void SetHttpURL(const char *value)
Definition Http.h:48
void SetHttpMethod(Aws::String &&value)
Definition Http.h:71
Http & WithHttpStatus(int value)
Definition Http.h:61
const Aws::String & GetHttpMethod() const
Definition Http.h:68
Http & WithHttpURL(const char *value)
Definition Http.h:51
bool HttpStatusHasBeenSet() const
Definition Http.h:59
AWS_XRAY_API Http()
const Aws::String & GetHttpURL() const
Definition Http.h:44
Http & WithUserAgent(const Aws::String &value)
Definition Http.h:87
const Aws::String & GetUserAgent() const
Definition Http.h:82
void SetHttpStatus(int value)
Definition Http.h:60
void SetClientIp(const Aws::String &value)
Definition Http.h:98
void SetUserAgent(const char *value)
Definition Http.h:86
Http & WithHttpMethod(Aws::String &&value)
Definition Http.h:74
Http & WithClientIp(Aws::String &&value)
Definition Http.h:102
Http & WithClientIp(const Aws::String &value)
Definition Http.h:101
int GetHttpStatus() const
Definition Http.h:58
Http & WithUserAgent(Aws::String &&value)
Definition Http.h:88
Http & WithHttpURL(const Aws::String &value)
Definition Http.h:49
Http & WithHttpURL(Aws::String &&value)
Definition Http.h:50
Http & WithUserAgent(const char *value)
Definition Http.h:89
AWS_XRAY_API Http(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientIp() const
Definition Http.h:96
void SetUserAgent(Aws::String &&value)
Definition Http.h:85
bool HttpMethodHasBeenSet() const
Definition Http.h:69
void SetHttpMethod(const Aws::String &value)
Definition Http.h:70
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
bool UserAgentHasBeenSet() const
Definition Http.h:83
Http & WithHttpMethod(const Aws::String &value)
Definition Http.h:73
Http & WithClientIp(const char *value)
Definition Http.h:103
Http & WithHttpMethod(const char *value)
Definition Http.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue