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>
70 inline long long GetWeight()
const{
return m_weight; }
72 inline void SetWeight(
long long value) { m_weightHasBeenSet =
true; m_weight = value; }
97 inline void SetAction(
const char* value) { m_actionHasBeenSet =
true; m_action.assign(value); }
115 inline void SetRuleNameWithinRuleGroup(
const char* value) { m_ruleNameWithinRuleGroupHasBeenSet =
true; m_ruleNameWithinRuleGroup.assign(value); }
142 inline void SetResponseCodeSent(
int value) { m_responseCodeSentHasBeenSet =
true; m_responseCodeSent = value; }
200 inline void SetOverriddenAction(
const char* value) { m_overriddenActionHasBeenSet =
true; m_overriddenAction.assign(value); }
208 bool m_requestHasBeenSet =
false;
211 bool m_weightHasBeenSet =
false;
214 bool m_timestampHasBeenSet =
false;
217 bool m_actionHasBeenSet =
false;
220 bool m_ruleNameWithinRuleGroupHasBeenSet =
false;
223 bool m_requestHeadersInsertedHasBeenSet =
false;
225 int m_responseCodeSent;
226 bool m_responseCodeSentHasBeenSet =
false;
229 bool m_labelsHasBeenSet =
false;
232 bool m_captchaResponseHasBeenSet =
false;
235 bool m_challengeResponseHasBeenSet =
false;
238 bool m_overriddenActionHasBeenSet =
false;
bool ChallengeResponseHasBeenSet() const
void SetAction(const Aws::String &value)
SampledHTTPRequest & WithTimestamp(const Aws::Utils::DateTime &value)
const Aws::Vector< Label > & GetLabels() const
const CaptchaResponse & GetCaptchaResponse() const
SampledHTTPRequest & WithAction(Aws::String &&value)
SampledHTTPRequest & AddLabels(const Label &value)
void SetChallengeResponse(ChallengeResponse &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
SampledHTTPRequest & WithRequestHeadersInserted(Aws::Vector< HTTPHeader > &&value)
SampledHTTPRequest & AddRequestHeadersInserted(const HTTPHeader &value)
void SetResponseCodeSent(int value)
SampledHTTPRequest & WithOverriddenAction(const char *value)
AWS_WAFV2_API SampledHTTPRequest(Aws::Utils::Json::JsonView jsonValue)
SampledHTTPRequest & AddLabels(Label &&value)
void SetRuleNameWithinRuleGroup(const char *value)
const Aws::Utils::DateTime & GetTimestamp() const
SampledHTTPRequest & WithChallengeResponse(ChallengeResponse &&value)
const Aws::Vector< HTTPHeader > & GetRequestHeadersInserted() const
void SetRuleNameWithinRuleGroup(Aws::String &&value)
void SetCaptchaResponse(CaptchaResponse &&value)
const Aws::String & GetRuleNameWithinRuleGroup() const
SampledHTTPRequest & WithResponseCodeSent(int value)
SampledHTTPRequest & WithRequest(const HTTPRequest &value)
bool LabelsHasBeenSet() const
SampledHTTPRequest & WithWeight(long long value)
bool RequestHeadersInsertedHasBeenSet() const
bool RuleNameWithinRuleGroupHasBeenSet() const
SampledHTTPRequest & WithLabels(const Aws::Vector< Label > &value)
bool WeightHasBeenSet() const
SampledHTTPRequest & WithRequestHeadersInserted(const Aws::Vector< HTTPHeader > &value)
void SetRequestHeadersInserted(Aws::Vector< HTTPHeader > &&value)
SampledHTTPRequest & WithAction(const char *value)
void SetRuleNameWithinRuleGroup(const Aws::String &value)
SampledHTTPRequest & WithOverriddenAction(Aws::String &&value)
void SetLabels(const Aws::Vector< Label > &value)
void SetOverriddenAction(const Aws::String &value)
SampledHTTPRequest & WithOverriddenAction(const Aws::String &value)
SampledHTTPRequest & WithLabels(Aws::Vector< Label > &&value)
AWS_WAFV2_API SampledHTTPRequest()
void SetWeight(long long value)
void SetTimestamp(Aws::Utils::DateTime &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(const Aws::String &value)
void SetOverriddenAction(const char *value)
long long GetWeight() const
SampledHTTPRequest & WithCaptchaResponse(CaptchaResponse &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(Aws::String &&value)
void SetRequest(const HTTPRequest &value)
const Aws::String & GetAction() const
void SetAction(const char *value)
void SetRequestHeadersInserted(const Aws::Vector< HTTPHeader > &value)
SampledHTTPRequest & WithAction(const Aws::String &value)
void SetLabels(Aws::Vector< Label > &&value)
SampledHTTPRequest & WithChallengeResponse(const ChallengeResponse &value)
const Aws::String & GetOverriddenAction() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const ChallengeResponse & GetChallengeResponse() const
void SetChallengeResponse(const ChallengeResponse &value)
SampledHTTPRequest & WithRequest(HTTPRequest &&value)
int GetResponseCodeSent() const
SampledHTTPRequest & WithTimestamp(Aws::Utils::DateTime &&value)
bool ActionHasBeenSet() const
bool OverriddenActionHasBeenSet() const
bool ResponseCodeSentHasBeenSet() const
bool TimestampHasBeenSet() const
void SetOverriddenAction(Aws::String &&value)
void SetRequest(HTTPRequest &&value)
void SetAction(Aws::String &&value)
SampledHTTPRequest & WithRuleNameWithinRuleGroup(const char *value)
bool RequestHasBeenSet() const
const HTTPRequest & GetRequest() const
AWS_WAFV2_API SampledHTTPRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCaptchaResponse(const CaptchaResponse &value)
SampledHTTPRequest & AddRequestHeadersInserted(HTTPHeader &&value)
bool CaptchaResponseHasBeenSet() const
SampledHTTPRequest & WithCaptchaResponse(const CaptchaResponse &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue