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/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/HTTPRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.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 WAF
24{
25namespace Model
26{
27
46 {
47 public:
48 AWS_WAF_API SampledHTTPRequest();
52
53
55
58 inline const HTTPRequest& GetRequest() const{ return m_request; }
59 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
60 inline void SetRequest(const HTTPRequest& value) { m_requestHasBeenSet = true; m_request = value; }
61 inline void SetRequest(HTTPRequest&& value) { m_requestHasBeenSet = true; m_request = std::move(value); }
62 inline SampledHTTPRequest& WithRequest(const HTTPRequest& value) { SetRequest(value); return *this;}
63 inline SampledHTTPRequest& WithRequest(HTTPRequest&& value) { SetRequest(std::move(value)); return *this;}
65
67
73 inline long long GetWeight() const{ return m_weight; }
74 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
75 inline void SetWeight(long long value) { m_weightHasBeenSet = true; m_weight = value; }
76 inline SampledHTTPRequest& WithWeight(long long value) { SetWeight(value); return *this;}
78
80
84 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
85 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
86 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
87 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
88 inline SampledHTTPRequest& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
89 inline SampledHTTPRequest& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
91
93
97 inline const Aws::String& GetAction() const{ return m_action; }
98 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
99 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
100 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
101 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
102 inline SampledHTTPRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
103 inline SampledHTTPRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
104 inline SampledHTTPRequest& WithAction(const char* value) { SetAction(value); return *this;}
106
108
114 inline const Aws::String& GetRuleWithinRuleGroup() const{ return m_ruleWithinRuleGroup; }
115 inline bool RuleWithinRuleGroupHasBeenSet() const { return m_ruleWithinRuleGroupHasBeenSet; }
116 inline void SetRuleWithinRuleGroup(const Aws::String& value) { m_ruleWithinRuleGroupHasBeenSet = true; m_ruleWithinRuleGroup = value; }
117 inline void SetRuleWithinRuleGroup(Aws::String&& value) { m_ruleWithinRuleGroupHasBeenSet = true; m_ruleWithinRuleGroup = std::move(value); }
118 inline void SetRuleWithinRuleGroup(const char* value) { m_ruleWithinRuleGroupHasBeenSet = true; m_ruleWithinRuleGroup.assign(value); }
120 inline SampledHTTPRequest& WithRuleWithinRuleGroup(Aws::String&& value) { SetRuleWithinRuleGroup(std::move(value)); return *this;}
121 inline SampledHTTPRequest& WithRuleWithinRuleGroup(const char* value) { SetRuleWithinRuleGroup(value); return *this;}
123 private:
124
125 HTTPRequest m_request;
126 bool m_requestHasBeenSet = false;
127
128 long long m_weight;
129 bool m_weightHasBeenSet = false;
130
131 Aws::Utils::DateTime m_timestamp;
132 bool m_timestampHasBeenSet = false;
133
134 Aws::String m_action;
135 bool m_actionHasBeenSet = false;
136
137 Aws::String m_ruleWithinRuleGroup;
138 bool m_ruleWithinRuleGroupHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace WAF
143} // namespace Aws
void SetRequest(HTTPRequest &&value)
SampledHTTPRequest & WithAction(const char *value)
void SetRuleWithinRuleGroup(Aws::String &&value)
const Aws::String & GetRuleWithinRuleGroup() const
SampledHTTPRequest & WithAction(const Aws::String &value)
void SetRuleWithinRuleGroup(const Aws::String &value)
SampledHTTPRequest & WithRuleWithinRuleGroup(const Aws::String &value)
SampledHTTPRequest & WithRuleWithinRuleGroup(const char *value)
AWS_WAF_API SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & WithTimestamp(const Aws::Utils::DateTime &value)
SampledHTTPRequest & WithTimestamp(Aws::Utils::DateTime &&value)
SampledHTTPRequest & WithRuleWithinRuleGroup(Aws::String &&value)
void SetRuleWithinRuleGroup(const char *value)
void SetTimestamp(Aws::Utils::DateTime &&value)
SampledHTTPRequest & WithRequest(HTTPRequest &&value)
const Aws::Utils::DateTime & GetTimestamp() const
SampledHTTPRequest & WithAction(Aws::String &&value)
void SetRequest(const HTTPRequest &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
AWS_WAF_API SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & WithWeight(long long value)
const HTTPRequest & GetRequest() const
SampledHTTPRequest & WithRequest(const HTTPRequest &value)
void SetAction(const Aws::String &value)
const Aws::String & GetAction() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue