AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SampledHTTPRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/HTTPRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/wafv2/model/CaptchaResponse.h>
13#include <aws/wafv2/model/ChallengeResponse.h>
14#include <aws/wafv2/model/HTTPHeader.h>
15#include <aws/wafv2/model/Label.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace WAFV2
29{
30namespace Model
31{
32
43 {
44 public:
45 AWS_WAFV2_API SampledHTTPRequest();
48 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const HTTPRequest& GetRequest() const{ return m_request; }
56 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
57 inline void SetRequest(const HTTPRequest& value) { m_requestHasBeenSet = true; m_request = value; }
58 inline void SetRequest(HTTPRequest&& value) { m_requestHasBeenSet = true; m_request = std::move(value); }
59 inline SampledHTTPRequest& WithRequest(const HTTPRequest& value) { SetRequest(value); return *this;}
60 inline SampledHTTPRequest& WithRequest(HTTPRequest&& value) { SetRequest(std::move(value)); return *this;}
62
64
70 inline long long GetWeight() const{ return m_weight; }
71 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
72 inline void SetWeight(long long value) { m_weightHasBeenSet = true; m_weight = value; }
73 inline SampledHTTPRequest& WithWeight(long long value) { SetWeight(value); return *this;}
75
77
81 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
82 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
83 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
84 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
85 inline SampledHTTPRequest& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
86 inline SampledHTTPRequest& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
88
90
93 inline const Aws::String& GetAction() const{ return m_action; }
94 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
95 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
96 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
97 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
98 inline SampledHTTPRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
99 inline SampledHTTPRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
100 inline SampledHTTPRequest& WithAction(const char* value) { SetAction(value); return *this;}
102
104
111 inline const Aws::String& GetRuleNameWithinRuleGroup() const{ return m_ruleNameWithinRuleGroup; }
112 inline bool RuleNameWithinRuleGroupHasBeenSet() const { return m_ruleNameWithinRuleGroupHasBeenSet; }
113 inline void SetRuleNameWithinRuleGroup(const Aws::String& value) { m_ruleNameWithinRuleGroupHasBeenSet = true; m_ruleNameWithinRuleGroup = value; }
114 inline void SetRuleNameWithinRuleGroup(Aws::String&& value) { m_ruleNameWithinRuleGroupHasBeenSet = true; m_ruleNameWithinRuleGroup = std::move(value); }
115 inline void SetRuleNameWithinRuleGroup(const char* value) { m_ruleNameWithinRuleGroupHasBeenSet = true; m_ruleNameWithinRuleGroup.assign(value); }
118 inline SampledHTTPRequest& WithRuleNameWithinRuleGroup(const char* value) { SetRuleNameWithinRuleGroup(value); return *this;}
120
122
126 inline const Aws::Vector<HTTPHeader>& GetRequestHeadersInserted() const{ return m_requestHeadersInserted; }
127 inline bool RequestHeadersInsertedHasBeenSet() const { return m_requestHeadersInsertedHasBeenSet; }
128 inline void SetRequestHeadersInserted(const Aws::Vector<HTTPHeader>& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted = value; }
129 inline void SetRequestHeadersInserted(Aws::Vector<HTTPHeader>&& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted = std::move(value); }
132 inline SampledHTTPRequest& AddRequestHeadersInserted(const HTTPHeader& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted.push_back(value); return *this; }
133 inline SampledHTTPRequest& AddRequestHeadersInserted(HTTPHeader&& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted.push_back(std::move(value)); return *this; }
135
137
140 inline int GetResponseCodeSent() const{ return m_responseCodeSent; }
141 inline bool ResponseCodeSentHasBeenSet() const { return m_responseCodeSentHasBeenSet; }
142 inline void SetResponseCodeSent(int value) { m_responseCodeSentHasBeenSet = true; m_responseCodeSent = value; }
143 inline SampledHTTPRequest& WithResponseCodeSent(int value) { SetResponseCodeSent(value); return *this;}
145
147
155 inline const Aws::Vector<Label>& GetLabels() const{ return m_labels; }
156 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
157 inline void SetLabels(const Aws::Vector<Label>& value) { m_labelsHasBeenSet = true; m_labels = value; }
158 inline void SetLabels(Aws::Vector<Label>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
159 inline SampledHTTPRequest& WithLabels(const Aws::Vector<Label>& value) { SetLabels(value); return *this;}
160 inline SampledHTTPRequest& WithLabels(Aws::Vector<Label>&& value) { SetLabels(std::move(value)); return *this;}
161 inline SampledHTTPRequest& AddLabels(const Label& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
162 inline SampledHTTPRequest& AddLabels(Label&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
164
166
169 inline const CaptchaResponse& GetCaptchaResponse() const{ return m_captchaResponse; }
170 inline bool CaptchaResponseHasBeenSet() const { return m_captchaResponseHasBeenSet; }
171 inline void SetCaptchaResponse(const CaptchaResponse& value) { m_captchaResponseHasBeenSet = true; m_captchaResponse = value; }
172 inline void SetCaptchaResponse(CaptchaResponse&& value) { m_captchaResponseHasBeenSet = true; m_captchaResponse = std::move(value); }
173 inline SampledHTTPRequest& WithCaptchaResponse(const CaptchaResponse& value) { SetCaptchaResponse(value); return *this;}
174 inline SampledHTTPRequest& WithCaptchaResponse(CaptchaResponse&& value) { SetCaptchaResponse(std::move(value)); return *this;}
176
178
181 inline const ChallengeResponse& GetChallengeResponse() const{ return m_challengeResponse; }
182 inline bool ChallengeResponseHasBeenSet() const { return m_challengeResponseHasBeenSet; }
183 inline void SetChallengeResponse(const ChallengeResponse& value) { m_challengeResponseHasBeenSet = true; m_challengeResponse = value; }
184 inline void SetChallengeResponse(ChallengeResponse&& value) { m_challengeResponseHasBeenSet = true; m_challengeResponse = std::move(value); }
186 inline SampledHTTPRequest& WithChallengeResponse(ChallengeResponse&& value) { SetChallengeResponse(std::move(value)); return *this;}
188
190
196 inline const Aws::String& GetOverriddenAction() const{ return m_overriddenAction; }
197 inline bool OverriddenActionHasBeenSet() const { return m_overriddenActionHasBeenSet; }
198 inline void SetOverriddenAction(const Aws::String& value) { m_overriddenActionHasBeenSet = true; m_overriddenAction = value; }
199 inline void SetOverriddenAction(Aws::String&& value) { m_overriddenActionHasBeenSet = true; m_overriddenAction = std::move(value); }
200 inline void SetOverriddenAction(const char* value) { m_overriddenActionHasBeenSet = true; m_overriddenAction.assign(value); }
201 inline SampledHTTPRequest& WithOverriddenAction(const Aws::String& value) { SetOverriddenAction(value); return *this;}
202 inline SampledHTTPRequest& WithOverriddenAction(Aws::String&& value) { SetOverriddenAction(std::move(value)); return *this;}
203 inline SampledHTTPRequest& WithOverriddenAction(const char* value) { SetOverriddenAction(value); return *this;}
205 private:
206
207 HTTPRequest m_request;
208 bool m_requestHasBeenSet = false;
209
210 long long m_weight;
211 bool m_weightHasBeenSet = false;
212
213 Aws::Utils::DateTime m_timestamp;
214 bool m_timestampHasBeenSet = false;
215
216 Aws::String m_action;
217 bool m_actionHasBeenSet = false;
218
219 Aws::String m_ruleNameWithinRuleGroup;
220 bool m_ruleNameWithinRuleGroupHasBeenSet = false;
221
222 Aws::Vector<HTTPHeader> m_requestHeadersInserted;
223 bool m_requestHeadersInsertedHasBeenSet = false;
224
225 int m_responseCodeSent;
226 bool m_responseCodeSentHasBeenSet = false;
227
228 Aws::Vector<Label> m_labels;
229 bool m_labelsHasBeenSet = false;
230
231 CaptchaResponse m_captchaResponse;
232 bool m_captchaResponseHasBeenSet = false;
233
234 ChallengeResponse m_challengeResponse;
235 bool m_challengeResponseHasBeenSet = false;
236
237 Aws::String m_overriddenAction;
238 bool m_overriddenActionHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace WAFV2
243} // namespace Aws
void SetAction(const Aws::String &value)
SampledHTTPRequest & WithTimestamp(const Aws::Utils::DateTime &value)
const Aws::Vector< Label > & GetLabels() const
const CaptchaResponse & GetCaptchaResponse() const
SampledHTTPRequest & WithAction(Aws::String &&value)
SampledHTTPRequest & AddLabels(const Label &value)
void SetChallengeResponse(ChallengeResponse &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
SampledHTTPRequest & WithRequestHeadersInserted(Aws::Vector< HTTPHeader > &&value)
SampledHTTPRequest & AddRequestHeadersInserted(const HTTPHeader &value)
SampledHTTPRequest & WithOverriddenAction(const char *value)
AWS_WAFV2_API SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & AddLabels(Label &&value)
void SetRuleNameWithinRuleGroup(const char *value)
const Aws::Utils::DateTime & GetTimestamp() const
SampledHTTPRequest & WithChallengeResponse(ChallengeResponse &&value)
const Aws::Vector< HTTPHeader > & GetRequestHeadersInserted() const
void SetRuleNameWithinRuleGroup(Aws::String &&value)
void SetCaptchaResponse(CaptchaResponse &&value)
const Aws::String & GetRuleNameWithinRuleGroup() const
SampledHTTPRequest & WithResponseCodeSent(int value)
SampledHTTPRequest & WithRequest(const HTTPRequest &value)
SampledHTTPRequest & WithWeight(long long value)
SampledHTTPRequest & WithLabels(const Aws::Vector< Label > &value)
SampledHTTPRequest & WithRequestHeadersInserted(const Aws::Vector< HTTPHeader > &value)
void SetRequestHeadersInserted(Aws::Vector< HTTPHeader > &&value)
SampledHTTPRequest & WithAction(const char *value)
void SetRuleNameWithinRuleGroup(const Aws::String &value)
SampledHTTPRequest & WithOverriddenAction(Aws::String &&value)
void SetLabels(const Aws::Vector< Label > &value)
void SetOverriddenAction(const Aws::String &value)
SampledHTTPRequest & WithOverriddenAction(const Aws::String &value)
SampledHTTPRequest & WithLabels(Aws::Vector< Label > &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(const Aws::String &value)
SampledHTTPRequest & WithCaptchaResponse(CaptchaResponse &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(Aws::String &&value)
void SetRequest(const HTTPRequest &value)
const Aws::String & GetAction() const
void SetRequestHeadersInserted(const Aws::Vector< HTTPHeader > &value)
SampledHTTPRequest & WithAction(const Aws::String &value)
void SetLabels(Aws::Vector< Label > &&value)
SampledHTTPRequest & WithChallengeResponse(const ChallengeResponse &value)
const Aws::String & GetOverriddenAction() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ChallengeResponse & GetChallengeResponse() const
void SetChallengeResponse(const ChallengeResponse &value)
SampledHTTPRequest & WithRequest(HTTPRequest &&value)
SampledHTTPRequest & WithTimestamp(Aws::Utils::DateTime &&value)
void SetOverriddenAction(Aws::String &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(const char *value)
const HTTPRequest & GetRequest() const
AWS_WAFV2_API SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCaptchaResponse(const CaptchaResponse &value)
SampledHTTPRequest & AddRequestHeadersInserted(HTTPHeader &&value)
SampledHTTPRequest & WithCaptchaResponse(const CaptchaResponse &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue