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>
57 template<
typename RequestT = HTTPRequest>
58 void SetRequest(
RequestT&& value) { m_requestHasBeenSet =
true; m_request = std::forward<RequestT>(value); }
59 template<
typename RequestT = HTTPRequest>
70 inline long long GetWeight()
const {
return m_weight; }
72 inline void SetWeight(
long long value) { m_weightHasBeenSet =
true; m_weight = value; }
83 template<
typename TimestampT = Aws::Utils::DateTime>
84 void SetTimestamp(
TimestampT&& value) { m_timestampHasBeenSet =
true; m_timestamp = std::forward<TimestampT>(value); }
85 template<
typename TimestampT = Aws::Utils::DateTime>
95 template<
typename ActionT = Aws::String>
96 void SetAction(
ActionT&& value) { m_actionHasBeenSet =
true; m_action = std::forward<ActionT>(value); }
97 template<
typename ActionT = Aws::String>
111 template<
typename RuleNameWithinRuleGroupT = Aws::String>
113 template<
typename RuleNameWithinRuleGroupT = Aws::String>
124 template<
typename RequestHeadersInsertedT = Aws::Vector<HTTPHeader>>
126 template<
typename RequestHeadersInsertedT = Aws::Vector<HTTPHeader>>
128 template<
typename RequestHeadersInsertedT = HTTPHeader>
138 inline void SetResponseCodeSent(
int value) { m_responseCodeSentHasBeenSet =
true; m_responseCodeSent = value; }
153 template<
typename LabelsT = Aws::Vector<Label>>
154 void SetLabels(
LabelsT&& value) { m_labelsHasBeenSet =
true; m_labels = std::forward<LabelsT>(value); }
155 template<
typename LabelsT = Aws::Vector<Label>>
157 template<
typename LabelsT = Label>
167 template<
typename CaptchaResponseT = CaptchaResponse>
169 template<
typename CaptchaResponseT = CaptchaResponse>
179 template<
typename ChallengeResponseT = ChallengeResponse>
181 template<
typename ChallengeResponseT = ChallengeResponse>
194 template<
typename Overr
iddenActionT = Aws::String>
196 template<
typename Overr
iddenActionT = Aws::String>
202 bool m_requestHasBeenSet =
false;
204 long long m_weight{0};
205 bool m_weightHasBeenSet =
false;
208 bool m_timestampHasBeenSet =
false;
211 bool m_actionHasBeenSet =
false;
214 bool m_ruleNameWithinRuleGroupHasBeenSet =
false;
217 bool m_requestHeadersInsertedHasBeenSet =
false;
219 int m_responseCodeSent{0};
220 bool m_responseCodeSentHasBeenSet =
false;
223 bool m_labelsHasBeenSet =
false;
225 CaptchaResponse m_captchaResponse;
226 bool m_captchaResponseHasBeenSet =
false;
228 ChallengeResponse m_challengeResponse;
229 bool m_challengeResponseHasBeenSet =
false;
232 bool m_overriddenActionHasBeenSet =
false;
bool ChallengeResponseHasBeenSet() const
SampledHTTPRequest & AddRequestHeadersInserted(RequestHeadersInsertedT &&value)
SampledHTTPRequest & WithAction(ActionT &&value)
const Aws::Vector< Label > & GetLabels() const
const CaptchaResponse & GetCaptchaResponse() const
void SetRuleNameWithinRuleGroup(RuleNameWithinRuleGroupT &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(RuleNameWithinRuleGroupT &&value)
void SetResponseCodeSent(int value)
void SetLabels(LabelsT &&value)
AWS_WAFV2_API SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTimestamp() const
const Aws::Vector< HTTPHeader > & GetRequestHeadersInserted() const
const Aws::String & GetRuleNameWithinRuleGroup() const
SampledHTTPRequest & WithResponseCodeSent(int value)
bool LabelsHasBeenSet() const
SampledHTTPRequest & WithWeight(long long value)
bool RequestHeadersInsertedHasBeenSet() const
void SetChallengeResponse(ChallengeResponseT &&value)
SampledHTTPRequest & WithRequest(RequestT &&value)
bool RuleNameWithinRuleGroupHasBeenSet() const
bool WeightHasBeenSet() const
void SetTimestamp(TimestampT &&value)
SampledHTTPRequest & WithRequestHeadersInserted(RequestHeadersInsertedT &&value)
AWS_WAFV2_API SampledHTTPRequest()=default
void SetCaptchaResponse(CaptchaResponseT &&value)
SampledHTTPRequest & WithCaptchaResponse(CaptchaResponseT &&value)
void SetOverriddenAction(OverriddenActionT &&value)
void SetWeight(long long value)
SampledHTTPRequest & WithOverriddenAction(OverriddenActionT &&value)
long long GetWeight() const
const Aws::String & GetAction() const
const Aws::String & GetOverriddenAction() const
void SetRequestHeadersInserted(RequestHeadersInsertedT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ChallengeResponse & GetChallengeResponse() const
void SetAction(ActionT &&value)
int GetResponseCodeSent() const
bool ActionHasBeenSet() const
bool OverriddenActionHasBeenSet() const
SampledHTTPRequest & WithTimestamp(TimestampT &&value)
bool ResponseCodeSentHasBeenSet() const
bool TimestampHasBeenSet() const
SampledHTTPRequest & WithLabels(LabelsT &&value)
void SetRequest(RequestT &&value)
bool RequestHasBeenSet() const
const HTTPRequest & GetRequest() const
SampledHTTPRequest & WithChallengeResponse(ChallengeResponseT &&value)
AWS_WAFV2_API SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & AddLabels(LabelsT &&value)
bool CaptchaResponseHasBeenSet() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue