/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace WAF { namespace Model { /** */ class GetSampledRequestsRequest : public WAFRequest { public: AWS_WAF_API GetSampledRequestsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetSampledRequests"; } AWS_WAF_API Aws::String SerializePayload() const override; AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline const Aws::String& GetWebAclId() const{ return m_webAclId; } /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; } /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; } /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); } /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); } /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline GetSampledRequestsRequest& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;} /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline GetSampledRequestsRequest& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;} /** *

The WebACLId of the WebACL for which you want * GetSampledRequests to return a sample of requests.

*/ inline GetSampledRequestsRequest& WithWebAclId(const char* value) { SetWebAclId(value); return *this;} /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline GetSampledRequestsRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline GetSampledRequestsRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *

RuleId is one of three values:

  • The * RuleId of the Rule or the RuleGroupId of * the RuleGroup for which you want GetSampledRequests to * return a sample of requests.

  • Default_Action, * which causes GetSampledRequests to return a sample of the requests * that didn't match any of the rules in the specified WebACL.

    *
*/ inline GetSampledRequestsRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;} /** *

The start date and time and the end date and time of the range for which you * want GetSampledRequests to return a sample of requests. You must * specify the times in Coordinated Universal Time (UTC) format. UTC format * includes the special designator, Z. For example, * "2016-09-27T14:50Z". You can specify any time range in the previous * three hours.

*/ inline const TimeWindow& GetTimeWindow() const{ return m_timeWindow; } /** *

The start date and time and the end date and time of the range for which you * want GetSampledRequests to return a sample of requests. You must * specify the times in Coordinated Universal Time (UTC) format. UTC format * includes the special designator, Z. For example, * "2016-09-27T14:50Z". You can specify any time range in the previous * three hours.

*/ inline bool TimeWindowHasBeenSet() const { return m_timeWindowHasBeenSet; } /** *

The start date and time and the end date and time of the range for which you * want GetSampledRequests to return a sample of requests. You must * specify the times in Coordinated Universal Time (UTC) format. UTC format * includes the special designator, Z. For example, * "2016-09-27T14:50Z". You can specify any time range in the previous * three hours.

*/ inline void SetTimeWindow(const TimeWindow& value) { m_timeWindowHasBeenSet = true; m_timeWindow = value; } /** *

The start date and time and the end date and time of the range for which you * want GetSampledRequests to return a sample of requests. You must * specify the times in Coordinated Universal Time (UTC) format. UTC format * includes the special designator, Z. For example, * "2016-09-27T14:50Z". You can specify any time range in the previous * three hours.

*/ inline void SetTimeWindow(TimeWindow&& value) { m_timeWindowHasBeenSet = true; m_timeWindow = std::move(value); } /** *

The start date and time and the end date and time of the range for which you * want GetSampledRequests to return a sample of requests. You must * specify the times in Coordinated Universal Time (UTC) format. UTC format * includes the special designator, Z. For example, * "2016-09-27T14:50Z". You can specify any time range in the previous * three hours.

*/ inline GetSampledRequestsRequest& WithTimeWindow(const TimeWindow& value) { SetTimeWindow(value); return *this;} /** *

The start date and time and the end date and time of the range for which you * want GetSampledRequests to return a sample of requests. You must * specify the times in Coordinated Universal Time (UTC) format. UTC format * includes the special designator, Z. For example, * "2016-09-27T14:50Z". You can specify any time range in the previous * three hours.

*/ inline GetSampledRequestsRequest& WithTimeWindow(TimeWindow&& value) { SetTimeWindow(std::move(value)); return *this;} /** *

The number of requests that you want AWS WAF to return from among the first * 5,000 requests that your AWS resource received during the time range. If your * resource received fewer requests than the value of MaxItems, * GetSampledRequests returns information about all of them.

*/ inline long long GetMaxItems() const{ return m_maxItems; } /** *

The number of requests that you want AWS WAF to return from among the first * 5,000 requests that your AWS resource received during the time range. If your * resource received fewer requests than the value of MaxItems, * GetSampledRequests returns information about all of them.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

The number of requests that you want AWS WAF to return from among the first * 5,000 requests that your AWS resource received during the time range. If your * resource received fewer requests than the value of MaxItems, * GetSampledRequests returns information about all of them.

*/ inline void SetMaxItems(long long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

The number of requests that you want AWS WAF to return from among the first * 5,000 requests that your AWS resource received during the time range. If your * resource received fewer requests than the value of MaxItems, * GetSampledRequests returns information about all of them.

*/ inline GetSampledRequestsRequest& WithMaxItems(long long value) { SetMaxItems(value); return *this;} private: Aws::String m_webAclId; bool m_webAclIdHasBeenSet = false; Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; TimeWindow m_timeWindow; bool m_timeWindowHasBeenSet = false; long long m_maxItems; bool m_maxItemsHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws