7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/HTTPRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
60 template<
typename RequestT = HTTPRequest>
61 void SetRequest(RequestT&& value) { m_requestHasBeenSet =
true; m_request = std::forward<RequestT>(value); }
62 template<
typename RequestT = HTTPRequest>
73 inline long long GetWeight()
const {
return m_weight; }
75 inline void SetWeight(
long long value) { m_weightHasBeenSet =
true; m_weight = value; }
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>
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>
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>
122 bool m_requestHasBeenSet =
false;
124 long long m_weight{0};
125 bool m_weightHasBeenSet =
false;
128 bool m_timestampHasBeenSet =
false;
131 bool m_actionHasBeenSet =
false;
134 bool m_ruleWithinRuleGroupHasBeenSet =
false;
AWS_WAFREGIONAL_API SampledHTTPRequest()=default
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
SampledHTTPRequest & WithRequest(RequestT &&value)
bool RequestHasBeenSet() const
SampledHTTPRequest & WithTimestamp(TimestampT &&value)
AWS_WAFREGIONAL_API SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTimestamp() const
bool ActionHasBeenSet() const
void SetAction(ActionT &&value)
bool TimestampHasBeenSet() const
void SetRequest(RequestT &&value)
SampledHTTPRequest & WithAction(ActionT &&value)
const Aws::String & GetAction() const
long long GetWeight() const
void SetWeight(long long value)
AWS_WAFREGIONAL_API SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & WithWeight(long long value)
SampledHTTPRequest & WithRuleWithinRuleGroup(RuleWithinRuleGroupT &&value)
bool RuleWithinRuleGroupHasBeenSet() const
const HTTPRequest & GetRequest() const
void SetRuleWithinRuleGroup(RuleWithinRuleGroupT &&value)
const Aws::String & GetRuleWithinRuleGroup() const
void SetTimestamp(TimestampT &&value)
bool WeightHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue