AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
52
53
55
58 inline const HTTPRequest& GetRequest() const { return m_request; }
59 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
60 template<typename RequestT = HTTPRequest>
61 void SetRequest(RequestT&& value) { m_requestHasBeenSet = true; m_request = std::forward<RequestT>(value); }
62 template<typename RequestT = HTTPRequest>
63 SampledHTTPRequest& WithRequest(RequestT&& value) { SetRequest(std::forward<RequestT>(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 template<typename TimestampT = Aws::Utils::DateTime>
87 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
88 template<typename TimestampT = Aws::Utils::DateTime>
89 SampledHTTPRequest& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
91
93
97 inline const Aws::String& GetAction() const { return m_action; }
98 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
99 template<typename ActionT = Aws::String>
100 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
101 template<typename ActionT = Aws::String>
102 SampledHTTPRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
104
106
112 inline const Aws::String& GetRuleWithinRuleGroup() const { return m_ruleWithinRuleGroup; }
113 inline bool RuleWithinRuleGroupHasBeenSet() const { return m_ruleWithinRuleGroupHasBeenSet; }
114 template<typename RuleWithinRuleGroupT = Aws::String>
115 void SetRuleWithinRuleGroup(RuleWithinRuleGroupT&& value) { m_ruleWithinRuleGroupHasBeenSet = true; m_ruleWithinRuleGroup = std::forward<RuleWithinRuleGroupT>(value); }
116 template<typename RuleWithinRuleGroupT = Aws::String>
117 SampledHTTPRequest& WithRuleWithinRuleGroup(RuleWithinRuleGroupT&& value) { SetRuleWithinRuleGroup(std::forward<RuleWithinRuleGroupT>(value)); return *this;}
119 private:
120
121 HTTPRequest m_request;
122 bool m_requestHasBeenSet = false;
123
124 long long m_weight{0};
125 bool m_weightHasBeenSet = false;
126
127 Aws::Utils::DateTime m_timestamp{};
128 bool m_timestampHasBeenSet = false;
129
130 Aws::String m_action;
131 bool m_actionHasBeenSet = false;
132
133 Aws::String m_ruleWithinRuleGroup;
134 bool m_ruleWithinRuleGroupHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace WAF
139} // namespace Aws
void SetRuleWithinRuleGroup(RuleWithinRuleGroupT &&value)
void SetTimestamp(TimestampT &&value)
const Aws::String & GetRuleWithinRuleGroup() const
SampledHTTPRequest & WithRuleWithinRuleGroup(RuleWithinRuleGroupT &&value)
AWS_WAF_API SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API SampledHTTPRequest()=default
const Aws::Utils::DateTime & GetTimestamp() const
SampledHTTPRequest & WithRequest(RequestT &&value)
SampledHTTPRequest & WithTimestamp(TimestampT &&value)
SampledHTTPRequest & WithAction(ActionT &&value)
AWS_WAF_API SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & WithWeight(long long value)
const HTTPRequest & GetRequest() const
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