AWS SDK for C++  1.9.106
AWS SDK for C++
SampledHTTPRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/wafv2/model/Label.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace WAFV2
27 {
28 namespace Model
29 {
30 
41  {
42  public:
47 
48 
52  inline const HTTPRequest& GetRequest() const{ return m_request; }
53 
57  inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
58 
62  inline void SetRequest(const HTTPRequest& value) { m_requestHasBeenSet = true; m_request = value; }
63 
67  inline void SetRequest(HTTPRequest&& value) { m_requestHasBeenSet = true; m_request = std::move(value); }
68 
72  inline SampledHTTPRequest& WithRequest(const HTTPRequest& value) { SetRequest(value); return *this;}
73 
77  inline SampledHTTPRequest& WithRequest(HTTPRequest&& value) { SetRequest(std::move(value)); return *this;}
78 
79 
86  inline long long GetWeight() const{ return m_weight; }
87 
94  inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
95 
102  inline void SetWeight(long long value) { m_weightHasBeenSet = true; m_weight = value; }
103 
110  inline SampledHTTPRequest& WithWeight(long long value) { SetWeight(value); return *this;}
111 
112 
117  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
118 
123  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
124 
129  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
130 
135  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
136 
141  inline SampledHTTPRequest& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
142 
147  inline SampledHTTPRequest& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
148 
149 
154  inline const Aws::String& GetAction() const{ return m_action; }
155 
160  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
161 
166  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
167 
172  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
173 
178  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
179 
184  inline SampledHTTPRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
185 
190  inline SampledHTTPRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
191 
196  inline SampledHTTPRequest& WithAction(const char* value) { SetAction(value); return *this;}
197 
198 
206  inline const Aws::String& GetRuleNameWithinRuleGroup() const{ return m_ruleNameWithinRuleGroup; }
207 
215  inline bool RuleNameWithinRuleGroupHasBeenSet() const { return m_ruleNameWithinRuleGroupHasBeenSet; }
216 
224  inline void SetRuleNameWithinRuleGroup(const Aws::String& value) { m_ruleNameWithinRuleGroupHasBeenSet = true; m_ruleNameWithinRuleGroup = value; }
225 
233  inline void SetRuleNameWithinRuleGroup(Aws::String&& value) { m_ruleNameWithinRuleGroupHasBeenSet = true; m_ruleNameWithinRuleGroup = std::move(value); }
234 
242  inline void SetRuleNameWithinRuleGroup(const char* value) { m_ruleNameWithinRuleGroupHasBeenSet = true; m_ruleNameWithinRuleGroup.assign(value); }
243 
251  inline SampledHTTPRequest& WithRuleNameWithinRuleGroup(const Aws::String& value) { SetRuleNameWithinRuleGroup(value); return *this;}
252 
260  inline SampledHTTPRequest& WithRuleNameWithinRuleGroup(Aws::String&& value) { SetRuleNameWithinRuleGroup(std::move(value)); return *this;}
261 
269  inline SampledHTTPRequest& WithRuleNameWithinRuleGroup(const char* value) { SetRuleNameWithinRuleGroup(value); return *this;}
270 
271 
276  inline const Aws::Vector<HTTPHeader>& GetRequestHeadersInserted() const{ return m_requestHeadersInserted; }
277 
282  inline bool RequestHeadersInsertedHasBeenSet() const { return m_requestHeadersInsertedHasBeenSet; }
283 
288  inline void SetRequestHeadersInserted(const Aws::Vector<HTTPHeader>& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted = value; }
289 
294  inline void SetRequestHeadersInserted(Aws::Vector<HTTPHeader>&& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted = std::move(value); }
295 
300  inline SampledHTTPRequest& WithRequestHeadersInserted(const Aws::Vector<HTTPHeader>& value) { SetRequestHeadersInserted(value); return *this;}
301 
306  inline SampledHTTPRequest& WithRequestHeadersInserted(Aws::Vector<HTTPHeader>&& value) { SetRequestHeadersInserted(std::move(value)); return *this;}
307 
312  inline SampledHTTPRequest& AddRequestHeadersInserted(const HTTPHeader& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted.push_back(value); return *this; }
313 
318  inline SampledHTTPRequest& AddRequestHeadersInserted(HTTPHeader&& value) { m_requestHeadersInsertedHasBeenSet = true; m_requestHeadersInserted.push_back(std::move(value)); return *this; }
319 
320 
324  inline int GetResponseCodeSent() const{ return m_responseCodeSent; }
325 
329  inline bool ResponseCodeSentHasBeenSet() const { return m_responseCodeSentHasBeenSet; }
330 
334  inline void SetResponseCodeSent(int value) { m_responseCodeSentHasBeenSet = true; m_responseCodeSent = value; }
335 
339  inline SampledHTTPRequest& WithResponseCodeSent(int value) { SetResponseCodeSent(value); return *this;}
340 
341 
350  inline const Aws::Vector<Label>& GetLabels() const{ return m_labels; }
351 
360  inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
361 
370  inline void SetLabels(const Aws::Vector<Label>& value) { m_labelsHasBeenSet = true; m_labels = value; }
371 
380  inline void SetLabels(Aws::Vector<Label>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
381 
390  inline SampledHTTPRequest& WithLabels(const Aws::Vector<Label>& value) { SetLabels(value); return *this;}
391 
400  inline SampledHTTPRequest& WithLabels(Aws::Vector<Label>&& value) { SetLabels(std::move(value)); return *this;}
401 
410  inline SampledHTTPRequest& AddLabels(const Label& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
411 
420  inline SampledHTTPRequest& AddLabels(Label&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
421 
422  private:
423 
424  HTTPRequest m_request;
425  bool m_requestHasBeenSet;
426 
427  long long m_weight;
428  bool m_weightHasBeenSet;
429 
430  Aws::Utils::DateTime m_timestamp;
431  bool m_timestampHasBeenSet;
432 
433  Aws::String m_action;
434  bool m_actionHasBeenSet;
435 
436  Aws::String m_ruleNameWithinRuleGroup;
437  bool m_ruleNameWithinRuleGroupHasBeenSet;
438 
439  Aws::Vector<HTTPHeader> m_requestHeadersInserted;
440  bool m_requestHeadersInsertedHasBeenSet;
441 
442  int m_responseCodeSent;
443  bool m_responseCodeSentHasBeenSet;
444 
445  Aws::Vector<Label> m_labels;
446  bool m_labelsHasBeenSet;
447  };
448 
449 } // namespace Model
450 } // namespace WAFV2
451 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::WAFV2::Model::SampledHTTPRequest::SetLabels
void SetLabels(Aws::Vector< Label > &&value)
Definition: SampledHTTPRequest.h:380
Aws::WAFV2::Model::SampledHTTPRequest::GetAction
const Aws::String & GetAction() const
Definition: SampledHTTPRequest.h:154
Aws::WAFV2::Model::SampledHTTPRequest::RequestHeadersInsertedHasBeenSet
bool RequestHeadersInsertedHasBeenSet() const
Definition: SampledHTTPRequest.h:282
Aws::WAFV2::Model::SampledHTTPRequest::WithRuleNameWithinRuleGroup
SampledHTTPRequest & WithRuleNameWithinRuleGroup(Aws::String &&value)
Definition: SampledHTTPRequest.h:260
Aws::WAFV2::Model::SampledHTTPRequest::SampledHTTPRequest
SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::SampledHTTPRequest::WithRequestHeadersInserted
SampledHTTPRequest & WithRequestHeadersInserted(const Aws::Vector< HTTPHeader > &value)
Definition: SampledHTTPRequest.h:300
Aws::WAFV2::Model::SampledHTTPRequest::RequestHasBeenSet
bool RequestHasBeenSet() const
Definition: SampledHTTPRequest.h:57
Aws::WAFV2::Model::SampledHTTPRequest::SetRuleNameWithinRuleGroup
void SetRuleNameWithinRuleGroup(Aws::String &&value)
Definition: SampledHTTPRequest.h:233
Aws::WAFV2::Model::SampledHTTPRequest::WithRuleNameWithinRuleGroup
SampledHTTPRequest & WithRuleNameWithinRuleGroup(const Aws::String &value)
Definition: SampledHTTPRequest.h:251
HTTPRequest.h
Aws::WAFV2::Model::SampledHTTPRequest::WithRequest
SampledHTTPRequest & WithRequest(HTTPRequest &&value)
Definition: SampledHTTPRequest.h:77
DateTime.h
Aws::WAFV2::Model::SampledHTTPRequest::SetAction
void SetAction(const char *value)
Definition: SampledHTTPRequest.h:178
Aws::WAFV2::Model::SampledHTTPRequest::SetAction
void SetAction(Aws::String &&value)
Definition: SampledHTTPRequest.h:172
Aws::WAFV2::Model::SampledHTTPRequest::GetLabels
const Aws::Vector< Label > & GetLabels() const
Definition: SampledHTTPRequest.h:350
Aws::WAFV2::Model::SampledHTTPRequest::SetRuleNameWithinRuleGroup
void SetRuleNameWithinRuleGroup(const char *value)
Definition: SampledHTTPRequest.h:242
Aws::WAFV2::Model::HTTPRequest
Definition: HTTPRequest.h:37
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::SampledHTTPRequest::WithTimestamp
SampledHTTPRequest & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: SampledHTTPRequest.h:141
Aws::WAFV2::Model::SampledHTTPRequest::SetLabels
void SetLabels(const Aws::Vector< Label > &value)
Definition: SampledHTTPRequest.h:370
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::SampledHTTPRequest::WithLabels
SampledHTTPRequest & WithLabels(Aws::Vector< Label > &&value)
Definition: SampledHTTPRequest.h:400
Aws::WAFV2::Model::SampledHTTPRequest::GetRequestHeadersInserted
const Aws::Vector< HTTPHeader > & GetRequestHeadersInserted() const
Definition: SampledHTTPRequest.h:276
AWSVector.h
Aws::WAFV2::Model::SampledHTTPRequest::GetRuleNameWithinRuleGroup
const Aws::String & GetRuleNameWithinRuleGroup() const
Definition: SampledHTTPRequest.h:206
Aws::WAFV2::Model::SampledHTTPRequest::WithRequestHeadersInserted
SampledHTTPRequest & WithRequestHeadersInserted(Aws::Vector< HTTPHeader > &&value)
Definition: SampledHTTPRequest.h:306
WAFV2_EXPORTS.h
Aws::WAFV2::Model::SampledHTTPRequest::SampledHTTPRequest
SampledHTTPRequest()
Aws::WAFV2::Model::SampledHTTPRequest::WithAction
SampledHTTPRequest & WithAction(const char *value)
Definition: SampledHTTPRequest.h:196
Aws::WAFV2::Model::Label
Definition: Label.h:35
Aws::WAFV2::Model::SampledHTTPRequest::SetRequest
void SetRequest(const HTTPRequest &value)
Definition: SampledHTTPRequest.h:62
Label.h
Aws::WAFV2::Model::SampledHTTPRequest::WeightHasBeenSet
bool WeightHasBeenSet() const
Definition: SampledHTTPRequest.h:94
Aws::WAFV2::Model::SampledHTTPRequest::operator=
SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::SampledHTTPRequest
Definition: SampledHTTPRequest.h:41
Aws::WAFV2::Model::SampledHTTPRequest::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: SampledHTTPRequest.h:129
Aws::WAFV2::Model::SampledHTTPRequest::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: SampledHTTPRequest.h:135
Aws::WAFV2::Model::SampledHTTPRequest::AddRequestHeadersInserted
SampledHTTPRequest & AddRequestHeadersInserted(const HTTPHeader &value)
Definition: SampledHTTPRequest.h:312
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::SampledHTTPRequest::WithWeight
SampledHTTPRequest & WithWeight(long long value)
Definition: SampledHTTPRequest.h:110
Aws::WAFV2::Model::SampledHTTPRequest::WithTimestamp
SampledHTTPRequest & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: SampledHTTPRequest.h:147
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::SampledHTTPRequest::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: SampledHTTPRequest.h:160
Aws::WAFV2::Model::SampledHTTPRequest::WithAction
SampledHTTPRequest & WithAction(const Aws::String &value)
Definition: SampledHTTPRequest.h:184
Aws::WAFV2::Model::SampledHTTPRequest::SetResponseCodeSent
void SetResponseCodeSent(int value)
Definition: SampledHTTPRequest.h:334
Aws::WAFV2::Model::SampledHTTPRequest::WithLabels
SampledHTTPRequest & WithLabels(const Aws::Vector< Label > &value)
Definition: SampledHTTPRequest.h:390
Aws::WAFV2::Model::SampledHTTPRequest::ResponseCodeSentHasBeenSet
bool ResponseCodeSentHasBeenSet() const
Definition: SampledHTTPRequest.h:329
Aws::WAFV2::Model::HTTPHeader
Definition: HTTPHeader.h:35
Aws::WAFV2::Model::SampledHTTPRequest::AddLabels
SampledHTTPRequest & AddLabels(Label &&value)
Definition: SampledHTTPRequest.h:420
Aws::WAFV2::Model::SampledHTTPRequest::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: SampledHTTPRequest.h:117
Aws::WAFV2::Model::SampledHTTPRequest::WithResponseCodeSent
SampledHTTPRequest & WithResponseCodeSent(int value)
Definition: SampledHTTPRequest.h:339
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::SampledHTTPRequest::GetWeight
long long GetWeight() const
Definition: SampledHTTPRequest.h:86
Aws::WAFV2::Model::SampledHTTPRequest::SetWeight
void SetWeight(long long value)
Definition: SampledHTTPRequest.h:102
Aws::WAFV2::Model::SampledHTTPRequest::AddRequestHeadersInserted
SampledHTTPRequest & AddRequestHeadersInserted(HTTPHeader &&value)
Definition: SampledHTTPRequest.h:318
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::SampledHTTPRequest::WithRuleNameWithinRuleGroup
SampledHTTPRequest & WithRuleNameWithinRuleGroup(const char *value)
Definition: SampledHTTPRequest.h:269
Aws::WAFV2::Model::SampledHTTPRequest::SetRequestHeadersInserted
void SetRequestHeadersInserted(Aws::Vector< HTTPHeader > &&value)
Definition: SampledHTTPRequest.h:294
Aws::WAFV2::Model::SampledHTTPRequest::LabelsHasBeenSet
bool LabelsHasBeenSet() const
Definition: SampledHTTPRequest.h:360
Aws::WAFV2::Model::SampledHTTPRequest::GetResponseCodeSent
int GetResponseCodeSent() const
Definition: SampledHTTPRequest.h:324
Aws::WAFV2::Model::SampledHTTPRequest::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: SampledHTTPRequest.h:123
HTTPHeader.h
Aws::WAFV2::Model::SampledHTTPRequest::WithRequest
SampledHTTPRequest & WithRequest(const HTTPRequest &value)
Definition: SampledHTTPRequest.h:72
Aws::WAFV2::Model::SampledHTTPRequest::AddLabels
SampledHTTPRequest & AddLabels(const Label &value)
Definition: SampledHTTPRequest.h:410
Aws::WAFV2::Model::SampledHTTPRequest::RuleNameWithinRuleGroupHasBeenSet
bool RuleNameWithinRuleGroupHasBeenSet() const
Definition: SampledHTTPRequest.h:215
Aws::WAFV2::Model::SampledHTTPRequest::GetRequest
const HTTPRequest & GetRequest() const
Definition: SampledHTTPRequest.h:52
Aws::WAFV2::Model::SampledHTTPRequest::SetRequestHeadersInserted
void SetRequestHeadersInserted(const Aws::Vector< HTTPHeader > &value)
Definition: SampledHTTPRequest.h:288
Aws::WAFV2::Model::SampledHTTPRequest::SetRuleNameWithinRuleGroup
void SetRuleNameWithinRuleGroup(const Aws::String &value)
Definition: SampledHTTPRequest.h:224
Aws::WAFV2::Model::SampledHTTPRequest::SetRequest
void SetRequest(HTTPRequest &&value)
Definition: SampledHTTPRequest.h:67
Aws::WAFV2::Model::SampledHTTPRequest::SetAction
void SetAction(const Aws::String &value)
Definition: SampledHTTPRequest.h:166
Aws::WAFV2::Model::SampledHTTPRequest::WithAction
SampledHTTPRequest & WithAction(Aws::String &&value)
Definition: SampledHTTPRequest.h:190
Aws::WAFV2::Model::SampledHTTPRequest::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const