AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HTTPRequest.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/waf-regional/model/HTTPHeader.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 WAFRegional
24{
25namespace Model
26{
27
45 {
46 public:
47 AWS_WAFREGIONAL_API HTTPRequest() = default;
48 AWS_WAFREGIONAL_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFREGIONAL_API HTTPRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
62 inline const Aws::String& GetClientIP() const { return m_clientIP; }
63 inline bool ClientIPHasBeenSet() const { return m_clientIPHasBeenSet; }
64 template<typename ClientIPT = Aws::String>
65 void SetClientIP(ClientIPT&& value) { m_clientIPHasBeenSet = true; m_clientIP = std::forward<ClientIPT>(value); }
66 template<typename ClientIPT = Aws::String>
67 HTTPRequest& WithClientIP(ClientIPT&& value) { SetClientIP(std::forward<ClientIPT>(value)); return *this;}
69
71
77 inline const Aws::String& GetCountry() const { return m_country; }
78 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
79 template<typename CountryT = Aws::String>
80 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
81 template<typename CountryT = Aws::String>
82 HTTPRequest& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
84
86
90 inline const Aws::String& GetURI() const { return m_uRI; }
91 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
92 template<typename URIT = Aws::String>
93 void SetURI(URIT&& value) { m_uRIHasBeenSet = true; m_uRI = std::forward<URIT>(value); }
94 template<typename URIT = Aws::String>
95 HTTPRequest& WithURI(URIT&& value) { SetURI(std::forward<URIT>(value)); return *this;}
97
99
105 inline const Aws::String& GetMethod() const { return m_method; }
106 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
107 template<typename MethodT = Aws::String>
108 void SetMethod(MethodT&& value) { m_methodHasBeenSet = true; m_method = std::forward<MethodT>(value); }
109 template<typename MethodT = Aws::String>
110 HTTPRequest& WithMethod(MethodT&& value) { SetMethod(std::forward<MethodT>(value)); return *this;}
112
114
118 inline const Aws::String& GetHTTPVersion() const { return m_hTTPVersion; }
119 inline bool HTTPVersionHasBeenSet() const { return m_hTTPVersionHasBeenSet; }
120 template<typename HTTPVersionT = Aws::String>
121 void SetHTTPVersion(HTTPVersionT&& value) { m_hTTPVersionHasBeenSet = true; m_hTTPVersion = std::forward<HTTPVersionT>(value); }
122 template<typename HTTPVersionT = Aws::String>
123 HTTPRequest& WithHTTPVersion(HTTPVersionT&& value) { SetHTTPVersion(std::forward<HTTPVersionT>(value)); return *this;}
125
127
131 inline const Aws::Vector<HTTPHeader>& GetHeaders() const { return m_headers; }
132 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
133 template<typename HeadersT = Aws::Vector<HTTPHeader>>
134 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers = std::forward<HeadersT>(value); }
135 template<typename HeadersT = Aws::Vector<HTTPHeader>>
136 HTTPRequest& WithHeaders(HeadersT&& value) { SetHeaders(std::forward<HeadersT>(value)); return *this;}
137 template<typename HeadersT = HTTPHeader>
138 HTTPRequest& AddHeaders(HeadersT&& value) { m_headersHasBeenSet = true; m_headers.emplace_back(std::forward<HeadersT>(value)); return *this; }
140 private:
141
142 Aws::String m_clientIP;
143 bool m_clientIPHasBeenSet = false;
144
145 Aws::String m_country;
146 bool m_countryHasBeenSet = false;
147
148 Aws::String m_uRI;
149 bool m_uRIHasBeenSet = false;
150
151 Aws::String m_method;
152 bool m_methodHasBeenSet = false;
153
154 Aws::String m_hTTPVersion;
155 bool m_hTTPVersionHasBeenSet = false;
156
157 Aws::Vector<HTTPHeader> m_headers;
158 bool m_headersHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace WAFRegional
163} // namespace Aws
HTTPRequest & WithMethod(MethodT &&value)
void SetCountry(CountryT &&value)
Definition HTTPRequest.h:80
const Aws::String & GetMethod() const
HTTPRequest & AddHeaders(HeadersT &&value)
HTTPRequest & WithHeaders(HeadersT &&value)
HTTPRequest & WithURI(URIT &&value)
Definition HTTPRequest.h:95
void SetHeaders(HeadersT &&value)
AWS_WAFREGIONAL_API HTTPRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< HTTPHeader > & GetHeaders() const
AWS_WAFREGIONAL_API HTTPRequest()=default
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetClientIP() const
Definition HTTPRequest.h:62
HTTPRequest & WithHTTPVersion(HTTPVersionT &&value)
void SetHTTPVersion(HTTPVersionT &&value)
const Aws::String & GetHTTPVersion() const
HTTPRequest & WithClientIP(ClientIPT &&value)
Definition HTTPRequest.h:67
AWS_WAFREGIONAL_API HTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCountry() const
Definition HTTPRequest.h:77
const Aws::String & GetURI() const
Definition HTTPRequest.h:90
void SetClientIP(ClientIPT &&value)
Definition HTTPRequest.h:65
HTTPRequest & WithCountry(CountryT &&value)
Definition HTTPRequest.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue