feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,756 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/waf-regional/model/WafAction.h>
#include <aws/waf-regional/model/WafOverrideAction.h>
#include <aws/waf-regional/model/WafRuleType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/ExcludedRule.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>The
* <code>ActivatedRule</code> object in an <a>UpdateWebACL</a> request specifies a
* <code>Rule</code> that you want to insert or delete, the priority of the
* <code>Rule</code> in the <code>WebACL</code>, and the action that you want AWS
* WAF to take when a web request matches the <code>Rule</code>
* (<code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>).</p> <p>To
* specify whether to insert or delete a <code>Rule</code>, use the
* <code>Action</code> parameter in the <a>WebACLUpdate</a> data
* type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ActivatedRule">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API ActivatedRule
{
public:
ActivatedRule();
ActivatedRule(Aws::Utils::Json::JsonView jsonValue);
ActivatedRule& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the order in which the <code>Rules</code> in a <code>WebACL</code>
* are evaluated. Rules with a lower value for <code>Priority</code> are evaluated
* before <code>Rules</code> with a higher value. The value must be a unique
* integer. If you add multiple <code>Rules</code> to a <code>WebACL</code>, the
* values don't need to be consecutive.</p>
*/
inline int GetPriority() const{ return m_priority; }
/**
* <p>Specifies the order in which the <code>Rules</code> in a <code>WebACL</code>
* are evaluated. Rules with a lower value for <code>Priority</code> are evaluated
* before <code>Rules</code> with a higher value. The value must be a unique
* integer. If you add multiple <code>Rules</code> to a <code>WebACL</code>, the
* values don't need to be consecutive.</p>
*/
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
/**
* <p>Specifies the order in which the <code>Rules</code> in a <code>WebACL</code>
* are evaluated. Rules with a lower value for <code>Priority</code> are evaluated
* before <code>Rules</code> with a higher value. The value must be a unique
* integer. If you add multiple <code>Rules</code> to a <code>WebACL</code>, the
* values don't need to be consecutive.</p>
*/
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
/**
* <p>Specifies the order in which the <code>Rules</code> in a <code>WebACL</code>
* are evaluated. Rules with a lower value for <code>Priority</code> are evaluated
* before <code>Rules</code> with a higher value. The value must be a unique
* integer. If you add multiple <code>Rules</code> to a <code>WebACL</code>, the
* values don't need to be consecutive.</p>
*/
inline ActivatedRule& WithPriority(int value) { SetPriority(value); return *this;}
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline ActivatedRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline ActivatedRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The <code>RuleId</code> for a <code>Rule</code>. You use <code>RuleId</code>
* to get more information about a <code>Rule</code> (see <a>GetRule</a>), update a
* <code>Rule</code> (see <a>UpdateRule</a>), insert a <code>Rule</code> into a
* <code>WebACL</code> or delete a one from a <code>WebACL</code> (see
* <a>UpdateWebACL</a>), or delete a <code>Rule</code> from AWS WAF (see
* <a>DeleteRule</a>).</p> <p> <code>RuleId</code> is returned by <a>CreateRule</a>
* and by <a>ListRules</a>.</p>
*/
inline ActivatedRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
/**
* <p>Specifies the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the <code>Rule</code>. Valid values for
* <code>Action</code> include the following:</p> <ul> <li> <p> <code>ALLOW</code>:
* CloudFront responds with the requested object.</p> </li> <li> <p>
* <code>BLOCK</code>: CloudFront responds with an HTTP 403 (Forbidden) status
* code.</p> </li> <li> <p> <code>COUNT</code>: AWS WAF increments a counter of
* requests that match the conditions in the rule and then continues to inspect the
* web request based on the remaining rules in the web ACL. </p> </li> </ul> <p>
* <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a
* <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline const WafAction& GetAction() const{ return m_action; }
/**
* <p>Specifies the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the <code>Rule</code>. Valid values for
* <code>Action</code> include the following:</p> <ul> <li> <p> <code>ALLOW</code>:
* CloudFront responds with the requested object.</p> </li> <li> <p>
* <code>BLOCK</code>: CloudFront responds with an HTTP 403 (Forbidden) status
* code.</p> </li> <li> <p> <code>COUNT</code>: AWS WAF increments a counter of
* requests that match the conditions in the rule and then continues to inspect the
* web request based on the remaining rules in the web ACL. </p> </li> </ul> <p>
* <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a
* <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>Specifies the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the <code>Rule</code>. Valid values for
* <code>Action</code> include the following:</p> <ul> <li> <p> <code>ALLOW</code>:
* CloudFront responds with the requested object.</p> </li> <li> <p>
* <code>BLOCK</code>: CloudFront responds with an HTTP 403 (Forbidden) status
* code.</p> </li> <li> <p> <code>COUNT</code>: AWS WAF increments a counter of
* requests that match the conditions in the rule and then continues to inspect the
* web request based on the remaining rules in the web ACL. </p> </li> </ul> <p>
* <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a
* <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline void SetAction(const WafAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>Specifies the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the <code>Rule</code>. Valid values for
* <code>Action</code> include the following:</p> <ul> <li> <p> <code>ALLOW</code>:
* CloudFront responds with the requested object.</p> </li> <li> <p>
* <code>BLOCK</code>: CloudFront responds with an HTTP 403 (Forbidden) status
* code.</p> </li> <li> <p> <code>COUNT</code>: AWS WAF increments a counter of
* requests that match the conditions in the rule and then continues to inspect the
* web request based on the remaining rules in the web ACL. </p> </li> </ul> <p>
* <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a
* <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline void SetAction(WafAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>Specifies the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the <code>Rule</code>. Valid values for
* <code>Action</code> include the following:</p> <ul> <li> <p> <code>ALLOW</code>:
* CloudFront responds with the requested object.</p> </li> <li> <p>
* <code>BLOCK</code>: CloudFront responds with an HTTP 403 (Forbidden) status
* code.</p> </li> <li> <p> <code>COUNT</code>: AWS WAF increments a counter of
* requests that match the conditions in the rule and then continues to inspect the
* web request based on the remaining rules in the web ACL. </p> </li> </ul> <p>
* <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a
* <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline ActivatedRule& WithAction(const WafAction& value) { SetAction(value); return *this;}
/**
* <p>Specifies the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the <code>Rule</code>. Valid values for
* <code>Action</code> include the following:</p> <ul> <li> <p> <code>ALLOW</code>:
* CloudFront responds with the requested object.</p> </li> <li> <p>
* <code>BLOCK</code>: CloudFront responds with an HTTP 403 (Forbidden) status
* code.</p> </li> <li> <p> <code>COUNT</code>: AWS WAF increments a counter of
* requests that match the conditions in the rule and then continues to inspect the
* web request based on the remaining rules in the web ACL. </p> </li> </ul> <p>
* <code>ActivatedRule|OverrideAction</code> applies only when updating or adding a
* <code>RuleGroup</code> to a <code>WebACL</code>. In this case, you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline ActivatedRule& WithAction(WafAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>Use the <code>OverrideAction</code> to test your <code>RuleGroup</code>.</p>
* <p>Any rule in a <code>RuleGroup</code> can potentially block a request. If you
* set the <code>OverrideAction</code> to <code>None</code>, the
* <code>RuleGroup</code> will block a request if any individual rule in the
* <code>RuleGroup</code> matches the request and is configured to block that
* request. However if you first want to test the <code>RuleGroup</code>, set the
* <code>OverrideAction</code> to <code>Count</code>. The <code>RuleGroup</code>
* will then override any block action specified by individual rules contained
* within the group. Instead of blocking matching requests, those requests will be
* counted. You can view a record of counted requests using
* <a>GetSampledRequests</a>. </p> <p> <code>ActivatedRule|OverrideAction</code>
* applies only when updating or adding a <code>RuleGroup</code> to a
* <code>WebACL</code>. In this case you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline const WafOverrideAction& GetOverrideAction() const{ return m_overrideAction; }
/**
* <p>Use the <code>OverrideAction</code> to test your <code>RuleGroup</code>.</p>
* <p>Any rule in a <code>RuleGroup</code> can potentially block a request. If you
* set the <code>OverrideAction</code> to <code>None</code>, the
* <code>RuleGroup</code> will block a request if any individual rule in the
* <code>RuleGroup</code> matches the request and is configured to block that
* request. However if you first want to test the <code>RuleGroup</code>, set the
* <code>OverrideAction</code> to <code>Count</code>. The <code>RuleGroup</code>
* will then override any block action specified by individual rules contained
* within the group. Instead of blocking matching requests, those requests will be
* counted. You can view a record of counted requests using
* <a>GetSampledRequests</a>. </p> <p> <code>ActivatedRule|OverrideAction</code>
* applies only when updating or adding a <code>RuleGroup</code> to a
* <code>WebACL</code>. In this case you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline bool OverrideActionHasBeenSet() const { return m_overrideActionHasBeenSet; }
/**
* <p>Use the <code>OverrideAction</code> to test your <code>RuleGroup</code>.</p>
* <p>Any rule in a <code>RuleGroup</code> can potentially block a request. If you
* set the <code>OverrideAction</code> to <code>None</code>, the
* <code>RuleGroup</code> will block a request if any individual rule in the
* <code>RuleGroup</code> matches the request and is configured to block that
* request. However if you first want to test the <code>RuleGroup</code>, set the
* <code>OverrideAction</code> to <code>Count</code>. The <code>RuleGroup</code>
* will then override any block action specified by individual rules contained
* within the group. Instead of blocking matching requests, those requests will be
* counted. You can view a record of counted requests using
* <a>GetSampledRequests</a>. </p> <p> <code>ActivatedRule|OverrideAction</code>
* applies only when updating or adding a <code>RuleGroup</code> to a
* <code>WebACL</code>. In this case you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline void SetOverrideAction(const WafOverrideAction& value) { m_overrideActionHasBeenSet = true; m_overrideAction = value; }
/**
* <p>Use the <code>OverrideAction</code> to test your <code>RuleGroup</code>.</p>
* <p>Any rule in a <code>RuleGroup</code> can potentially block a request. If you
* set the <code>OverrideAction</code> to <code>None</code>, the
* <code>RuleGroup</code> will block a request if any individual rule in the
* <code>RuleGroup</code> matches the request and is configured to block that
* request. However if you first want to test the <code>RuleGroup</code>, set the
* <code>OverrideAction</code> to <code>Count</code>. The <code>RuleGroup</code>
* will then override any block action specified by individual rules contained
* within the group. Instead of blocking matching requests, those requests will be
* counted. You can view a record of counted requests using
* <a>GetSampledRequests</a>. </p> <p> <code>ActivatedRule|OverrideAction</code>
* applies only when updating or adding a <code>RuleGroup</code> to a
* <code>WebACL</code>. In this case you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline void SetOverrideAction(WafOverrideAction&& value) { m_overrideActionHasBeenSet = true; m_overrideAction = std::move(value); }
/**
* <p>Use the <code>OverrideAction</code> to test your <code>RuleGroup</code>.</p>
* <p>Any rule in a <code>RuleGroup</code> can potentially block a request. If you
* set the <code>OverrideAction</code> to <code>None</code>, the
* <code>RuleGroup</code> will block a request if any individual rule in the
* <code>RuleGroup</code> matches the request and is configured to block that
* request. However if you first want to test the <code>RuleGroup</code>, set the
* <code>OverrideAction</code> to <code>Count</code>. The <code>RuleGroup</code>
* will then override any block action specified by individual rules contained
* within the group. Instead of blocking matching requests, those requests will be
* counted. You can view a record of counted requests using
* <a>GetSampledRequests</a>. </p> <p> <code>ActivatedRule|OverrideAction</code>
* applies only when updating or adding a <code>RuleGroup</code> to a
* <code>WebACL</code>. In this case you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline ActivatedRule& WithOverrideAction(const WafOverrideAction& value) { SetOverrideAction(value); return *this;}
/**
* <p>Use the <code>OverrideAction</code> to test your <code>RuleGroup</code>.</p>
* <p>Any rule in a <code>RuleGroup</code> can potentially block a request. If you
* set the <code>OverrideAction</code> to <code>None</code>, the
* <code>RuleGroup</code> will block a request if any individual rule in the
* <code>RuleGroup</code> matches the request and is configured to block that
* request. However if you first want to test the <code>RuleGroup</code>, set the
* <code>OverrideAction</code> to <code>Count</code>. The <code>RuleGroup</code>
* will then override any block action specified by individual rules contained
* within the group. Instead of blocking matching requests, those requests will be
* counted. You can view a record of counted requests using
* <a>GetSampledRequests</a>. </p> <p> <code>ActivatedRule|OverrideAction</code>
* applies only when updating or adding a <code>RuleGroup</code> to a
* <code>WebACL</code>. In this case you do not use
* <code>ActivatedRule|Action</code>. For all other update requests,
* <code>ActivatedRule|Action</code> is used instead of
* <code>ActivatedRule|OverrideAction</code>.</p>
*/
inline ActivatedRule& WithOverrideAction(WafOverrideAction&& value) { SetOverrideAction(std::move(value)); return *this;}
/**
* <p>The rule type, either <code>REGULAR</code>, as defined by <a>Rule</a>,
* <code>RATE_BASED</code>, as defined by <a>RateBasedRule</a>, or
* <code>GROUP</code>, as defined by <a>RuleGroup</a>. The default is REGULAR.
* Although this field is optional, be aware that if you try to add a RATE_BASED
* rule to a web ACL without setting the type, the <a>UpdateWebACL</a> request will
* fail because the request tries to add a REGULAR rule with the specified ID,
* which does not exist. </p>
*/
inline const WafRuleType& GetType() const{ return m_type; }
/**
* <p>The rule type, either <code>REGULAR</code>, as defined by <a>Rule</a>,
* <code>RATE_BASED</code>, as defined by <a>RateBasedRule</a>, or
* <code>GROUP</code>, as defined by <a>RuleGroup</a>. The default is REGULAR.
* Although this field is optional, be aware that if you try to add a RATE_BASED
* rule to a web ACL without setting the type, the <a>UpdateWebACL</a> request will
* fail because the request tries to add a REGULAR rule with the specified ID,
* which does not exist. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The rule type, either <code>REGULAR</code>, as defined by <a>Rule</a>,
* <code>RATE_BASED</code>, as defined by <a>RateBasedRule</a>, or
* <code>GROUP</code>, as defined by <a>RuleGroup</a>. The default is REGULAR.
* Although this field is optional, be aware that if you try to add a RATE_BASED
* rule to a web ACL without setting the type, the <a>UpdateWebACL</a> request will
* fail because the request tries to add a REGULAR rule with the specified ID,
* which does not exist. </p>
*/
inline void SetType(const WafRuleType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The rule type, either <code>REGULAR</code>, as defined by <a>Rule</a>,
* <code>RATE_BASED</code>, as defined by <a>RateBasedRule</a>, or
* <code>GROUP</code>, as defined by <a>RuleGroup</a>. The default is REGULAR.
* Although this field is optional, be aware that if you try to add a RATE_BASED
* rule to a web ACL without setting the type, the <a>UpdateWebACL</a> request will
* fail because the request tries to add a REGULAR rule with the specified ID,
* which does not exist. </p>
*/
inline void SetType(WafRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The rule type, either <code>REGULAR</code>, as defined by <a>Rule</a>,
* <code>RATE_BASED</code>, as defined by <a>RateBasedRule</a>, or
* <code>GROUP</code>, as defined by <a>RuleGroup</a>. The default is REGULAR.
* Although this field is optional, be aware that if you try to add a RATE_BASED
* rule to a web ACL without setting the type, the <a>UpdateWebACL</a> request will
* fail because the request tries to add a REGULAR rule with the specified ID,
* which does not exist. </p>
*/
inline ActivatedRule& WithType(const WafRuleType& value) { SetType(value); return *this;}
/**
* <p>The rule type, either <code>REGULAR</code>, as defined by <a>Rule</a>,
* <code>RATE_BASED</code>, as defined by <a>RateBasedRule</a>, or
* <code>GROUP</code>, as defined by <a>RuleGroup</a>. The default is REGULAR.
* Although this field is optional, be aware that if you try to add a RATE_BASED
* rule to a web ACL without setting the type, the <a>UpdateWebACL</a> request will
* fail because the request tries to add a REGULAR rule with the specified ID,
* which does not exist. </p>
*/
inline ActivatedRule& WithType(WafRuleType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline const Aws::Vector<ExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline void SetExcludedRules(const Aws::Vector<ExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline void SetExcludedRules(Aws::Vector<ExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline ActivatedRule& WithExcludedRules(const Aws::Vector<ExcludedRule>& value) { SetExcludedRules(value); return *this;}
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline ActivatedRule& WithExcludedRules(Aws::Vector<ExcludedRule>&& value) { SetExcludedRules(std::move(value)); return *this;}
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline ActivatedRule& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
/**
* <p>An array of rules to exclude from a rule group. This is applicable only when
* the <code>ActivatedRule</code> refers to a <code>RuleGroup</code>.</p>
* <p>Sometimes it is necessary to troubleshoot rule groups that are blocking
* traffic unexpectedly (false positives). One troubleshooting technique is to
* identify the specific rule within the rule group that is blocking the legitimate
* traffic and then disable (exclude) that particular rule. You can exclude rules
* from both your own rule groups and AWS Marketplace rule groups that have been
* associated with a web ACL.</p> <p>Specifying <code>ExcludedRules</code> does not
* remove those rules from the rule group. Rather, it changes the action for the
* rules to <code>COUNT</code>. Therefore, requests that match an
* <code>ExcludedRule</code> are counted but not blocked. The
* <code>RuleGroup</code> owner will receive COUNT metrics for each
* <code>ExcludedRule</code>.</p> <p>If you want to exclude rules from a rule group
* that is already associated with a web ACL, perform the following steps:</p> <ol>
* <li> <p>Use the AWS WAF logs to identify the IDs of the rules that you want to
* exclude. For more information about the logs, see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging
* Web ACL Traffic Information</a>.</p> </li> <li> <p>Submit an <a>UpdateWebACL</a>
* request that has two actions:</p> <ul> <li> <p>The first action deletes the
* existing rule group from the web ACL. That is, in the <a>UpdateWebACL</a>
* request, the first <code>Updates:Action</code> should be <code>DELETE</code> and
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that contains
* the rules that you want to exclude.</p> </li> <li> <p>The second action inserts
* the same rule group back in, but specifying the rules to exclude. That is, the
* second <code>Updates:Action</code> should be <code>INSERT</code>,
* <code>Updates:ActivatedRule:RuleId</code> should be the rule group that you just
* removed, and <code>ExcludedRules</code> should contain the rules that you want
* to exclude.</p> </li> </ul> </li> </ol>
*/
inline ActivatedRule& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
private:
int m_priority;
bool m_priorityHasBeenSet;
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
WafAction m_action;
bool m_actionHasBeenSet;
WafOverrideAction m_overrideAction;
bool m_overrideActionHasBeenSet;
WafRuleType m_type;
bool m_typeHasBeenSet;
Aws::Vector<ExcludedRule> m_excludedRules;
bool m_excludedRulesHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,185 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API AssociateWebACLRequest : public WAFRegionalRequest
{
public:
AssociateWebACLRequest();
// 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 "AssociateWebACL"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline AssociateWebACLRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline AssociateWebACLRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
/**
* <p>A unique identifier (ID) for the web ACL. </p>
*/
inline AssociateWebACLRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline AssociateWebACLRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline AssociateWebACLRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the resource to be protected, either an
* application load balancer or Amazon API Gateway stage. </p> <p>The ARN should be
* in one of the following formats:</p> <ul> <li> <p>For an Application Load
* Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline AssociateWebACLRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_webACLId;
bool m_webACLIdHasBeenSet;
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API AssociateWebACLResult
{
public:
AssociateWebACLResult();
AssociateWebACLResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateWebACLResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,275 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/ByteMatchTuple.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>In a
* <a>GetByteMatchSet</a> request, <code>ByteMatchSet</code> is a complex type that
* contains the <code>ByteMatchSetId</code> and <code>Name</code> of a
* <code>ByteMatchSet</code>, and the values that you specified when you updated
* the <code>ByteMatchSet</code>. </p> <p>A complex type that contains
* <code>ByteMatchTuple</code> objects, which specify the parts of web requests
* that you want AWS WAF to inspect and the values that you want AWS WAF to search
* for. If a <code>ByteMatchSet</code> contains more than one
* <code>ByteMatchTuple</code> object, a request needs to match the settings in
* only one <code>ByteMatchTuple</code> to be considered a match.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ByteMatchSet">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API ByteMatchSet
{
public:
ByteMatchSet();
ByteMatchSet(Aws::Utils::Json::JsonView jsonValue);
ByteMatchSet& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = std::move(value); }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline ByteMatchSet& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline ByteMatchSet& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a <code>ByteMatchSet</code>
* (see <a>GetByteMatchSet</a>), update a <code>ByteMatchSet</code> (see
* <a>UpdateByteMatchSet</a>), insert a <code>ByteMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>ByteMatchSet</code> from AWS WAF (see
* <a>DeleteByteMatchSet</a>).</p> <p> <code>ByteMatchSetId</code> is returned by
* <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline ByteMatchSet& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSet& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline const Aws::Vector<ByteMatchTuple>& GetByteMatchTuples() const{ return m_byteMatchTuples; }
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline bool ByteMatchTuplesHasBeenSet() const { return m_byteMatchTuplesHasBeenSet; }
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline void SetByteMatchTuples(const Aws::Vector<ByteMatchTuple>& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples = value; }
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline void SetByteMatchTuples(Aws::Vector<ByteMatchTuple>&& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples = std::move(value); }
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline ByteMatchSet& WithByteMatchTuples(const Aws::Vector<ByteMatchTuple>& value) { SetByteMatchTuples(value); return *this;}
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline ByteMatchSet& WithByteMatchTuples(Aws::Vector<ByteMatchTuple>&& value) { SetByteMatchTuples(std::move(value)); return *this;}
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline ByteMatchSet& AddByteMatchTuples(const ByteMatchTuple& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples.push_back(value); return *this; }
/**
* <p>Specifies the bytes (typically a string that corresponds with ASCII
* characters) that you want AWS WAF to search for in web requests, the location in
* requests that you want AWS WAF to search, and other settings.</p>
*/
inline ByteMatchSet& AddByteMatchTuples(ByteMatchTuple&& value) { m_byteMatchTuplesHasBeenSet = true; m_byteMatchTuples.push_back(std::move(value)); return *this; }
private:
Aws::String m_byteMatchSetId;
bool m_byteMatchSetIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<ByteMatchTuple> m_byteMatchTuples;
bool m_byteMatchTuplesHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,190 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>Returned by
* <a>ListByteMatchSets</a>. Each <code>ByteMatchSetSummary</code> object includes
* the <code>Name</code> and <code>ByteMatchSetId</code> for one
* <a>ByteMatchSet</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ByteMatchSetSummary">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API ByteMatchSetSummary
{
public:
ByteMatchSetSummary();
ByteMatchSetSummary(Aws::Utils::Json::JsonView jsonValue);
ByteMatchSetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = std::move(value); }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline ByteMatchSetSummary& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline ByteMatchSetSummary& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> for a <code>ByteMatchSet</code>. You use
* <code>ByteMatchSetId</code> to get information about a
* <code>ByteMatchSet</code>, update a <code>ByteMatchSet</code>, remove a
* <code>ByteMatchSet</code> from a <code>Rule</code>, and delete a
* <code>ByteMatchSet</code> from AWS WAF.</p> <p> <code>ByteMatchSetId</code> is
* returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.</p>
*/
inline ByteMatchSetSummary& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSetSummary& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_byteMatchSetId;
bool m_byteMatchSetIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/ChangeAction.h>
#include <aws/waf-regional/model/ByteMatchTuple.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>In an
* <a>UpdateByteMatchSet</a> request, <code>ByteMatchSetUpdate</code> specifies
* whether to insert or delete a <a>ByteMatchTuple</a> and includes the settings
* for the <code>ByteMatchTuple</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ByteMatchSetUpdate">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API ByteMatchSetUpdate
{
public:
ByteMatchSetUpdate();
ByteMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue);
ByteMatchSetUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies whether to insert or delete a <a>ByteMatchTuple</a>.</p>
*/
inline const ChangeAction& GetAction() const{ return m_action; }
/**
* <p>Specifies whether to insert or delete a <a>ByteMatchTuple</a>.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>Specifies whether to insert or delete a <a>ByteMatchTuple</a>.</p>
*/
inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>Specifies whether to insert or delete a <a>ByteMatchTuple</a>.</p>
*/
inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>Specifies whether to insert or delete a <a>ByteMatchTuple</a>.</p>
*/
inline ByteMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
/**
* <p>Specifies whether to insert or delete a <a>ByteMatchTuple</a>.</p>
*/
inline ByteMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>Information about the part of a web request that you want AWS WAF to inspect
* and the value that you want AWS WAF to search for. If you specify
* <code>DELETE</code> for the value of <code>Action</code>, the
* <code>ByteMatchTuple</code> values must exactly match the values in the
* <code>ByteMatchTuple</code> that you want to delete from the
* <code>ByteMatchSet</code>.</p>
*/
inline const ByteMatchTuple& GetByteMatchTuple() const{ return m_byteMatchTuple; }
/**
* <p>Information about the part of a web request that you want AWS WAF to inspect
* and the value that you want AWS WAF to search for. If you specify
* <code>DELETE</code> for the value of <code>Action</code>, the
* <code>ByteMatchTuple</code> values must exactly match the values in the
* <code>ByteMatchTuple</code> that you want to delete from the
* <code>ByteMatchSet</code>.</p>
*/
inline bool ByteMatchTupleHasBeenSet() const { return m_byteMatchTupleHasBeenSet; }
/**
* <p>Information about the part of a web request that you want AWS WAF to inspect
* and the value that you want AWS WAF to search for. If you specify
* <code>DELETE</code> for the value of <code>Action</code>, the
* <code>ByteMatchTuple</code> values must exactly match the values in the
* <code>ByteMatchTuple</code> that you want to delete from the
* <code>ByteMatchSet</code>.</p>
*/
inline void SetByteMatchTuple(const ByteMatchTuple& value) { m_byteMatchTupleHasBeenSet = true; m_byteMatchTuple = value; }
/**
* <p>Information about the part of a web request that you want AWS WAF to inspect
* and the value that you want AWS WAF to search for. If you specify
* <code>DELETE</code> for the value of <code>Action</code>, the
* <code>ByteMatchTuple</code> values must exactly match the values in the
* <code>ByteMatchTuple</code> that you want to delete from the
* <code>ByteMatchSet</code>.</p>
*/
inline void SetByteMatchTuple(ByteMatchTuple&& value) { m_byteMatchTupleHasBeenSet = true; m_byteMatchTuple = std::move(value); }
/**
* <p>Information about the part of a web request that you want AWS WAF to inspect
* and the value that you want AWS WAF to search for. If you specify
* <code>DELETE</code> for the value of <code>Action</code>, the
* <code>ByteMatchTuple</code> values must exactly match the values in the
* <code>ByteMatchTuple</code> that you want to delete from the
* <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSetUpdate& WithByteMatchTuple(const ByteMatchTuple& value) { SetByteMatchTuple(value); return *this;}
/**
* <p>Information about the part of a web request that you want AWS WAF to inspect
* and the value that you want AWS WAF to search for. If you specify
* <code>DELETE</code> for the value of <code>Action</code>, the
* <code>ByteMatchTuple</code> values must exactly match the values in the
* <code>ByteMatchTuple</code> that you want to delete from the
* <code>ByteMatchSet</code>.</p>
*/
inline ByteMatchSetUpdate& WithByteMatchTuple(ByteMatchTuple&& value) { SetByteMatchTuple(std::move(value)); return *this;}
private:
ChangeAction m_action;
bool m_actionHasBeenSet;
ByteMatchTuple m_byteMatchTuple;
bool m_byteMatchTupleHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,793 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/FieldToMatch.h>
#include <aws/core/utils/Array.h>
#include <aws/waf-regional/model/TextTransformation.h>
#include <aws/waf-regional/model/PositionalConstraint.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>The bytes (typically a
* string that corresponds with ASCII characters) that you want AWS WAF to search
* for in web requests, the location in requests that you want AWS WAF to search,
* and other settings.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ByteMatchTuple">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API ByteMatchTuple
{
public:
ByteMatchTuple();
ByteMatchTuple(Aws::Utils::Json::JsonView jsonValue);
ByteMatchTuple& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The part of a web request that you want AWS WAF to search, such as a
* specified header or a query string. For more information, see
* <a>FieldToMatch</a>.</p>
*/
inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
/**
* <p>The part of a web request that you want AWS WAF to search, such as a
* specified header or a query string. For more information, see
* <a>FieldToMatch</a>.</p>
*/
inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
/**
* <p>The part of a web request that you want AWS WAF to search, such as a
* specified header or a query string. For more information, see
* <a>FieldToMatch</a>.</p>
*/
inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
/**
* <p>The part of a web request that you want AWS WAF to search, such as a
* specified header or a query string. For more information, see
* <a>FieldToMatch</a>.</p>
*/
inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
/**
* <p>The part of a web request that you want AWS WAF to search, such as a
* specified header or a query string. For more information, see
* <a>FieldToMatch</a>.</p>
*/
inline ByteMatchTuple& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
/**
* <p>The part of a web request that you want AWS WAF to search, such as a
* specified header or a query string. For more information, see
* <a>FieldToMatch</a>.</p>
*/
inline ByteMatchTuple& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
/**
* <p>The value that you want AWS WAF to search for. AWS WAF searches for the
* specified string in the part of web requests that you specified in
* <code>FieldToMatch</code>. The maximum length of the value is 50 bytes.</p>
* <p>Valid values depend on the values that you specified for
* <code>FieldToMatch</code>:</p> <ul> <li> <p> <code>HEADER</code>: The value that
* you want AWS WAF to search for in the request header that you specified in
* <a>FieldToMatch</a>, for example, the value of the <code>User-Agent</code> or
* <code>Referer</code> header.</p> </li> <li> <p> <code>METHOD</code>: The HTTP
* method, which indicates the type of operation specified in the request.
* CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: The value that you want AWS WAF to search for in the
* query string, which is the part of a URL that appears after a <code>?</code>
* character.</p> </li> <li> <p> <code>URI</code>: The value that you want AWS WAF
* to search for in the part of a URL that identifies a resource, for example,
* <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p> <code>BODY</code>: The
* part of a request that contains any additional data that you want to send to
* your web server as the HTTP request body, such as data from a form. The request
* body immediately follows the request headers. Note that only the first
* <code>8192</code> bytes of the request body are forwarded to AWS WAF for
* inspection. To allow or block requests based on the length of the body, you can
* create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* instead of inspecting a single parameter, AWS WAF inspects all parameters within
* the query string for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul> <p>If <code>TargetString</code>
* includes alphabetic characters A-Z and a-z, note that the value is case
* sensitive.</p> <p> <b>If you're using the AWS WAF API</b> </p> <p>Specify a
* base64-encoded version of the value. The maximum length of the value before you
* base64-encode it is 50 bytes.</p> <p>For example, suppose the value of
* <code>Type</code> is <code>HEADER</code> and the value of <code>Data</code> is
* <code>User-Agent</code>. If you want to search the <code>User-Agent</code>
* header for the value <code>BadBot</code>, you base64-encode <code>BadBot</code>
* using MIME base64-encoding and include the resulting value,
* <code>QmFkQm90</code>, in the value of <code>TargetString</code>.</p> <p> <b>If
* you're using the AWS CLI or one of the AWS SDKs</b> </p> <p>The value that you
* want AWS WAF to search for. The SDK automatically base64 encodes the value.</p>
*/
inline const Aws::Utils::ByteBuffer& GetTargetString() const{ return m_targetString; }
/**
* <p>The value that you want AWS WAF to search for. AWS WAF searches for the
* specified string in the part of web requests that you specified in
* <code>FieldToMatch</code>. The maximum length of the value is 50 bytes.</p>
* <p>Valid values depend on the values that you specified for
* <code>FieldToMatch</code>:</p> <ul> <li> <p> <code>HEADER</code>: The value that
* you want AWS WAF to search for in the request header that you specified in
* <a>FieldToMatch</a>, for example, the value of the <code>User-Agent</code> or
* <code>Referer</code> header.</p> </li> <li> <p> <code>METHOD</code>: The HTTP
* method, which indicates the type of operation specified in the request.
* CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: The value that you want AWS WAF to search for in the
* query string, which is the part of a URL that appears after a <code>?</code>
* character.</p> </li> <li> <p> <code>URI</code>: The value that you want AWS WAF
* to search for in the part of a URL that identifies a resource, for example,
* <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p> <code>BODY</code>: The
* part of a request that contains any additional data that you want to send to
* your web server as the HTTP request body, such as data from a form. The request
* body immediately follows the request headers. Note that only the first
* <code>8192</code> bytes of the request body are forwarded to AWS WAF for
* inspection. To allow or block requests based on the length of the body, you can
* create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* instead of inspecting a single parameter, AWS WAF inspects all parameters within
* the query string for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul> <p>If <code>TargetString</code>
* includes alphabetic characters A-Z and a-z, note that the value is case
* sensitive.</p> <p> <b>If you're using the AWS WAF API</b> </p> <p>Specify a
* base64-encoded version of the value. The maximum length of the value before you
* base64-encode it is 50 bytes.</p> <p>For example, suppose the value of
* <code>Type</code> is <code>HEADER</code> and the value of <code>Data</code> is
* <code>User-Agent</code>. If you want to search the <code>User-Agent</code>
* header for the value <code>BadBot</code>, you base64-encode <code>BadBot</code>
* using MIME base64-encoding and include the resulting value,
* <code>QmFkQm90</code>, in the value of <code>TargetString</code>.</p> <p> <b>If
* you're using the AWS CLI or one of the AWS SDKs</b> </p> <p>The value that you
* want AWS WAF to search for. The SDK automatically base64 encodes the value.</p>
*/
inline bool TargetStringHasBeenSet() const { return m_targetStringHasBeenSet; }
/**
* <p>The value that you want AWS WAF to search for. AWS WAF searches for the
* specified string in the part of web requests that you specified in
* <code>FieldToMatch</code>. The maximum length of the value is 50 bytes.</p>
* <p>Valid values depend on the values that you specified for
* <code>FieldToMatch</code>:</p> <ul> <li> <p> <code>HEADER</code>: The value that
* you want AWS WAF to search for in the request header that you specified in
* <a>FieldToMatch</a>, for example, the value of the <code>User-Agent</code> or
* <code>Referer</code> header.</p> </li> <li> <p> <code>METHOD</code>: The HTTP
* method, which indicates the type of operation specified in the request.
* CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: The value that you want AWS WAF to search for in the
* query string, which is the part of a URL that appears after a <code>?</code>
* character.</p> </li> <li> <p> <code>URI</code>: The value that you want AWS WAF
* to search for in the part of a URL that identifies a resource, for example,
* <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p> <code>BODY</code>: The
* part of a request that contains any additional data that you want to send to
* your web server as the HTTP request body, such as data from a form. The request
* body immediately follows the request headers. Note that only the first
* <code>8192</code> bytes of the request body are forwarded to AWS WAF for
* inspection. To allow or block requests based on the length of the body, you can
* create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* instead of inspecting a single parameter, AWS WAF inspects all parameters within
* the query string for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul> <p>If <code>TargetString</code>
* includes alphabetic characters A-Z and a-z, note that the value is case
* sensitive.</p> <p> <b>If you're using the AWS WAF API</b> </p> <p>Specify a
* base64-encoded version of the value. The maximum length of the value before you
* base64-encode it is 50 bytes.</p> <p>For example, suppose the value of
* <code>Type</code> is <code>HEADER</code> and the value of <code>Data</code> is
* <code>User-Agent</code>. If you want to search the <code>User-Agent</code>
* header for the value <code>BadBot</code>, you base64-encode <code>BadBot</code>
* using MIME base64-encoding and include the resulting value,
* <code>QmFkQm90</code>, in the value of <code>TargetString</code>.</p> <p> <b>If
* you're using the AWS CLI or one of the AWS SDKs</b> </p> <p>The value that you
* want AWS WAF to search for. The SDK automatically base64 encodes the value.</p>
*/
inline void SetTargetString(const Aws::Utils::ByteBuffer& value) { m_targetStringHasBeenSet = true; m_targetString = value; }
/**
* <p>The value that you want AWS WAF to search for. AWS WAF searches for the
* specified string in the part of web requests that you specified in
* <code>FieldToMatch</code>. The maximum length of the value is 50 bytes.</p>
* <p>Valid values depend on the values that you specified for
* <code>FieldToMatch</code>:</p> <ul> <li> <p> <code>HEADER</code>: The value that
* you want AWS WAF to search for in the request header that you specified in
* <a>FieldToMatch</a>, for example, the value of the <code>User-Agent</code> or
* <code>Referer</code> header.</p> </li> <li> <p> <code>METHOD</code>: The HTTP
* method, which indicates the type of operation specified in the request.
* CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: The value that you want AWS WAF to search for in the
* query string, which is the part of a URL that appears after a <code>?</code>
* character.</p> </li> <li> <p> <code>URI</code>: The value that you want AWS WAF
* to search for in the part of a URL that identifies a resource, for example,
* <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p> <code>BODY</code>: The
* part of a request that contains any additional data that you want to send to
* your web server as the HTTP request body, such as data from a form. The request
* body immediately follows the request headers. Note that only the first
* <code>8192</code> bytes of the request body are forwarded to AWS WAF for
* inspection. To allow or block requests based on the length of the body, you can
* create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* instead of inspecting a single parameter, AWS WAF inspects all parameters within
* the query string for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul> <p>If <code>TargetString</code>
* includes alphabetic characters A-Z and a-z, note that the value is case
* sensitive.</p> <p> <b>If you're using the AWS WAF API</b> </p> <p>Specify a
* base64-encoded version of the value. The maximum length of the value before you
* base64-encode it is 50 bytes.</p> <p>For example, suppose the value of
* <code>Type</code> is <code>HEADER</code> and the value of <code>Data</code> is
* <code>User-Agent</code>. If you want to search the <code>User-Agent</code>
* header for the value <code>BadBot</code>, you base64-encode <code>BadBot</code>
* using MIME base64-encoding and include the resulting value,
* <code>QmFkQm90</code>, in the value of <code>TargetString</code>.</p> <p> <b>If
* you're using the AWS CLI or one of the AWS SDKs</b> </p> <p>The value that you
* want AWS WAF to search for. The SDK automatically base64 encodes the value.</p>
*/
inline void SetTargetString(Aws::Utils::ByteBuffer&& value) { m_targetStringHasBeenSet = true; m_targetString = std::move(value); }
/**
* <p>The value that you want AWS WAF to search for. AWS WAF searches for the
* specified string in the part of web requests that you specified in
* <code>FieldToMatch</code>. The maximum length of the value is 50 bytes.</p>
* <p>Valid values depend on the values that you specified for
* <code>FieldToMatch</code>:</p> <ul> <li> <p> <code>HEADER</code>: The value that
* you want AWS WAF to search for in the request header that you specified in
* <a>FieldToMatch</a>, for example, the value of the <code>User-Agent</code> or
* <code>Referer</code> header.</p> </li> <li> <p> <code>METHOD</code>: The HTTP
* method, which indicates the type of operation specified in the request.
* CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: The value that you want AWS WAF to search for in the
* query string, which is the part of a URL that appears after a <code>?</code>
* character.</p> </li> <li> <p> <code>URI</code>: The value that you want AWS WAF
* to search for in the part of a URL that identifies a resource, for example,
* <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p> <code>BODY</code>: The
* part of a request that contains any additional data that you want to send to
* your web server as the HTTP request body, such as data from a form. The request
* body immediately follows the request headers. Note that only the first
* <code>8192</code> bytes of the request body are forwarded to AWS WAF for
* inspection. To allow or block requests based on the length of the body, you can
* create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* instead of inspecting a single parameter, AWS WAF inspects all parameters within
* the query string for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul> <p>If <code>TargetString</code>
* includes alphabetic characters A-Z and a-z, note that the value is case
* sensitive.</p> <p> <b>If you're using the AWS WAF API</b> </p> <p>Specify a
* base64-encoded version of the value. The maximum length of the value before you
* base64-encode it is 50 bytes.</p> <p>For example, suppose the value of
* <code>Type</code> is <code>HEADER</code> and the value of <code>Data</code> is
* <code>User-Agent</code>. If you want to search the <code>User-Agent</code>
* header for the value <code>BadBot</code>, you base64-encode <code>BadBot</code>
* using MIME base64-encoding and include the resulting value,
* <code>QmFkQm90</code>, in the value of <code>TargetString</code>.</p> <p> <b>If
* you're using the AWS CLI or one of the AWS SDKs</b> </p> <p>The value that you
* want AWS WAF to search for. The SDK automatically base64 encodes the value.</p>
*/
inline ByteMatchTuple& WithTargetString(const Aws::Utils::ByteBuffer& value) { SetTargetString(value); return *this;}
/**
* <p>The value that you want AWS WAF to search for. AWS WAF searches for the
* specified string in the part of web requests that you specified in
* <code>FieldToMatch</code>. The maximum length of the value is 50 bytes.</p>
* <p>Valid values depend on the values that you specified for
* <code>FieldToMatch</code>:</p> <ul> <li> <p> <code>HEADER</code>: The value that
* you want AWS WAF to search for in the request header that you specified in
* <a>FieldToMatch</a>, for example, the value of the <code>User-Agent</code> or
* <code>Referer</code> header.</p> </li> <li> <p> <code>METHOD</code>: The HTTP
* method, which indicates the type of operation specified in the request.
* CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: The value that you want AWS WAF to search for in the
* query string, which is the part of a URL that appears after a <code>?</code>
* character.</p> </li> <li> <p> <code>URI</code>: The value that you want AWS WAF
* to search for in the part of a URL that identifies a resource, for example,
* <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p> <code>BODY</code>: The
* part of a request that contains any additional data that you want to send to
* your web server as the HTTP request body, such as data from a form. The request
* body immediately follows the request headers. Note that only the first
* <code>8192</code> bytes of the request body are forwarded to AWS WAF for
* inspection. To allow or block requests based on the length of the body, you can
* create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* instead of inspecting a single parameter, AWS WAF inspects all parameters within
* the query string for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul> <p>If <code>TargetString</code>
* includes alphabetic characters A-Z and a-z, note that the value is case
* sensitive.</p> <p> <b>If you're using the AWS WAF API</b> </p> <p>Specify a
* base64-encoded version of the value. The maximum length of the value before you
* base64-encode it is 50 bytes.</p> <p>For example, suppose the value of
* <code>Type</code> is <code>HEADER</code> and the value of <code>Data</code> is
* <code>User-Agent</code>. If you want to search the <code>User-Agent</code>
* header for the value <code>BadBot</code>, you base64-encode <code>BadBot</code>
* using MIME base64-encoding and include the resulting value,
* <code>QmFkQm90</code>, in the value of <code>TargetString</code>.</p> <p> <b>If
* you're using the AWS CLI or one of the AWS SDKs</b> </p> <p>The value that you
* want AWS WAF to search for. The SDK automatically base64 encodes the value.</p>
*/
inline ByteMatchTuple& WithTargetString(Aws::Utils::ByteBuffer&& value) { SetTargetString(std::move(value)); return *this;}
/**
* <p>Text transformations eliminate some of the unusual formatting that attackers
* use in web requests in an effort to bypass AWS WAF. If you specify a
* transformation, AWS WAF performs the transformation on <code>FieldToMatch</code>
* before inspecting it for a match.</p> <p>You can only specify a single type of
* TextTransformation.</p> <p> <b>CMD_LINE</b> </p> <p>When you're concerned that
* attackers are injecting an operating system command line command and using
* unusual formatting to disguise some or all of the command, use this option to
* perform the following transformations:</p> <ul> <li> <p>Delete the following
* characters: \ " ' ^</p> </li> <li> <p>Delete spaces before the following
* characters: / (</p> </li> <li> <p>Replace the following characters with a space:
* , ;</p> </li> <li> <p>Replace multiple spaces with one space</p> </li> <li>
* <p>Convert uppercase letters (A-Z) to lowercase (a-z)</p> </li> </ul> <p>
* <b>COMPRESS_WHITE_SPACE</b> </p> <p>Use this option to replace the following
* characters with a space character (decimal 32):</p> <ul> <li> <p>\f, formfeed,
* decimal 12</p> </li> <li> <p>\t, tab, decimal 9</p> </li> <li> <p>\n, newline,
* decimal 10</p> </li> <li> <p>\r, carriage return, decimal 13</p> </li> <li>
* <p>\v, vertical tab, decimal 11</p> </li> <li> <p>non-breaking space, decimal
* 160</p> </li> </ul> <p> <code>COMPRESS_WHITE_SPACE</code> also replaces multiple
* spaces with one space.</p> <p> <b>HTML_ENTITY_DECODE</b> </p> <p>Use this option
* to replace HTML-encoded characters with unencoded characters.
* <code>HTML_ENTITY_DECODE</code> performs the following operations:</p> <ul> <li>
* <p>Replaces <code>(ampersand)quot;</code> with <code>"</code> </p> </li> <li>
* <p>Replaces <code>(ampersand)nbsp;</code> with a non-breaking space, decimal
* 160</p> </li> <li> <p>Replaces <code>(ampersand)lt;</code> with a "less than"
* symbol</p> </li> <li> <p>Replaces <code>(ampersand)gt;</code> with
* <code>&gt;</code> </p> </li> <li> <p>Replaces characters that are represented in
* hexadecimal format, <code>(ampersand)#xhhhh;</code>, with the corresponding
* characters</p> </li> <li> <p>Replaces characters that are represented in decimal
* format, <code>(ampersand)#nnnn;</code>, with the corresponding characters</p>
* </li> </ul> <p> <b>LOWERCASE</b> </p> <p>Use this option to convert uppercase
* letters (A-Z) to lowercase (a-z).</p> <p> <b>URL_DECODE</b> </p> <p>Use this
* option to decode a URL-encoded value.</p> <p> <b>NONE</b> </p> <p>Specify
* <code>NONE</code> if you don't want to perform any text transformations.</p>
*/
inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
/**
* <p>Text transformations eliminate some of the unusual formatting that attackers
* use in web requests in an effort to bypass AWS WAF. If you specify a
* transformation, AWS WAF performs the transformation on <code>FieldToMatch</code>
* before inspecting it for a match.</p> <p>You can only specify a single type of
* TextTransformation.</p> <p> <b>CMD_LINE</b> </p> <p>When you're concerned that
* attackers are injecting an operating system command line command and using
* unusual formatting to disguise some or all of the command, use this option to
* perform the following transformations:</p> <ul> <li> <p>Delete the following
* characters: \ " ' ^</p> </li> <li> <p>Delete spaces before the following
* characters: / (</p> </li> <li> <p>Replace the following characters with a space:
* , ;</p> </li> <li> <p>Replace multiple spaces with one space</p> </li> <li>
* <p>Convert uppercase letters (A-Z) to lowercase (a-z)</p> </li> </ul> <p>
* <b>COMPRESS_WHITE_SPACE</b> </p> <p>Use this option to replace the following
* characters with a space character (decimal 32):</p> <ul> <li> <p>\f, formfeed,
* decimal 12</p> </li> <li> <p>\t, tab, decimal 9</p> </li> <li> <p>\n, newline,
* decimal 10</p> </li> <li> <p>\r, carriage return, decimal 13</p> </li> <li>
* <p>\v, vertical tab, decimal 11</p> </li> <li> <p>non-breaking space, decimal
* 160</p> </li> </ul> <p> <code>COMPRESS_WHITE_SPACE</code> also replaces multiple
* spaces with one space.</p> <p> <b>HTML_ENTITY_DECODE</b> </p> <p>Use this option
* to replace HTML-encoded characters with unencoded characters.
* <code>HTML_ENTITY_DECODE</code> performs the following operations:</p> <ul> <li>
* <p>Replaces <code>(ampersand)quot;</code> with <code>"</code> </p> </li> <li>
* <p>Replaces <code>(ampersand)nbsp;</code> with a non-breaking space, decimal
* 160</p> </li> <li> <p>Replaces <code>(ampersand)lt;</code> with a "less than"
* symbol</p> </li> <li> <p>Replaces <code>(ampersand)gt;</code> with
* <code>&gt;</code> </p> </li> <li> <p>Replaces characters that are represented in
* hexadecimal format, <code>(ampersand)#xhhhh;</code>, with the corresponding
* characters</p> </li> <li> <p>Replaces characters that are represented in decimal
* format, <code>(ampersand)#nnnn;</code>, with the corresponding characters</p>
* </li> </ul> <p> <b>LOWERCASE</b> </p> <p>Use this option to convert uppercase
* letters (A-Z) to lowercase (a-z).</p> <p> <b>URL_DECODE</b> </p> <p>Use this
* option to decode a URL-encoded value.</p> <p> <b>NONE</b> </p> <p>Specify
* <code>NONE</code> if you don't want to perform any text transformations.</p>
*/
inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
/**
* <p>Text transformations eliminate some of the unusual formatting that attackers
* use in web requests in an effort to bypass AWS WAF. If you specify a
* transformation, AWS WAF performs the transformation on <code>FieldToMatch</code>
* before inspecting it for a match.</p> <p>You can only specify a single type of
* TextTransformation.</p> <p> <b>CMD_LINE</b> </p> <p>When you're concerned that
* attackers are injecting an operating system command line command and using
* unusual formatting to disguise some or all of the command, use this option to
* perform the following transformations:</p> <ul> <li> <p>Delete the following
* characters: \ " ' ^</p> </li> <li> <p>Delete spaces before the following
* characters: / (</p> </li> <li> <p>Replace the following characters with a space:
* , ;</p> </li> <li> <p>Replace multiple spaces with one space</p> </li> <li>
* <p>Convert uppercase letters (A-Z) to lowercase (a-z)</p> </li> </ul> <p>
* <b>COMPRESS_WHITE_SPACE</b> </p> <p>Use this option to replace the following
* characters with a space character (decimal 32):</p> <ul> <li> <p>\f, formfeed,
* decimal 12</p> </li> <li> <p>\t, tab, decimal 9</p> </li> <li> <p>\n, newline,
* decimal 10</p> </li> <li> <p>\r, carriage return, decimal 13</p> </li> <li>
* <p>\v, vertical tab, decimal 11</p> </li> <li> <p>non-breaking space, decimal
* 160</p> </li> </ul> <p> <code>COMPRESS_WHITE_SPACE</code> also replaces multiple
* spaces with one space.</p> <p> <b>HTML_ENTITY_DECODE</b> </p> <p>Use this option
* to replace HTML-encoded characters with unencoded characters.
* <code>HTML_ENTITY_DECODE</code> performs the following operations:</p> <ul> <li>
* <p>Replaces <code>(ampersand)quot;</code> with <code>"</code> </p> </li> <li>
* <p>Replaces <code>(ampersand)nbsp;</code> with a non-breaking space, decimal
* 160</p> </li> <li> <p>Replaces <code>(ampersand)lt;</code> with a "less than"
* symbol</p> </li> <li> <p>Replaces <code>(ampersand)gt;</code> with
* <code>&gt;</code> </p> </li> <li> <p>Replaces characters that are represented in
* hexadecimal format, <code>(ampersand)#xhhhh;</code>, with the corresponding
* characters</p> </li> <li> <p>Replaces characters that are represented in decimal
* format, <code>(ampersand)#nnnn;</code>, with the corresponding characters</p>
* </li> </ul> <p> <b>LOWERCASE</b> </p> <p>Use this option to convert uppercase
* letters (A-Z) to lowercase (a-z).</p> <p> <b>URL_DECODE</b> </p> <p>Use this
* option to decode a URL-encoded value.</p> <p> <b>NONE</b> </p> <p>Specify
* <code>NONE</code> if you don't want to perform any text transformations.</p>
*/
inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
/**
* <p>Text transformations eliminate some of the unusual formatting that attackers
* use in web requests in an effort to bypass AWS WAF. If you specify a
* transformation, AWS WAF performs the transformation on <code>FieldToMatch</code>
* before inspecting it for a match.</p> <p>You can only specify a single type of
* TextTransformation.</p> <p> <b>CMD_LINE</b> </p> <p>When you're concerned that
* attackers are injecting an operating system command line command and using
* unusual formatting to disguise some or all of the command, use this option to
* perform the following transformations:</p> <ul> <li> <p>Delete the following
* characters: \ " ' ^</p> </li> <li> <p>Delete spaces before the following
* characters: / (</p> </li> <li> <p>Replace the following characters with a space:
* , ;</p> </li> <li> <p>Replace multiple spaces with one space</p> </li> <li>
* <p>Convert uppercase letters (A-Z) to lowercase (a-z)</p> </li> </ul> <p>
* <b>COMPRESS_WHITE_SPACE</b> </p> <p>Use this option to replace the following
* characters with a space character (decimal 32):</p> <ul> <li> <p>\f, formfeed,
* decimal 12</p> </li> <li> <p>\t, tab, decimal 9</p> </li> <li> <p>\n, newline,
* decimal 10</p> </li> <li> <p>\r, carriage return, decimal 13</p> </li> <li>
* <p>\v, vertical tab, decimal 11</p> </li> <li> <p>non-breaking space, decimal
* 160</p> </li> </ul> <p> <code>COMPRESS_WHITE_SPACE</code> also replaces multiple
* spaces with one space.</p> <p> <b>HTML_ENTITY_DECODE</b> </p> <p>Use this option
* to replace HTML-encoded characters with unencoded characters.
* <code>HTML_ENTITY_DECODE</code> performs the following operations:</p> <ul> <li>
* <p>Replaces <code>(ampersand)quot;</code> with <code>"</code> </p> </li> <li>
* <p>Replaces <code>(ampersand)nbsp;</code> with a non-breaking space, decimal
* 160</p> </li> <li> <p>Replaces <code>(ampersand)lt;</code> with a "less than"
* symbol</p> </li> <li> <p>Replaces <code>(ampersand)gt;</code> with
* <code>&gt;</code> </p> </li> <li> <p>Replaces characters that are represented in
* hexadecimal format, <code>(ampersand)#xhhhh;</code>, with the corresponding
* characters</p> </li> <li> <p>Replaces characters that are represented in decimal
* format, <code>(ampersand)#nnnn;</code>, with the corresponding characters</p>
* </li> </ul> <p> <b>LOWERCASE</b> </p> <p>Use this option to convert uppercase
* letters (A-Z) to lowercase (a-z).</p> <p> <b>URL_DECODE</b> </p> <p>Use this
* option to decode a URL-encoded value.</p> <p> <b>NONE</b> </p> <p>Specify
* <code>NONE</code> if you don't want to perform any text transformations.</p>
*/
inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = std::move(value); }
/**
* <p>Text transformations eliminate some of the unusual formatting that attackers
* use in web requests in an effort to bypass AWS WAF. If you specify a
* transformation, AWS WAF performs the transformation on <code>FieldToMatch</code>
* before inspecting it for a match.</p> <p>You can only specify a single type of
* TextTransformation.</p> <p> <b>CMD_LINE</b> </p> <p>When you're concerned that
* attackers are injecting an operating system command line command and using
* unusual formatting to disguise some or all of the command, use this option to
* perform the following transformations:</p> <ul> <li> <p>Delete the following
* characters: \ " ' ^</p> </li> <li> <p>Delete spaces before the following
* characters: / (</p> </li> <li> <p>Replace the following characters with a space:
* , ;</p> </li> <li> <p>Replace multiple spaces with one space</p> </li> <li>
* <p>Convert uppercase letters (A-Z) to lowercase (a-z)</p> </li> </ul> <p>
* <b>COMPRESS_WHITE_SPACE</b> </p> <p>Use this option to replace the following
* characters with a space character (decimal 32):</p> <ul> <li> <p>\f, formfeed,
* decimal 12</p> </li> <li> <p>\t, tab, decimal 9</p> </li> <li> <p>\n, newline,
* decimal 10</p> </li> <li> <p>\r, carriage return, decimal 13</p> </li> <li>
* <p>\v, vertical tab, decimal 11</p> </li> <li> <p>non-breaking space, decimal
* 160</p> </li> </ul> <p> <code>COMPRESS_WHITE_SPACE</code> also replaces multiple
* spaces with one space.</p> <p> <b>HTML_ENTITY_DECODE</b> </p> <p>Use this option
* to replace HTML-encoded characters with unencoded characters.
* <code>HTML_ENTITY_DECODE</code> performs the following operations:</p> <ul> <li>
* <p>Replaces <code>(ampersand)quot;</code> with <code>"</code> </p> </li> <li>
* <p>Replaces <code>(ampersand)nbsp;</code> with a non-breaking space, decimal
* 160</p> </li> <li> <p>Replaces <code>(ampersand)lt;</code> with a "less than"
* symbol</p> </li> <li> <p>Replaces <code>(ampersand)gt;</code> with
* <code>&gt;</code> </p> </li> <li> <p>Replaces characters that are represented in
* hexadecimal format, <code>(ampersand)#xhhhh;</code>, with the corresponding
* characters</p> </li> <li> <p>Replaces characters that are represented in decimal
* format, <code>(ampersand)#nnnn;</code>, with the corresponding characters</p>
* </li> </ul> <p> <b>LOWERCASE</b> </p> <p>Use this option to convert uppercase
* letters (A-Z) to lowercase (a-z).</p> <p> <b>URL_DECODE</b> </p> <p>Use this
* option to decode a URL-encoded value.</p> <p> <b>NONE</b> </p> <p>Specify
* <code>NONE</code> if you don't want to perform any text transformations.</p>
*/
inline ByteMatchTuple& WithTextTransformation(const TextTransformation& value) { SetTextTransformation(value); return *this;}
/**
* <p>Text transformations eliminate some of the unusual formatting that attackers
* use in web requests in an effort to bypass AWS WAF. If you specify a
* transformation, AWS WAF performs the transformation on <code>FieldToMatch</code>
* before inspecting it for a match.</p> <p>You can only specify a single type of
* TextTransformation.</p> <p> <b>CMD_LINE</b> </p> <p>When you're concerned that
* attackers are injecting an operating system command line command and using
* unusual formatting to disguise some or all of the command, use this option to
* perform the following transformations:</p> <ul> <li> <p>Delete the following
* characters: \ " ' ^</p> </li> <li> <p>Delete spaces before the following
* characters: / (</p> </li> <li> <p>Replace the following characters with a space:
* , ;</p> </li> <li> <p>Replace multiple spaces with one space</p> </li> <li>
* <p>Convert uppercase letters (A-Z) to lowercase (a-z)</p> </li> </ul> <p>
* <b>COMPRESS_WHITE_SPACE</b> </p> <p>Use this option to replace the following
* characters with a space character (decimal 32):</p> <ul> <li> <p>\f, formfeed,
* decimal 12</p> </li> <li> <p>\t, tab, decimal 9</p> </li> <li> <p>\n, newline,
* decimal 10</p> </li> <li> <p>\r, carriage return, decimal 13</p> </li> <li>
* <p>\v, vertical tab, decimal 11</p> </li> <li> <p>non-breaking space, decimal
* 160</p> </li> </ul> <p> <code>COMPRESS_WHITE_SPACE</code> also replaces multiple
* spaces with one space.</p> <p> <b>HTML_ENTITY_DECODE</b> </p> <p>Use this option
* to replace HTML-encoded characters with unencoded characters.
* <code>HTML_ENTITY_DECODE</code> performs the following operations:</p> <ul> <li>
* <p>Replaces <code>(ampersand)quot;</code> with <code>"</code> </p> </li> <li>
* <p>Replaces <code>(ampersand)nbsp;</code> with a non-breaking space, decimal
* 160</p> </li> <li> <p>Replaces <code>(ampersand)lt;</code> with a "less than"
* symbol</p> </li> <li> <p>Replaces <code>(ampersand)gt;</code> with
* <code>&gt;</code> </p> </li> <li> <p>Replaces characters that are represented in
* hexadecimal format, <code>(ampersand)#xhhhh;</code>, with the corresponding
* characters</p> </li> <li> <p>Replaces characters that are represented in decimal
* format, <code>(ampersand)#nnnn;</code>, with the corresponding characters</p>
* </li> </ul> <p> <b>LOWERCASE</b> </p> <p>Use this option to convert uppercase
* letters (A-Z) to lowercase (a-z).</p> <p> <b>URL_DECODE</b> </p> <p>Use this
* option to decode a URL-encoded value.</p> <p> <b>NONE</b> </p> <p>Specify
* <code>NONE</code> if you don't want to perform any text transformations.</p>
*/
inline ByteMatchTuple& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(std::move(value)); return *this;}
/**
* <p>Within the portion of a web request that you want to search (for example, in
* the query string, if any), specify where you want AWS WAF to search. Valid
* values include the following:</p> <p> <b>CONTAINS</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, but the
* location doesn't matter.</p> <p> <b>CONTAINS_WORD</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, and
* <code>TargetString</code> must contain only alphanumeric characters or
* underscore (A-Z, a-z, 0-9, or _). In addition, <code>TargetString</code> must be
* a word, which means one of the following:</p> <ul> <li> <p>
* <code>TargetString</code> exactly matches the value of the specified part of the
* web request, such as the value of a header.</p> </li> <li> <p>
* <code>TargetString</code> is at the beginning of the specified part of the web
* request and is followed by a character other than an alphanumeric character or
* underscore (_), for example, <code>BadBot;</code>.</p> </li> <li> <p>
* <code>TargetString</code> is at the end of the specified part of the web request
* and is preceded by a character other than an alphanumeric character or
* underscore (_), for example, <code>;BadBot</code>.</p> </li> <li> <p>
* <code>TargetString</code> is in the middle of the specified part of the web
* request and is preceded and followed by characters other than alphanumeric
* characters or underscore (_), for example, <code>-BadBot;</code>.</p> </li>
* </ul> <p> <b>EXACTLY</b> </p> <p>The value of the specified part of the web
* request must exactly match the value of <code>TargetString</code>.</p> <p>
* <b>STARTS_WITH</b> </p> <p>The value of <code>TargetString</code> must appear at
* the beginning of the specified part of the web request.</p> <p> <b>ENDS_WITH</b>
* </p> <p>The value of <code>TargetString</code> must appear at the end of the
* specified part of the web request.</p>
*/
inline const PositionalConstraint& GetPositionalConstraint() const{ return m_positionalConstraint; }
/**
* <p>Within the portion of a web request that you want to search (for example, in
* the query string, if any), specify where you want AWS WAF to search. Valid
* values include the following:</p> <p> <b>CONTAINS</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, but the
* location doesn't matter.</p> <p> <b>CONTAINS_WORD</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, and
* <code>TargetString</code> must contain only alphanumeric characters or
* underscore (A-Z, a-z, 0-9, or _). In addition, <code>TargetString</code> must be
* a word, which means one of the following:</p> <ul> <li> <p>
* <code>TargetString</code> exactly matches the value of the specified part of the
* web request, such as the value of a header.</p> </li> <li> <p>
* <code>TargetString</code> is at the beginning of the specified part of the web
* request and is followed by a character other than an alphanumeric character or
* underscore (_), for example, <code>BadBot;</code>.</p> </li> <li> <p>
* <code>TargetString</code> is at the end of the specified part of the web request
* and is preceded by a character other than an alphanumeric character or
* underscore (_), for example, <code>;BadBot</code>.</p> </li> <li> <p>
* <code>TargetString</code> is in the middle of the specified part of the web
* request and is preceded and followed by characters other than alphanumeric
* characters or underscore (_), for example, <code>-BadBot;</code>.</p> </li>
* </ul> <p> <b>EXACTLY</b> </p> <p>The value of the specified part of the web
* request must exactly match the value of <code>TargetString</code>.</p> <p>
* <b>STARTS_WITH</b> </p> <p>The value of <code>TargetString</code> must appear at
* the beginning of the specified part of the web request.</p> <p> <b>ENDS_WITH</b>
* </p> <p>The value of <code>TargetString</code> must appear at the end of the
* specified part of the web request.</p>
*/
inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
/**
* <p>Within the portion of a web request that you want to search (for example, in
* the query string, if any), specify where you want AWS WAF to search. Valid
* values include the following:</p> <p> <b>CONTAINS</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, but the
* location doesn't matter.</p> <p> <b>CONTAINS_WORD</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, and
* <code>TargetString</code> must contain only alphanumeric characters or
* underscore (A-Z, a-z, 0-9, or _). In addition, <code>TargetString</code> must be
* a word, which means one of the following:</p> <ul> <li> <p>
* <code>TargetString</code> exactly matches the value of the specified part of the
* web request, such as the value of a header.</p> </li> <li> <p>
* <code>TargetString</code> is at the beginning of the specified part of the web
* request and is followed by a character other than an alphanumeric character or
* underscore (_), for example, <code>BadBot;</code>.</p> </li> <li> <p>
* <code>TargetString</code> is at the end of the specified part of the web request
* and is preceded by a character other than an alphanumeric character or
* underscore (_), for example, <code>;BadBot</code>.</p> </li> <li> <p>
* <code>TargetString</code> is in the middle of the specified part of the web
* request and is preceded and followed by characters other than alphanumeric
* characters or underscore (_), for example, <code>-BadBot;</code>.</p> </li>
* </ul> <p> <b>EXACTLY</b> </p> <p>The value of the specified part of the web
* request must exactly match the value of <code>TargetString</code>.</p> <p>
* <b>STARTS_WITH</b> </p> <p>The value of <code>TargetString</code> must appear at
* the beginning of the specified part of the web request.</p> <p> <b>ENDS_WITH</b>
* </p> <p>The value of <code>TargetString</code> must appear at the end of the
* specified part of the web request.</p>
*/
inline void SetPositionalConstraint(const PositionalConstraint& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
/**
* <p>Within the portion of a web request that you want to search (for example, in
* the query string, if any), specify where you want AWS WAF to search. Valid
* values include the following:</p> <p> <b>CONTAINS</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, but the
* location doesn't matter.</p> <p> <b>CONTAINS_WORD</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, and
* <code>TargetString</code> must contain only alphanumeric characters or
* underscore (A-Z, a-z, 0-9, or _). In addition, <code>TargetString</code> must be
* a word, which means one of the following:</p> <ul> <li> <p>
* <code>TargetString</code> exactly matches the value of the specified part of the
* web request, such as the value of a header.</p> </li> <li> <p>
* <code>TargetString</code> is at the beginning of the specified part of the web
* request and is followed by a character other than an alphanumeric character or
* underscore (_), for example, <code>BadBot;</code>.</p> </li> <li> <p>
* <code>TargetString</code> is at the end of the specified part of the web request
* and is preceded by a character other than an alphanumeric character or
* underscore (_), for example, <code>;BadBot</code>.</p> </li> <li> <p>
* <code>TargetString</code> is in the middle of the specified part of the web
* request and is preceded and followed by characters other than alphanumeric
* characters or underscore (_), for example, <code>-BadBot;</code>.</p> </li>
* </ul> <p> <b>EXACTLY</b> </p> <p>The value of the specified part of the web
* request must exactly match the value of <code>TargetString</code>.</p> <p>
* <b>STARTS_WITH</b> </p> <p>The value of <code>TargetString</code> must appear at
* the beginning of the specified part of the web request.</p> <p> <b>ENDS_WITH</b>
* </p> <p>The value of <code>TargetString</code> must appear at the end of the
* specified part of the web request.</p>
*/
inline void SetPositionalConstraint(PositionalConstraint&& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = std::move(value); }
/**
* <p>Within the portion of a web request that you want to search (for example, in
* the query string, if any), specify where you want AWS WAF to search. Valid
* values include the following:</p> <p> <b>CONTAINS</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, but the
* location doesn't matter.</p> <p> <b>CONTAINS_WORD</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, and
* <code>TargetString</code> must contain only alphanumeric characters or
* underscore (A-Z, a-z, 0-9, or _). In addition, <code>TargetString</code> must be
* a word, which means one of the following:</p> <ul> <li> <p>
* <code>TargetString</code> exactly matches the value of the specified part of the
* web request, such as the value of a header.</p> </li> <li> <p>
* <code>TargetString</code> is at the beginning of the specified part of the web
* request and is followed by a character other than an alphanumeric character or
* underscore (_), for example, <code>BadBot;</code>.</p> </li> <li> <p>
* <code>TargetString</code> is at the end of the specified part of the web request
* and is preceded by a character other than an alphanumeric character or
* underscore (_), for example, <code>;BadBot</code>.</p> </li> <li> <p>
* <code>TargetString</code> is in the middle of the specified part of the web
* request and is preceded and followed by characters other than alphanumeric
* characters or underscore (_), for example, <code>-BadBot;</code>.</p> </li>
* </ul> <p> <b>EXACTLY</b> </p> <p>The value of the specified part of the web
* request must exactly match the value of <code>TargetString</code>.</p> <p>
* <b>STARTS_WITH</b> </p> <p>The value of <code>TargetString</code> must appear at
* the beginning of the specified part of the web request.</p> <p> <b>ENDS_WITH</b>
* </p> <p>The value of <code>TargetString</code> must appear at the end of the
* specified part of the web request.</p>
*/
inline ByteMatchTuple& WithPositionalConstraint(const PositionalConstraint& value) { SetPositionalConstraint(value); return *this;}
/**
* <p>Within the portion of a web request that you want to search (for example, in
* the query string, if any), specify where you want AWS WAF to search. Valid
* values include the following:</p> <p> <b>CONTAINS</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, but the
* location doesn't matter.</p> <p> <b>CONTAINS_WORD</b> </p> <p>The specified part
* of the web request must include the value of <code>TargetString</code>, and
* <code>TargetString</code> must contain only alphanumeric characters or
* underscore (A-Z, a-z, 0-9, or _). In addition, <code>TargetString</code> must be
* a word, which means one of the following:</p> <ul> <li> <p>
* <code>TargetString</code> exactly matches the value of the specified part of the
* web request, such as the value of a header.</p> </li> <li> <p>
* <code>TargetString</code> is at the beginning of the specified part of the web
* request and is followed by a character other than an alphanumeric character or
* underscore (_), for example, <code>BadBot;</code>.</p> </li> <li> <p>
* <code>TargetString</code> is at the end of the specified part of the web request
* and is preceded by a character other than an alphanumeric character or
* underscore (_), for example, <code>;BadBot</code>.</p> </li> <li> <p>
* <code>TargetString</code> is in the middle of the specified part of the web
* request and is preceded and followed by characters other than alphanumeric
* characters or underscore (_), for example, <code>-BadBot;</code>.</p> </li>
* </ul> <p> <b>EXACTLY</b> </p> <p>The value of the specified part of the web
* request must exactly match the value of <code>TargetString</code>.</p> <p>
* <b>STARTS_WITH</b> </p> <p>The value of <code>TargetString</code> must appear at
* the beginning of the specified part of the web request.</p> <p> <b>ENDS_WITH</b>
* </p> <p>The value of <code>TargetString</code> must appear at the end of the
* specified part of the web request.</p>
*/
inline ByteMatchTuple& WithPositionalConstraint(PositionalConstraint&& value) { SetPositionalConstraint(std::move(value)); return *this;}
private:
FieldToMatch m_fieldToMatch;
bool m_fieldToMatchHasBeenSet;
Aws::Utils::ByteBuffer m_targetString;
bool m_targetStringHasBeenSet;
TextTransformation m_textTransformation;
bool m_textTransformationHasBeenSet;
PositionalConstraint m_positionalConstraint;
bool m_positionalConstraintHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
enum class ChangeAction
{
NOT_SET,
INSERT,
DELETE_
};
namespace ChangeActionMapper
{
AWS_WAFREGIONAL_API ChangeAction GetChangeActionForName(const Aws::String& name);
AWS_WAFREGIONAL_API Aws::String GetNameForChangeAction(ChangeAction value);
} // namespace ChangeActionMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
enum class ChangeTokenStatus
{
NOT_SET,
PROVISIONED,
PENDING,
INSYNC
};
namespace ChangeTokenStatusMapper
{
AWS_WAFREGIONAL_API ChangeTokenStatus GetChangeTokenStatusForName(const Aws::String& name);
AWS_WAFREGIONAL_API Aws::String GetNameForChangeTokenStatus(ChangeTokenStatus value);
} // namespace ChangeTokenStatusMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
enum class ComparisonOperator
{
NOT_SET,
EQ,
NE,
LE,
LT,
GE,
GT
};
namespace ComparisonOperatorMapper
{
AWS_WAFREGIONAL_API ComparisonOperator GetComparisonOperatorForName(const Aws::String& name);
AWS_WAFREGIONAL_API Aws::String GetNameForComparisonOperator(ComparisonOperator value);
} // namespace ComparisonOperatorMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateByteMatchSetRequest : public WAFRegionalRequest
{
public:
CreateByteMatchSetRequest();
// 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 "CreateByteMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline CreateByteMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline CreateByteMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>ByteMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>ByteMatchSet</code>.</p>
*/
inline CreateByteMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateByteMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateByteMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateByteMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/ByteMatchSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateByteMatchSetResult
{
public:
CreateByteMatchSetResult();
CreateByteMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateByteMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A <a>ByteMatchSet</a> that contains no <code>ByteMatchTuple</code>
* objects.</p>
*/
inline const ByteMatchSet& GetByteMatchSet() const{ return m_byteMatchSet; }
/**
* <p>A <a>ByteMatchSet</a> that contains no <code>ByteMatchTuple</code>
* objects.</p>
*/
inline void SetByteMatchSet(const ByteMatchSet& value) { m_byteMatchSet = value; }
/**
* <p>A <a>ByteMatchSet</a> that contains no <code>ByteMatchTuple</code>
* objects.</p>
*/
inline void SetByteMatchSet(ByteMatchSet&& value) { m_byteMatchSet = std::move(value); }
/**
* <p>A <a>ByteMatchSet</a> that contains no <code>ByteMatchTuple</code>
* objects.</p>
*/
inline CreateByteMatchSetResult& WithByteMatchSet(const ByteMatchSet& value) { SetByteMatchSet(value); return *this;}
/**
* <p>A <a>ByteMatchSet</a> that contains no <code>ByteMatchTuple</code>
* objects.</p>
*/
inline CreateByteMatchSetResult& WithByteMatchSet(ByteMatchSet&& value) { SetByteMatchSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateByteMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateByteMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateByteMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
ByteMatchSet m_byteMatchSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateGeoMatchSetRequest : public WAFRegionalRequest
{
public:
CreateGeoMatchSetRequest();
// 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 "CreateGeoMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline CreateGeoMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline CreateGeoMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* <code>Name</code> after you create the <code>GeoMatchSet</code>.</p>
*/
inline CreateGeoMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateGeoMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateGeoMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateGeoMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/GeoMatchSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateGeoMatchSetResult
{
public:
CreateGeoMatchSetResult();
CreateGeoMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateGeoMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <a>GeoMatchSet</a> returned in the <code>CreateGeoMatchSet</code>
* response. The <code>GeoMatchSet</code> contains no
* <code>GeoMatchConstraints</code>.</p>
*/
inline const GeoMatchSet& GetGeoMatchSet() const{ return m_geoMatchSet; }
/**
* <p>The <a>GeoMatchSet</a> returned in the <code>CreateGeoMatchSet</code>
* response. The <code>GeoMatchSet</code> contains no
* <code>GeoMatchConstraints</code>.</p>
*/
inline void SetGeoMatchSet(const GeoMatchSet& value) { m_geoMatchSet = value; }
/**
* <p>The <a>GeoMatchSet</a> returned in the <code>CreateGeoMatchSet</code>
* response. The <code>GeoMatchSet</code> contains no
* <code>GeoMatchConstraints</code>.</p>
*/
inline void SetGeoMatchSet(GeoMatchSet&& value) { m_geoMatchSet = std::move(value); }
/**
* <p>The <a>GeoMatchSet</a> returned in the <code>CreateGeoMatchSet</code>
* response. The <code>GeoMatchSet</code> contains no
* <code>GeoMatchConstraints</code>.</p>
*/
inline CreateGeoMatchSetResult& WithGeoMatchSet(const GeoMatchSet& value) { SetGeoMatchSet(value); return *this;}
/**
* <p>The <a>GeoMatchSet</a> returned in the <code>CreateGeoMatchSet</code>
* response. The <code>GeoMatchSet</code> contains no
* <code>GeoMatchConstraints</code>.</p>
*/
inline CreateGeoMatchSetResult& WithGeoMatchSet(GeoMatchSet&& value) { SetGeoMatchSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateGeoMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateGeoMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateGeoMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
GeoMatchSet m_geoMatchSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateIPSetRequest : public WAFRegionalRequest
{
public:
CreateIPSetRequest();
// 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 "CreateIPSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline CreateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline CreateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>IPSet</a>. You can't change
* <code>Name</code> after you create the <code>IPSet</code>.</p>
*/
inline CreateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateIPSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateIPSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateIPSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/IPSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateIPSetResult
{
public:
CreateIPSetResult();
CreateIPSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateIPSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <a>IPSet</a> returned in the <code>CreateIPSet</code> response.</p>
*/
inline const IPSet& GetIPSet() const{ return m_iPSet; }
/**
* <p>The <a>IPSet</a> returned in the <code>CreateIPSet</code> response.</p>
*/
inline void SetIPSet(const IPSet& value) { m_iPSet = value; }
/**
* <p>The <a>IPSet</a> returned in the <code>CreateIPSet</code> response.</p>
*/
inline void SetIPSet(IPSet&& value) { m_iPSet = std::move(value); }
/**
* <p>The <a>IPSet</a> returned in the <code>CreateIPSet</code> response.</p>
*/
inline CreateIPSetResult& WithIPSet(const IPSet& value) { SetIPSet(value); return *this;}
/**
* <p>The <a>IPSet</a> returned in the <code>CreateIPSet</code> response.</p>
*/
inline CreateIPSetResult& WithIPSet(IPSet&& value) { SetIPSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateIPSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateIPSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateIPSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
IPSet m_iPSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,390 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/waf-regional/model/RateKey.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateRateBasedRuleRequest : public WAFRegionalRequest
{
public:
CreateRateBasedRuleRequest();
// 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 "CreateRateBasedRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline CreateRateBasedRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline CreateRateBasedRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>RateBasedRule</a>. You can't change
* the name of a <code>RateBasedRule</code> after you create it.</p>
*/
inline CreateRateBasedRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline const Aws::String& GetMetricName() const{ return m_metricName; }
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline CreateRateBasedRuleRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline CreateRateBasedRuleRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>RateBasedRule</code>. The name can contain only alphanumeric characters
* (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't
* contain whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RateBasedRule</code>.</p>
*/
inline CreateRateBasedRuleRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
/**
* <p>The field that AWS WAF uses to determine if requests are likely arriving from
* a single source and thus subject to rate monitoring. The only valid value for
* <code>RateKey</code> is <code>IP</code>. <code>IP</code> indicates that requests
* that arrive from the same IP address are subject to the <code>RateLimit</code>
* that is specified in the <code>RateBasedRule</code>.</p>
*/
inline const RateKey& GetRateKey() const{ return m_rateKey; }
/**
* <p>The field that AWS WAF uses to determine if requests are likely arriving from
* a single source and thus subject to rate monitoring. The only valid value for
* <code>RateKey</code> is <code>IP</code>. <code>IP</code> indicates that requests
* that arrive from the same IP address are subject to the <code>RateLimit</code>
* that is specified in the <code>RateBasedRule</code>.</p>
*/
inline bool RateKeyHasBeenSet() const { return m_rateKeyHasBeenSet; }
/**
* <p>The field that AWS WAF uses to determine if requests are likely arriving from
* a single source and thus subject to rate monitoring. The only valid value for
* <code>RateKey</code> is <code>IP</code>. <code>IP</code> indicates that requests
* that arrive from the same IP address are subject to the <code>RateLimit</code>
* that is specified in the <code>RateBasedRule</code>.</p>
*/
inline void SetRateKey(const RateKey& value) { m_rateKeyHasBeenSet = true; m_rateKey = value; }
/**
* <p>The field that AWS WAF uses to determine if requests are likely arriving from
* a single source and thus subject to rate monitoring. The only valid value for
* <code>RateKey</code> is <code>IP</code>. <code>IP</code> indicates that requests
* that arrive from the same IP address are subject to the <code>RateLimit</code>
* that is specified in the <code>RateBasedRule</code>.</p>
*/
inline void SetRateKey(RateKey&& value) { m_rateKeyHasBeenSet = true; m_rateKey = std::move(value); }
/**
* <p>The field that AWS WAF uses to determine if requests are likely arriving from
* a single source and thus subject to rate monitoring. The only valid value for
* <code>RateKey</code> is <code>IP</code>. <code>IP</code> indicates that requests
* that arrive from the same IP address are subject to the <code>RateLimit</code>
* that is specified in the <code>RateBasedRule</code>.</p>
*/
inline CreateRateBasedRuleRequest& WithRateKey(const RateKey& value) { SetRateKey(value); return *this;}
/**
* <p>The field that AWS WAF uses to determine if requests are likely arriving from
* a single source and thus subject to rate monitoring. The only valid value for
* <code>RateKey</code> is <code>IP</code>. <code>IP</code> indicates that requests
* that arrive from the same IP address are subject to the <code>RateLimit</code>
* that is specified in the <code>RateBasedRule</code>.</p>
*/
inline CreateRateBasedRuleRequest& WithRateKey(RateKey&& value) { SetRateKey(std::move(value)); return *this;}
/**
* <p>The maximum number of requests, which have an identical value in the field
* that is specified by <code>RateKey</code>, allowed in a five-minute period. If
* the number of requests exceeds the <code>RateLimit</code> and the other
* predicates specified in the rule are also met, AWS WAF triggers the action that
* is specified for this rule.</p>
*/
inline long long GetRateLimit() const{ return m_rateLimit; }
/**
* <p>The maximum number of requests, which have an identical value in the field
* that is specified by <code>RateKey</code>, allowed in a five-minute period. If
* the number of requests exceeds the <code>RateLimit</code> and the other
* predicates specified in the rule are also met, AWS WAF triggers the action that
* is specified for this rule.</p>
*/
inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; }
/**
* <p>The maximum number of requests, which have an identical value in the field
* that is specified by <code>RateKey</code>, allowed in a five-minute period. If
* the number of requests exceeds the <code>RateLimit</code> and the other
* predicates specified in the rule are also met, AWS WAF triggers the action that
* is specified for this rule.</p>
*/
inline void SetRateLimit(long long value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; }
/**
* <p>The maximum number of requests, which have an identical value in the field
* that is specified by <code>RateKey</code>, allowed in a five-minute period. If
* the number of requests exceeds the <code>RateLimit</code> and the other
* predicates specified in the rule are also met, AWS WAF triggers the action that
* is specified for this rule.</p>
*/
inline CreateRateBasedRuleRequest& WithRateLimit(long long value) { SetRateLimit(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRateBasedRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRateBasedRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRateBasedRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
/**
* <p/>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p/>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p/>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p/>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p/>
*/
inline CreateRateBasedRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p/>
*/
inline CreateRateBasedRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p/>
*/
inline CreateRateBasedRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p/>
*/
inline CreateRateBasedRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_metricName;
bool m_metricNameHasBeenSet;
RateKey m_rateKey;
bool m_rateKeyHasBeenSet;
long long m_rateLimit;
bool m_rateLimitHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RateBasedRule.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateRateBasedRuleResult
{
public:
CreateRateBasedRuleResult();
CreateRateBasedRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateRateBasedRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <a>RateBasedRule</a> that is returned in the
* <code>CreateRateBasedRule</code> response.</p>
*/
inline const RateBasedRule& GetRule() const{ return m_rule; }
/**
* <p>The <a>RateBasedRule</a> that is returned in the
* <code>CreateRateBasedRule</code> response.</p>
*/
inline void SetRule(const RateBasedRule& value) { m_rule = value; }
/**
* <p>The <a>RateBasedRule</a> that is returned in the
* <code>CreateRateBasedRule</code> response.</p>
*/
inline void SetRule(RateBasedRule&& value) { m_rule = std::move(value); }
/**
* <p>The <a>RateBasedRule</a> that is returned in the
* <code>CreateRateBasedRule</code> response.</p>
*/
inline CreateRateBasedRuleResult& WithRule(const RateBasedRule& value) { SetRule(value); return *this;}
/**
* <p>The <a>RateBasedRule</a> that is returned in the
* <code>CreateRateBasedRule</code> response.</p>
*/
inline CreateRateBasedRuleResult& WithRule(RateBasedRule&& value) { SetRule(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRateBasedRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRateBasedRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRateBasedRuleResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
RateBasedRule m_rule;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateRegexMatchSetRequest : public WAFRegionalRequest
{
public:
CreateRegexMatchSetRequest();
// 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 "CreateRegexMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline CreateRegexMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline CreateRegexMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>RegexMatchSet</a>. You can't change
* <code>Name</code> after you create a <code>RegexMatchSet</code>.</p>
*/
inline CreateRegexMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRegexMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRegexMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRegexMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RegexMatchSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateRegexMatchSetResult
{
public:
CreateRegexMatchSetResult();
CreateRegexMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateRegexMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A <a>RegexMatchSet</a> that contains no <code>RegexMatchTuple</code>
* objects.</p>
*/
inline const RegexMatchSet& GetRegexMatchSet() const{ return m_regexMatchSet; }
/**
* <p>A <a>RegexMatchSet</a> that contains no <code>RegexMatchTuple</code>
* objects.</p>
*/
inline void SetRegexMatchSet(const RegexMatchSet& value) { m_regexMatchSet = value; }
/**
* <p>A <a>RegexMatchSet</a> that contains no <code>RegexMatchTuple</code>
* objects.</p>
*/
inline void SetRegexMatchSet(RegexMatchSet&& value) { m_regexMatchSet = std::move(value); }
/**
* <p>A <a>RegexMatchSet</a> that contains no <code>RegexMatchTuple</code>
* objects.</p>
*/
inline CreateRegexMatchSetResult& WithRegexMatchSet(const RegexMatchSet& value) { SetRegexMatchSet(value); return *this;}
/**
* <p>A <a>RegexMatchSet</a> that contains no <code>RegexMatchTuple</code>
* objects.</p>
*/
inline CreateRegexMatchSetResult& WithRegexMatchSet(RegexMatchSet&& value) { SetRegexMatchSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRegexMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRegexMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRegexMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
RegexMatchSet m_regexMatchSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateRegexPatternSetRequest : public WAFRegionalRequest
{
public:
CreateRegexPatternSetRequest();
// 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 "CreateRegexPatternSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline CreateRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline CreateRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>RegexPatternSet</a>. You can't
* change <code>Name</code> after you create a <code>RegexPatternSet</code>.</p>
*/
inline CreateRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRegexPatternSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRegexPatternSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRegexPatternSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RegexPatternSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateRegexPatternSetResult
{
public:
CreateRegexPatternSetResult();
CreateRegexPatternSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateRegexPatternSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A <a>RegexPatternSet</a> that contains no objects.</p>
*/
inline const RegexPatternSet& GetRegexPatternSet() const{ return m_regexPatternSet; }
/**
* <p>A <a>RegexPatternSet</a> that contains no objects.</p>
*/
inline void SetRegexPatternSet(const RegexPatternSet& value) { m_regexPatternSet = value; }
/**
* <p>A <a>RegexPatternSet</a> that contains no objects.</p>
*/
inline void SetRegexPatternSet(RegexPatternSet&& value) { m_regexPatternSet = std::move(value); }
/**
* <p>A <a>RegexPatternSet</a> that contains no objects.</p>
*/
inline CreateRegexPatternSetResult& WithRegexPatternSet(const RegexPatternSet& value) { SetRegexPatternSet(value); return *this;}
/**
* <p>A <a>RegexPatternSet</a> that contains no objects.</p>
*/
inline CreateRegexPatternSetResult& WithRegexPatternSet(RegexPatternSet&& value) { SetRegexPatternSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRegexPatternSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRegexPatternSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRegexPatternSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
RegexPatternSet m_regexPatternSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,267 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateRuleGroupRequest : public WAFRegionalRequest
{
public:
CreateRuleGroupRequest();
// 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 "CreateRuleGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline CreateRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline CreateRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>RuleGroup</a>. You can't change
* <code>Name</code> after you create a <code>RuleGroup</code>.</p>
*/
inline CreateRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline const Aws::String& GetMetricName() const{ return m_metricName; }
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline CreateRuleGroupRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline CreateRuleGroupRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
* a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change the name of the metric after you create the
* <code>RuleGroup</code>.</p>
*/
inline CreateRuleGroupRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRuleGroupRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
/**
* <p/>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p/>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p/>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p/>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p/>
*/
inline CreateRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p/>
*/
inline CreateRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p/>
*/
inline CreateRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p/>
*/
inline CreateRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_metricName;
bool m_metricNameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RuleGroup.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateRuleGroupResult
{
public:
CreateRuleGroupResult();
CreateRuleGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateRuleGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An empty <a>RuleGroup</a>.</p>
*/
inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
/**
* <p>An empty <a>RuleGroup</a>.</p>
*/
inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroup = value; }
/**
* <p>An empty <a>RuleGroup</a>.</p>
*/
inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroup = std::move(value); }
/**
* <p>An empty <a>RuleGroup</a>.</p>
*/
inline CreateRuleGroupResult& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
/**
* <p>An empty <a>RuleGroup</a>.</p>
*/
inline CreateRuleGroupResult& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRuleGroupResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRuleGroupResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRuleGroupResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
RuleGroup m_ruleGroup;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,259 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateRuleRequest : public WAFRegionalRequest
{
public:
CreateRuleRequest();
// 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 "CreateRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline CreateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline CreateRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>Rule</a>. You can't change the name
* of a <code>Rule</code> after you create it.</p>
*/
inline CreateRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline const Aws::String& GetMetricName() const{ return m_metricName; }
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline CreateRuleRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline CreateRuleRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
/**
* <p>A friendly name or description for the metrics for this <code>Rule</code>.
* The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum
* length 128 and minimum length one. It can't contain whitespace or metric names
* reserved for AWS WAF, including "All" and "Default_Action." You can't change the
* name of the metric after you create the <code>Rule</code>.</p>
*/
inline CreateRuleRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
/**
* <p/>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p/>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p/>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p/>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p/>
*/
inline CreateRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p/>
*/
inline CreateRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p/>
*/
inline CreateRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p/>
*/
inline CreateRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_metricName;
bool m_metricNameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/Rule.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateRuleResult
{
public:
CreateRuleResult();
CreateRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <a>Rule</a> returned in the <code>CreateRule</code> response.</p>
*/
inline const Rule& GetRule() const{ return m_rule; }
/**
* <p>The <a>Rule</a> returned in the <code>CreateRule</code> response.</p>
*/
inline void SetRule(const Rule& value) { m_rule = value; }
/**
* <p>The <a>Rule</a> returned in the <code>CreateRule</code> response.</p>
*/
inline void SetRule(Rule&& value) { m_rule = std::move(value); }
/**
* <p>The <a>Rule</a> returned in the <code>CreateRule</code> response.</p>
*/
inline CreateRuleResult& WithRule(const Rule& value) { SetRule(value); return *this;}
/**
* <p>The <a>Rule</a> returned in the <code>CreateRule</code> response.</p>
*/
inline CreateRuleResult& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateRuleResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Rule m_rule;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateSizeConstraintSetRequest : public WAFRegionalRequest
{
public:
CreateSizeConstraintSetRequest();
// 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 "CreateSizeConstraintSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline CreateSizeConstraintSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline CreateSizeConstraintSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>SizeConstraintSet</a>. You can't
* change <code>Name</code> after you create a <code>SizeConstraintSet</code>.</p>
*/
inline CreateSizeConstraintSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateSizeConstraintSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateSizeConstraintSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateSizeConstraintSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/SizeConstraintSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateSizeConstraintSetResult
{
public:
CreateSizeConstraintSetResult();
CreateSizeConstraintSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSizeConstraintSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A <a>SizeConstraintSet</a> that contains no <code>SizeConstraint</code>
* objects.</p>
*/
inline const SizeConstraintSet& GetSizeConstraintSet() const{ return m_sizeConstraintSet; }
/**
* <p>A <a>SizeConstraintSet</a> that contains no <code>SizeConstraint</code>
* objects.</p>
*/
inline void SetSizeConstraintSet(const SizeConstraintSet& value) { m_sizeConstraintSet = value; }
/**
* <p>A <a>SizeConstraintSet</a> that contains no <code>SizeConstraint</code>
* objects.</p>
*/
inline void SetSizeConstraintSet(SizeConstraintSet&& value) { m_sizeConstraintSet = std::move(value); }
/**
* <p>A <a>SizeConstraintSet</a> that contains no <code>SizeConstraint</code>
* objects.</p>
*/
inline CreateSizeConstraintSetResult& WithSizeConstraintSet(const SizeConstraintSet& value) { SetSizeConstraintSet(value); return *this;}
/**
* <p>A <a>SizeConstraintSet</a> that contains no <code>SizeConstraint</code>
* objects.</p>
*/
inline CreateSizeConstraintSetResult& WithSizeConstraintSet(SizeConstraintSet&& value) { SetSizeConstraintSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateSizeConstraintSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateSizeConstraintSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateSizeConstraintSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
SizeConstraintSet m_sizeConstraintSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
* <p>A request to create a <a>SqlInjectionMatchSet</a>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateSqlInjectionMatchSetRequest">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API CreateSqlInjectionMatchSetRequest : public WAFRegionalRequest
{
public:
CreateSqlInjectionMatchSetRequest();
// 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 "CreateSqlInjectionMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline CreateSqlInjectionMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline CreateSqlInjectionMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description for the <a>SqlInjectionMatchSet</a> that
* you're creating. You can't change <code>Name</code> after you create the
* <code>SqlInjectionMatchSet</code>.</p>
*/
inline CreateSqlInjectionMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateSqlInjectionMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateSqlInjectionMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateSqlInjectionMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/SqlInjectionMatchSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>The response to a <code>CreateSqlInjectionMatchSet</code>
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateSqlInjectionMatchSetResponse">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API CreateSqlInjectionMatchSetResult
{
public:
CreateSqlInjectionMatchSetResult();
CreateSqlInjectionMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSqlInjectionMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A <a>SqlInjectionMatchSet</a>.</p>
*/
inline const SqlInjectionMatchSet& GetSqlInjectionMatchSet() const{ return m_sqlInjectionMatchSet; }
/**
* <p>A <a>SqlInjectionMatchSet</a>.</p>
*/
inline void SetSqlInjectionMatchSet(const SqlInjectionMatchSet& value) { m_sqlInjectionMatchSet = value; }
/**
* <p>A <a>SqlInjectionMatchSet</a>.</p>
*/
inline void SetSqlInjectionMatchSet(SqlInjectionMatchSet&& value) { m_sqlInjectionMatchSet = std::move(value); }
/**
* <p>A <a>SqlInjectionMatchSet</a>.</p>
*/
inline CreateSqlInjectionMatchSetResult& WithSqlInjectionMatchSet(const SqlInjectionMatchSet& value) { SetSqlInjectionMatchSet(value); return *this;}
/**
* <p>A <a>SqlInjectionMatchSet</a>.</p>
*/
inline CreateSqlInjectionMatchSetResult& WithSqlInjectionMatchSet(SqlInjectionMatchSet&& value) { SetSqlInjectionMatchSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateSqlInjectionMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateSqlInjectionMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateSqlInjectionMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
SqlInjectionMatchSet m_sqlInjectionMatchSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,229 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateWebACLMigrationStackRequest : public WAFRegionalRequest
{
public:
CreateWebACLMigrationStackRequest();
// 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 "CreateWebACLMigrationStack"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline CreateWebACLMigrationStackRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline CreateWebACLMigrationStackRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
/**
* <p>The UUID of the WAF Classic web ACL that you want to migrate to WAF v2.</p>
*/
inline CreateWebACLMigrationStackRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline CreateWebACLMigrationStackRequest& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline CreateWebACLMigrationStackRequest& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
/**
* <p>The name of the Amazon S3 bucket to store the CloudFormation template in. The
* S3 bucket must be configured as follows for the migration: </p> <ul> <li> <p>The
* bucket name must start with <code>aws-waf-migration-</code>. For example,
* <code>aws-waf-migration-my-web-acl</code>.</p> </li> <li> <p>The bucket must be
* in the Region where you are deploying the template. For example, for a web ACL
* in us-west-2, you must use an Amazon S3 bucket in us-west-2 and you must deploy
* the template stack to us-west-2. </p> </li> <li> <p>The bucket policies must
* permit the migration process to write data. For listings of the bucket policies,
* see the Examples section. </p> </li> </ul>
*/
inline CreateWebACLMigrationStackRequest& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
/**
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
* migration. Set this to true to ignore unsupported entities in the web ACL during
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
* the process and throws an exception. </p>
*/
inline bool GetIgnoreUnsupportedType() const{ return m_ignoreUnsupportedType; }
/**
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
* migration. Set this to true to ignore unsupported entities in the web ACL during
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
* the process and throws an exception. </p>
*/
inline bool IgnoreUnsupportedTypeHasBeenSet() const { return m_ignoreUnsupportedTypeHasBeenSet; }
/**
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
* migration. Set this to true to ignore unsupported entities in the web ACL during
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
* the process and throws an exception. </p>
*/
inline void SetIgnoreUnsupportedType(bool value) { m_ignoreUnsupportedTypeHasBeenSet = true; m_ignoreUnsupportedType = value; }
/**
* <p>Indicates whether to exclude entities that can't be migrated or to stop the
* migration. Set this to true to ignore unsupported entities in the web ACL during
* the migration. Otherwise, if AWS WAF encounters unsupported entities, it stops
* the process and throws an exception. </p>
*/
inline CreateWebACLMigrationStackRequest& WithIgnoreUnsupportedType(bool value) { SetIgnoreUnsupportedType(value); return *this;}
private:
Aws::String m_webACLId;
bool m_webACLIdHasBeenSet;
Aws::String m_s3BucketName;
bool m_s3BucketNameHasBeenSet;
bool m_ignoreUnsupportedType;
bool m_ignoreUnsupportedTypeHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateWebACLMigrationStackResult
{
public:
CreateWebACLMigrationStackResult();
CreateWebACLMigrationStackResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateWebACLMigrationStackResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline const Aws::String& GetS3ObjectUrl() const{ return m_s3ObjectUrl; }
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline void SetS3ObjectUrl(const Aws::String& value) { m_s3ObjectUrl = value; }
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline void SetS3ObjectUrl(Aws::String&& value) { m_s3ObjectUrl = std::move(value); }
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline void SetS3ObjectUrl(const char* value) { m_s3ObjectUrl.assign(value); }
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline CreateWebACLMigrationStackResult& WithS3ObjectUrl(const Aws::String& value) { SetS3ObjectUrl(value); return *this;}
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline CreateWebACLMigrationStackResult& WithS3ObjectUrl(Aws::String&& value) { SetS3ObjectUrl(std::move(value)); return *this;}
/**
* <p>The URL of the template created in Amazon S3. </p>
*/
inline CreateWebACLMigrationStackResult& WithS3ObjectUrl(const char* value) { SetS3ObjectUrl(value); return *this;}
private:
Aws::String m_s3ObjectUrl;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,314 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/waf-regional/model/WafAction.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API CreateWebACLRequest : public WAFRegionalRequest
{
public:
CreateWebACLRequest();
// 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 "CreateWebACL"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>WebACL</a>. You can't change
* <code>Name</code> after you create the <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline const Aws::String& GetMetricName() const{ return m_metricName; }
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
/**
* <p>A friendly name or description for the metrics for this
* <code>WebACL</code>.The name can contain only alphanumeric characters (A-Z, a-z,
* 0-9), with maximum length 128 and minimum length one. It can't contain
* whitespace or metric names reserved for AWS WAF, including "All" and
* "Default_Action." You can't change <code>MetricName</code> after you create the
* <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
/**
* <p>The action that you want AWS WAF to take when a request doesn't match the
* criteria specified in any of the <code>Rule</code> objects that are associated
* with the <code>WebACL</code>.</p>
*/
inline const WafAction& GetDefaultAction() const{ return m_defaultAction; }
/**
* <p>The action that you want AWS WAF to take when a request doesn't match the
* criteria specified in any of the <code>Rule</code> objects that are associated
* with the <code>WebACL</code>.</p>
*/
inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
/**
* <p>The action that you want AWS WAF to take when a request doesn't match the
* criteria specified in any of the <code>Rule</code> objects that are associated
* with the <code>WebACL</code>.</p>
*/
inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
/**
* <p>The action that you want AWS WAF to take when a request doesn't match the
* criteria specified in any of the <code>Rule</code> objects that are associated
* with the <code>WebACL</code>.</p>
*/
inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
/**
* <p>The action that you want AWS WAF to take when a request doesn't match the
* criteria specified in any of the <code>Rule</code> objects that are associated
* with the <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;}
/**
* <p>The action that you want AWS WAF to take when a request doesn't match the
* criteria specified in any of the <code>Rule</code> objects that are associated
* with the <code>WebACL</code>.</p>
*/
inline CreateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
/**
* <p/>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p/>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p/>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p/>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p/>
*/
inline CreateWebACLRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p/>
*/
inline CreateWebACLRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p/>
*/
inline CreateWebACLRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p/>
*/
inline CreateWebACLRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_metricName;
bool m_metricNameHasBeenSet;
WafAction m_defaultAction;
bool m_defaultActionHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/WebACL.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API CreateWebACLResult
{
public:
CreateWebACLResult();
CreateWebACLResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateWebACLResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <a>WebACL</a> returned in the <code>CreateWebACL</code> response.</p>
*/
inline const WebACL& GetWebACL() const{ return m_webACL; }
/**
* <p>The <a>WebACL</a> returned in the <code>CreateWebACL</code> response.</p>
*/
inline void SetWebACL(const WebACL& value) { m_webACL = value; }
/**
* <p>The <a>WebACL</a> returned in the <code>CreateWebACL</code> response.</p>
*/
inline void SetWebACL(WebACL&& value) { m_webACL = std::move(value); }
/**
* <p>The <a>WebACL</a> returned in the <code>CreateWebACL</code> response.</p>
*/
inline CreateWebACLResult& WithWebACL(const WebACL& value) { SetWebACL(value); return *this;}
/**
* <p>The <a>WebACL</a> returned in the <code>CreateWebACL</code> response.</p>
*/
inline CreateWebACLResult& WithWebACL(WebACL&& value) { SetWebACL(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateWebACLResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateWebACLResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateWebACLResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
WebACL m_webACL;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,148 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
* <p>A request to create an <a>XssMatchSet</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateXssMatchSetRequest">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API CreateXssMatchSetRequest : public WAFRegionalRequest
{
public:
CreateXssMatchSetRequest();
// 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 "CreateXssMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline CreateXssMatchSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline CreateXssMatchSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description for the <a>XssMatchSet</a> that you're
* creating. You can't change <code>Name</code> after you create the
* <code>XssMatchSet</code>.</p>
*/
inline CreateXssMatchSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateXssMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateXssMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline CreateXssMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/XssMatchSet.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>The response to a <code>CreateXssMatchSet</code> request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateXssMatchSetResponse">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API CreateXssMatchSetResult
{
public:
CreateXssMatchSetResult();
CreateXssMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateXssMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An <a>XssMatchSet</a>.</p>
*/
inline const XssMatchSet& GetXssMatchSet() const{ return m_xssMatchSet; }
/**
* <p>An <a>XssMatchSet</a>.</p>
*/
inline void SetXssMatchSet(const XssMatchSet& value) { m_xssMatchSet = value; }
/**
* <p>An <a>XssMatchSet</a>.</p>
*/
inline void SetXssMatchSet(XssMatchSet&& value) { m_xssMatchSet = std::move(value); }
/**
* <p>An <a>XssMatchSet</a>.</p>
*/
inline CreateXssMatchSetResult& WithXssMatchSet(const XssMatchSet& value) { SetXssMatchSet(value); return *this;}
/**
* <p>An <a>XssMatchSet</a>.</p>
*/
inline CreateXssMatchSetResult& WithXssMatchSet(XssMatchSet&& value) { SetXssMatchSet(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateXssMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateXssMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>CreateXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline CreateXssMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
XssMatchSet m_xssMatchSet;
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteByteMatchSetRequest : public WAFRegionalRequest
{
public:
DeleteByteMatchSetRequest();
// 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 "DeleteByteMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = std::move(value); }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline DeleteByteMatchSetRequest& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline DeleteByteMatchSetRequest& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* delete. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and
* by <a>ListByteMatchSets</a>.</p>
*/
inline DeleteByteMatchSetRequest& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteByteMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteByteMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteByteMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_byteMatchSetId;
bool m_byteMatchSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteByteMatchSetResult
{
public:
DeleteByteMatchSetResult();
DeleteByteMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteByteMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteByteMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteByteMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteByteMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteByteMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteGeoMatchSetRequest : public WAFRegionalRequest
{
public:
DeleteGeoMatchSetRequest();
// 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 "DeleteGeoMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline DeleteGeoMatchSetRequest& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline DeleteGeoMatchSetRequest& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>GeoMatchSetID</code> of the <a>GeoMatchSet</a> that you want to
* delete. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and
* by <a>ListGeoMatchSets</a>.</p>
*/
inline DeleteGeoMatchSetRequest& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteGeoMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteGeoMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteGeoMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_geoMatchSetId;
bool m_geoMatchSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteGeoMatchSetResult
{
public:
DeleteGeoMatchSetResult();
DeleteGeoMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteGeoMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteGeoMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteGeoMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteGeoMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteGeoMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteIPSetRequest : public WAFRegionalRequest
{
public:
DeleteIPSetRequest();
// 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 "DeleteIPSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::move(value); }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline DeleteIPSetRequest& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline DeleteIPSetRequest& WithIPSetId(Aws::String&& value) { SetIPSetId(std::move(value)); return *this;}
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to delete.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline DeleteIPSetRequest& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteIPSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteIPSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteIPSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_iPSetId;
bool m_iPSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteIPSetResult
{
public:
DeleteIPSetResult();
DeleteIPSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteIPSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteIPSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteIPSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteIPSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteIPSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteLoggingConfigurationRequest : public WAFRegionalRequest
{
public:
DeleteLoggingConfigurationRequest();
// 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 "DeleteLoggingConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline DeleteLoggingConfigurationRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline DeleteLoggingConfigurationRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete
* the <a>LoggingConfiguration</a>.</p>
*/
inline DeleteLoggingConfigurationRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteLoggingConfigurationResult
{
public:
DeleteLoggingConfigurationResult();
DeleteLoggingConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteLoggingConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeletePermissionPolicyRequest : public WAFRegionalRequest
{
public:
DeletePermissionPolicyRequest();
// 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 "DeletePermissionPolicy"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline DeletePermissionPolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline DeletePermissionPolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup from which you want to delete
* the policy.</p> <p>The user making the request must be the owner of the
* RuleGroup.</p>
*/
inline DeletePermissionPolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeletePermissionPolicyResult
{
public:
DeletePermissionPolicyResult();
DeletePermissionPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeletePermissionPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteRateBasedRuleRequest : public WAFRegionalRequest
{
public:
DeleteRateBasedRuleRequest();
// 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 "DeleteRateBasedRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline DeleteRateBasedRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline DeleteRateBasedRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline DeleteRateBasedRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRateBasedRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRateBasedRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRateBasedRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteRateBasedRuleResult
{
public:
DeleteRateBasedRuleResult();
DeleteRateBasedRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteRateBasedRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRateBasedRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRateBasedRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRateBasedRule</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRateBasedRuleResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteRegexMatchSetRequest : public WAFRegionalRequest
{
public:
DeleteRegexMatchSetRequest();
// 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 "DeleteRegexMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline const Aws::String& GetRegexMatchSetId() const{ return m_regexMatchSetId; }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline void SetRegexMatchSetId(const Aws::String& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = value; }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline void SetRegexMatchSetId(Aws::String&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::move(value); }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline void SetRegexMatchSetId(const char* value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId.assign(value); }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline DeleteRegexMatchSetRequest& WithRegexMatchSetId(const Aws::String& value) { SetRegexMatchSetId(value); return *this;}
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline DeleteRegexMatchSetRequest& WithRegexMatchSetId(Aws::String&& value) { SetRegexMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* delete. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a>
* and by <a>ListRegexMatchSets</a>.</p>
*/
inline DeleteRegexMatchSetRequest& WithRegexMatchSetId(const char* value) { SetRegexMatchSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRegexMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRegexMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRegexMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_regexMatchSetId;
bool m_regexMatchSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteRegexMatchSetResult
{
public:
DeleteRegexMatchSetResult();
DeleteRegexMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteRegexMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRegexMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRegexMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexMatchSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRegexMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteRegexPatternSetRequest : public WAFRegionalRequest
{
public:
DeleteRegexPatternSetRequest();
// 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 "DeleteRegexPatternSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline const Aws::String& GetRegexPatternSetId() const{ return m_regexPatternSetId; }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline void SetRegexPatternSetId(const Aws::String& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = value; }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline void SetRegexPatternSetId(Aws::String&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::move(value); }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline void SetRegexPatternSetId(const char* value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId.assign(value); }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline DeleteRegexPatternSetRequest& WithRegexPatternSetId(const Aws::String& value) { SetRegexPatternSetId(value); return *this;}
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline DeleteRegexPatternSetRequest& WithRegexPatternSetId(Aws::String&& value) { SetRegexPatternSetId(std::move(value)); return *this;}
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to delete. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline DeleteRegexPatternSetRequest& WithRegexPatternSetId(const char* value) { SetRegexPatternSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRegexPatternSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRegexPatternSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRegexPatternSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_regexPatternSetId;
bool m_regexPatternSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteRegexPatternSetResult
{
public:
DeleteRegexPatternSetResult();
DeleteRegexPatternSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteRegexPatternSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRegexPatternSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRegexPatternSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRegexPatternSet</code> request. You can also use this value to query
* the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRegexPatternSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteRuleGroupRequest : public WAFRegionalRequest
{
public:
DeleteRuleGroupRequest();
// 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 "DeleteRuleGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline DeleteRuleGroupRequest& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline DeleteRuleGroupRequest& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to delete.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline DeleteRuleGroupRequest& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRuleGroupRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_ruleGroupId;
bool m_ruleGroupIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteRuleGroupResult
{
public:
DeleteRuleGroupResult();
DeleteRuleGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteRuleGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRuleGroupResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRuleGroupResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRuleGroup</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRuleGroupResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteRuleRequest : public WAFRegionalRequest
{
public:
DeleteRuleRequest();
// 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 "DeleteRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline DeleteRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline DeleteRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to delete.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline DeleteRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRuleRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRuleRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteRuleRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteRuleResult
{
public:
DeleteRuleResult();
DeleteRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteRule</code> request. You can also use this value to query the status
* of the request. For more information, see <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteRuleResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteSizeConstraintSetRequest : public WAFRegionalRequest
{
public:
DeleteSizeConstraintSetRequest();
// 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 "DeleteSizeConstraintSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline const Aws::String& GetSizeConstraintSetId() const{ return m_sizeConstraintSetId; }
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline bool SizeConstraintSetIdHasBeenSet() const { return m_sizeConstraintSetIdHasBeenSet; }
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline void SetSizeConstraintSetId(const Aws::String& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = value; }
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline void SetSizeConstraintSetId(Aws::String&& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = std::move(value); }
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline void SetSizeConstraintSetId(const char* value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId.assign(value); }
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline DeleteSizeConstraintSetRequest& WithSizeConstraintSetId(const Aws::String& value) { SetSizeConstraintSetId(value); return *this;}
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline DeleteSizeConstraintSetRequest& WithSizeConstraintSetId(Aws::String&& value) { SetSizeConstraintSetId(std::move(value)); return *this;}
/**
* <p>The <code>SizeConstraintSetId</code> of the <a>SizeConstraintSet</a> that you
* want to delete. <code>SizeConstraintSetId</code> is returned by
* <a>CreateSizeConstraintSet</a> and by <a>ListSizeConstraintSets</a>.</p>
*/
inline DeleteSizeConstraintSetRequest& WithSizeConstraintSetId(const char* value) { SetSizeConstraintSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteSizeConstraintSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteSizeConstraintSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteSizeConstraintSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_sizeConstraintSetId;
bool m_sizeConstraintSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteSizeConstraintSetResult
{
public:
DeleteSizeConstraintSetResult();
DeleteSizeConstraintSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteSizeConstraintSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteSizeConstraintSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteSizeConstraintSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSizeConstraintSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteSizeConstraintSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
* <p>A request to delete a <a>SqlInjectionMatchSet</a> from AWS WAF.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteSqlInjectionMatchSetRequest">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API DeleteSqlInjectionMatchSetRequest : public WAFRegionalRequest
{
public:
DeleteSqlInjectionMatchSetRequest();
// 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 "DeleteSqlInjectionMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; }
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; }
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = std::move(value); }
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); }
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline DeleteSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(const Aws::String& value) { SetSqlInjectionMatchSetId(value); return *this;}
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline DeleteSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>SqlInjectionMatchSetId</code> of the <a>SqlInjectionMatchSet</a>
* that you want to delete. <code>SqlInjectionMatchSetId</code> is returned by
* <a>CreateSqlInjectionMatchSet</a> and by <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline DeleteSqlInjectionMatchSetRequest& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteSqlInjectionMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteSqlInjectionMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteSqlInjectionMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_sqlInjectionMatchSetId;
bool m_sqlInjectionMatchSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>The response to a request to delete a <a>SqlInjectionMatchSet</a> from AWS
* WAF.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteSqlInjectionMatchSetResponse">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API DeleteSqlInjectionMatchSetResult
{
public:
DeleteSqlInjectionMatchSetResult();
DeleteSqlInjectionMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteSqlInjectionMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteSqlInjectionMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteSqlInjectionMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to
* query the status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteSqlInjectionMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DeleteWebACLRequest : public WAFRegionalRequest
{
public:
DeleteWebACLRequest();
// 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 "DeleteWebACL"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline const Aws::String& GetWebACLId() const{ return m_webACLId; }
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; }
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; }
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); }
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); }
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline DeleteWebACLRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;}
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline DeleteWebACLRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;}
/**
* <p>The <code>WebACLId</code> of the <a>WebACL</a> that you want to delete.
* <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by
* <a>ListWebACLs</a>.</p>
*/
inline DeleteWebACLRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_webACLId;
bool m_webACLIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DeleteWebACLResult
{
public:
DeleteWebACLResult();
DeleteWebACLResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteWebACLResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteWebACLResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteWebACLResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteWebACL</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteWebACLResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
* <p>A request to delete an <a>XssMatchSet</a> from AWS WAF.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteXssMatchSetRequest">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API DeleteXssMatchSetRequest : public WAFRegionalRequest
{
public:
DeleteXssMatchSetRequest();
// 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 "DeleteXssMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; }
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; }
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; }
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::move(value); }
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); }
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline DeleteXssMatchSetRequest& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;}
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline DeleteXssMatchSetRequest& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>XssMatchSetId</code> of the <a>XssMatchSet</a> that you want to
* delete. <code>XssMatchSetId</code> is returned by <a>CreateXssMatchSet</a> and
* by <a>ListXssMatchSets</a>.</p>
*/
inline DeleteXssMatchSetRequest& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteXssMatchSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteXssMatchSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
*/
inline DeleteXssMatchSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_xssMatchSetId;
bool m_xssMatchSetIdHasBeenSet;
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>The response to a request to delete an <a>XssMatchSet</a> from AWS
* WAF.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteXssMatchSetResponse">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API DeleteXssMatchSetResult
{
public:
DeleteXssMatchSetResult();
DeleteXssMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteXssMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteXssMatchSetResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteXssMatchSetResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used to submit the
* <code>DeleteXssMatchSet</code> request. You can also use this value to query the
* status of the request. For more information, see
* <a>GetChangeTokenStatus</a>.</p>
*/
inline DeleteXssMatchSetResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API DisassociateWebACLRequest : public WAFRegionalRequest
{
public:
DisassociateWebACLRequest();
// 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 "DisassociateWebACL"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline DisassociateWebACLRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline DisassociateWebACLRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN (Amazon Resource Name) of the resource from which the web ACL is
* being removed, either an application load balancer or Amazon API Gateway
* stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li>
* <p>For an Application Load Balancer:
* <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i>
* </code> </p> </li> <li> <p>For an Amazon API Gateway stage:
* <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i>
* </code> </p> </li> </ul>
*/
inline DisassociateWebACLRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API DisassociateWebACLResult
{
public:
DisassociateWebACLResult();
DisassociateWebACLResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateWebACLResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>The rule to exclude from
* a rule group. This is applicable only when the <code>ActivatedRule</code> refers
* to a <code>RuleGroup</code>. The rule must belong to the <code>RuleGroup</code>
* that is specified by the <code>ActivatedRule</code>. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ExcludedRule">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API ExcludedRule
{
public:
ExcludedRule();
ExcludedRule(Aws::Utils::Json::JsonView jsonValue);
ExcludedRule& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline ExcludedRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline ExcludedRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the rule to exclude from the rule group.</p>
*/
inline ExcludedRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
private:
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,349 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/MatchFieldType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>Specifies where in a web
* request to look for <code>TargetString</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/FieldToMatch">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API FieldToMatch
{
public:
FieldToMatch();
FieldToMatch(Aws::Utils::Json::JsonView jsonValue);
FieldToMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The part of the web request that you want AWS WAF to search for a specified
* string. Parts of a request that you can search include the following:</p> <ul>
* <li> <p> <code>HEADER</code>: A specified request header, for example, the value
* of the <code>User-Agent</code> or <code>Referer</code> header. If you choose
* <code>HEADER</code> for the type, specify the name of the header in
* <code>Data</code>.</p> </li> <li> <p> <code>METHOD</code>: The HTTP method,
* which indicated the type of operation that the request is asking the origin to
* perform. Amazon CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: A query string, which is the part of a URL that
* appears after a <code>?</code> character, if any.</p> </li> <li> <p>
* <code>URI</code>: The part of a web request that identifies a resource, for
* example, <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p>
* <code>BODY</code>: The part of a request that contains any additional data that
* you want to send to your web server as the HTTP request body, such as data from
* a form. The request body immediately follows the request headers. Note that only
* the first <code>8192</code> bytes of the request body are forwarded to AWS WAF
* for inspection. To allow or block requests based on the length of the body, you
* can create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* rather than inspecting a single parameter, AWS WAF will inspect all parameters
* within the query for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul>
*/
inline const MatchFieldType& GetType() const{ return m_type; }
/**
* <p>The part of the web request that you want AWS WAF to search for a specified
* string. Parts of a request that you can search include the following:</p> <ul>
* <li> <p> <code>HEADER</code>: A specified request header, for example, the value
* of the <code>User-Agent</code> or <code>Referer</code> header. If you choose
* <code>HEADER</code> for the type, specify the name of the header in
* <code>Data</code>.</p> </li> <li> <p> <code>METHOD</code>: The HTTP method,
* which indicated the type of operation that the request is asking the origin to
* perform. Amazon CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: A query string, which is the part of a URL that
* appears after a <code>?</code> character, if any.</p> </li> <li> <p>
* <code>URI</code>: The part of a web request that identifies a resource, for
* example, <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p>
* <code>BODY</code>: The part of a request that contains any additional data that
* you want to send to your web server as the HTTP request body, such as data from
* a form. The request body immediately follows the request headers. Note that only
* the first <code>8192</code> bytes of the request body are forwarded to AWS WAF
* for inspection. To allow or block requests based on the length of the body, you
* can create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* rather than inspecting a single parameter, AWS WAF will inspect all parameters
* within the query for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The part of the web request that you want AWS WAF to search for a specified
* string. Parts of a request that you can search include the following:</p> <ul>
* <li> <p> <code>HEADER</code>: A specified request header, for example, the value
* of the <code>User-Agent</code> or <code>Referer</code> header. If you choose
* <code>HEADER</code> for the type, specify the name of the header in
* <code>Data</code>.</p> </li> <li> <p> <code>METHOD</code>: The HTTP method,
* which indicated the type of operation that the request is asking the origin to
* perform. Amazon CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: A query string, which is the part of a URL that
* appears after a <code>?</code> character, if any.</p> </li> <li> <p>
* <code>URI</code>: The part of a web request that identifies a resource, for
* example, <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p>
* <code>BODY</code>: The part of a request that contains any additional data that
* you want to send to your web server as the HTTP request body, such as data from
* a form. The request body immediately follows the request headers. Note that only
* the first <code>8192</code> bytes of the request body are forwarded to AWS WAF
* for inspection. To allow or block requests based on the length of the body, you
* can create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* rather than inspecting a single parameter, AWS WAF will inspect all parameters
* within the query for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul>
*/
inline void SetType(const MatchFieldType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The part of the web request that you want AWS WAF to search for a specified
* string. Parts of a request that you can search include the following:</p> <ul>
* <li> <p> <code>HEADER</code>: A specified request header, for example, the value
* of the <code>User-Agent</code> or <code>Referer</code> header. If you choose
* <code>HEADER</code> for the type, specify the name of the header in
* <code>Data</code>.</p> </li> <li> <p> <code>METHOD</code>: The HTTP method,
* which indicated the type of operation that the request is asking the origin to
* perform. Amazon CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: A query string, which is the part of a URL that
* appears after a <code>?</code> character, if any.</p> </li> <li> <p>
* <code>URI</code>: The part of a web request that identifies a resource, for
* example, <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p>
* <code>BODY</code>: The part of a request that contains any additional data that
* you want to send to your web server as the HTTP request body, such as data from
* a form. The request body immediately follows the request headers. Note that only
* the first <code>8192</code> bytes of the request body are forwarded to AWS WAF
* for inspection. To allow or block requests based on the length of the body, you
* can create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* rather than inspecting a single parameter, AWS WAF will inspect all parameters
* within the query for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul>
*/
inline void SetType(MatchFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The part of the web request that you want AWS WAF to search for a specified
* string. Parts of a request that you can search include the following:</p> <ul>
* <li> <p> <code>HEADER</code>: A specified request header, for example, the value
* of the <code>User-Agent</code> or <code>Referer</code> header. If you choose
* <code>HEADER</code> for the type, specify the name of the header in
* <code>Data</code>.</p> </li> <li> <p> <code>METHOD</code>: The HTTP method,
* which indicated the type of operation that the request is asking the origin to
* perform. Amazon CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: A query string, which is the part of a URL that
* appears after a <code>?</code> character, if any.</p> </li> <li> <p>
* <code>URI</code>: The part of a web request that identifies a resource, for
* example, <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p>
* <code>BODY</code>: The part of a request that contains any additional data that
* you want to send to your web server as the HTTP request body, such as data from
* a form. The request body immediately follows the request headers. Note that only
* the first <code>8192</code> bytes of the request body are forwarded to AWS WAF
* for inspection. To allow or block requests based on the length of the body, you
* can create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* rather than inspecting a single parameter, AWS WAF will inspect all parameters
* within the query for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul>
*/
inline FieldToMatch& WithType(const MatchFieldType& value) { SetType(value); return *this;}
/**
* <p>The part of the web request that you want AWS WAF to search for a specified
* string. Parts of a request that you can search include the following:</p> <ul>
* <li> <p> <code>HEADER</code>: A specified request header, for example, the value
* of the <code>User-Agent</code> or <code>Referer</code> header. If you choose
* <code>HEADER</code> for the type, specify the name of the header in
* <code>Data</code>.</p> </li> <li> <p> <code>METHOD</code>: The HTTP method,
* which indicated the type of operation that the request is asking the origin to
* perform. Amazon CloudFront supports the following methods: <code>DELETE</code>,
* <code>GET</code>, <code>HEAD</code>, <code>OPTIONS</code>, <code>PATCH</code>,
* <code>POST</code>, and <code>PUT</code>.</p> </li> <li> <p>
* <code>QUERY_STRING</code>: A query string, which is the part of a URL that
* appears after a <code>?</code> character, if any.</p> </li> <li> <p>
* <code>URI</code>: The part of a web request that identifies a resource, for
* example, <code>/images/daily-ad.jpg</code>.</p> </li> <li> <p>
* <code>BODY</code>: The part of a request that contains any additional data that
* you want to send to your web server as the HTTP request body, such as data from
* a form. The request body immediately follows the request headers. Note that only
* the first <code>8192</code> bytes of the request body are forwarded to AWS WAF
* for inspection. To allow or block requests based on the length of the body, you
* can create a size constraint set. For more information, see
* <a>CreateSizeConstraintSet</a>. </p> </li> <li> <p>
* <code>SINGLE_QUERY_ARG</code>: The parameter in the query string that you will
* inspect, such as <i>UserName</i> or <i>SalesRegion</i>. The maximum length for
* <code>SINGLE_QUERY_ARG</code> is 30 characters.</p> </li> <li> <p>
* <code>ALL_QUERY_ARGS</code>: Similar to <code>SINGLE_QUERY_ARG</code>, but
* rather than inspecting a single parameter, AWS WAF will inspect all parameters
* within the query for the value or regex pattern that you specify in
* <code>TargetString</code>.</p> </li> </ul>
*/
inline FieldToMatch& WithType(MatchFieldType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline const Aws::String& GetData() const{ return m_data; }
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline FieldToMatch& WithData(const Aws::String& value) { SetData(value); return *this;}
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline FieldToMatch& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
/**
* <p>When the value of <code>Type</code> is <code>HEADER</code>, enter the name of
* the header that you want AWS WAF to search, for example, <code>User-Agent</code>
* or <code>Referer</code>. The name of the header is not case sensitive.</p>
* <p>When the value of <code>Type</code> is <code>SINGLE_QUERY_ARG</code>, enter
* the name of the parameter that you want AWS WAF to search, for example,
* <code>UserName</code> or <code>SalesRegion</code>. The parameter name is not
* case sensitive.</p> <p>If the value of <code>Type</code> is any other value,
* omit <code>Data</code>.</p>
*/
inline FieldToMatch& WithData(const char* value) { SetData(value); return *this;}
private:
MatchFieldType m_type;
bool m_typeHasBeenSet;
Aws::String m_data;
bool m_dataHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/GeoMatchConstraintType.h>
#include <aws/waf-regional/model/GeoMatchConstraintValue.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>The country from which
* web requests originate that you want AWS WAF to search for.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GeoMatchConstraint">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API GeoMatchConstraint
{
public:
GeoMatchConstraint();
GeoMatchConstraint(Aws::Utils::Json::JsonView jsonValue);
GeoMatchConstraint& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of geographical area you want AWS WAF to search for. Currently
* <code>Country</code> is the only valid value.</p>
*/
inline const GeoMatchConstraintType& GetType() const{ return m_type; }
/**
* <p>The type of geographical area you want AWS WAF to search for. Currently
* <code>Country</code> is the only valid value.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of geographical area you want AWS WAF to search for. Currently
* <code>Country</code> is the only valid value.</p>
*/
inline void SetType(const GeoMatchConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of geographical area you want AWS WAF to search for. Currently
* <code>Country</code> is the only valid value.</p>
*/
inline void SetType(GeoMatchConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of geographical area you want AWS WAF to search for. Currently
* <code>Country</code> is the only valid value.</p>
*/
inline GeoMatchConstraint& WithType(const GeoMatchConstraintType& value) { SetType(value); return *this;}
/**
* <p>The type of geographical area you want AWS WAF to search for. Currently
* <code>Country</code> is the only valid value.</p>
*/
inline GeoMatchConstraint& WithType(GeoMatchConstraintType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The country that you want AWS WAF to search for.</p>
*/
inline const GeoMatchConstraintValue& GetValue() const{ return m_value; }
/**
* <p>The country that you want AWS WAF to search for.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The country that you want AWS WAF to search for.</p>
*/
inline void SetValue(const GeoMatchConstraintValue& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The country that you want AWS WAF to search for.</p>
*/
inline void SetValue(GeoMatchConstraintValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The country that you want AWS WAF to search for.</p>
*/
inline GeoMatchConstraint& WithValue(const GeoMatchConstraintValue& value) { SetValue(value); return *this;}
/**
* <p>The country that you want AWS WAF to search for.</p>
*/
inline GeoMatchConstraint& WithValue(GeoMatchConstraintValue&& value) { SetValue(std::move(value)); return *this;}
private:
GeoMatchConstraintType m_type;
bool m_typeHasBeenSet;
GeoMatchConstraintValue m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
enum class GeoMatchConstraintType
{
NOT_SET,
Country
};
namespace GeoMatchConstraintTypeMapper
{
AWS_WAFREGIONAL_API GeoMatchConstraintType GetGeoMatchConstraintTypeForName(const Aws::String& name);
AWS_WAFREGIONAL_API Aws::String GetNameForGeoMatchConstraintType(GeoMatchConstraintType value);
} // namespace GeoMatchConstraintTypeMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,278 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
enum class GeoMatchConstraintValue
{
NOT_SET,
AF,
AX,
AL,
DZ,
AS,
AD,
AO,
AI,
AQ,
AG,
AR,
AM,
AW,
AU,
AT,
AZ,
BS,
BH,
BD,
BB,
BY,
BE,
BZ,
BJ,
BM,
BT,
BO,
BQ,
BA,
BW,
BV,
BR,
IO,
BN,
BG,
BF,
BI,
KH,
CM,
CA,
CV,
KY,
CF,
TD,
CL,
CN,
CX,
CC,
CO,
KM,
CG,
CD,
CK,
CR,
CI,
HR,
CU,
CW,
CY,
CZ,
DK,
DJ,
DM,
DO,
EC,
EG,
SV,
GQ,
ER,
EE,
ET,
FK,
FO,
FJ,
FI,
FR,
GF,
PF,
TF,
GA,
GM,
GE,
DE,
GH,
GI,
GR,
GL,
GD,
GP,
GU,
GT,
GG,
GN,
GW,
GY,
HT,
HM,
VA,
HN,
HK,
HU,
IS,
IN,
ID,
IR,
IQ,
IE,
IM,
IL,
IT,
JM,
JP,
JE,
JO,
KZ,
KE,
KI,
KP,
KR,
KW,
KG,
LA,
LV,
LB,
LS,
LR,
LY,
LI,
LT,
LU,
MO,
MK,
MG,
MW,
MY,
MV,
ML,
MT,
MH,
MQ,
MR,
MU,
YT,
MX,
FM,
MD,
MC,
MN,
ME,
MS,
MA,
MZ,
MM,
NA,
NR,
NP,
NL,
NC,
NZ,
NI,
NE,
NG,
NU,
NF,
MP,
NO,
OM,
PK,
PW,
PS,
PA,
PG,
PY,
PE,
PH,
PN,
PL,
PT,
PR,
QA,
RE,
RO,
RU,
RW,
BL,
SH,
KN,
LC,
MF,
PM,
VC,
WS,
SM,
ST,
SA,
SN,
RS,
SC,
SL,
SG,
SX,
SK,
SI,
SB,
SO,
ZA,
GS,
SS,
ES,
LK,
SD,
SR,
SJ,
SZ,
SE,
CH,
SY,
TW,
TJ,
TZ,
TH,
TL,
TG,
TK,
TO,
TT,
TN,
TR,
TM,
TC,
TV,
UG,
UA,
AE,
GB,
US,
UM,
UY,
UZ,
VU,
VE,
VN,
VG,
VI,
WF,
EH,
YE,
ZM,
ZW
};
namespace GeoMatchConstraintValueMapper
{
AWS_WAFREGIONAL_API GeoMatchConstraintValue GetGeoMatchConstraintValueForName(const Aws::String& name);
AWS_WAFREGIONAL_API Aws::String GetNameForGeoMatchConstraintValue(GeoMatchConstraintValue value);
} // namespace GeoMatchConstraintValueMapper
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,258 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/waf-regional/model/GeoMatchConstraint.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>Contains one or more
* countries that AWS WAF will search for.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GeoMatchSet">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API GeoMatchSet
{
public:
GeoMatchSet();
GeoMatchSet(Aws::Utils::Json::JsonView jsonValue);
GeoMatchSet& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline GeoMatchSet& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline GeoMatchSet& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>GeoMatchSetId</code> for an <code>GeoMatchSet</code>. You use
* <code>GeoMatchSetId</code> to get information about a <code>GeoMatchSet</code>
* (see <a>GeoMatchSet</a>), update a <code>GeoMatchSet</code> (see
* <a>UpdateGeoMatchSet</a>), insert a <code>GeoMatchSet</code> into a
* <code>Rule</code> or delete one from a <code>Rule</code> (see
* <a>UpdateRule</a>), and delete a <code>GeoMatchSet</code> from AWS WAF (see
* <a>DeleteGeoMatchSet</a>).</p> <p> <code>GeoMatchSetId</code> is returned by
* <a>CreateGeoMatchSet</a> and by <a>ListGeoMatchSets</a>.</p>
*/
inline GeoMatchSet& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline GeoMatchSet& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline GeoMatchSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline GeoMatchSet& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline const Aws::Vector<GeoMatchConstraint>& GetGeoMatchConstraints() const{ return m_geoMatchConstraints; }
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline bool GeoMatchConstraintsHasBeenSet() const { return m_geoMatchConstraintsHasBeenSet; }
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline void SetGeoMatchConstraints(const Aws::Vector<GeoMatchConstraint>& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = value; }
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline void SetGeoMatchConstraints(Aws::Vector<GeoMatchConstraint>&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints = std::move(value); }
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline GeoMatchSet& WithGeoMatchConstraints(const Aws::Vector<GeoMatchConstraint>& value) { SetGeoMatchConstraints(value); return *this;}
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline GeoMatchSet& WithGeoMatchConstraints(Aws::Vector<GeoMatchConstraint>&& value) { SetGeoMatchConstraints(std::move(value)); return *this;}
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline GeoMatchSet& AddGeoMatchConstraints(const GeoMatchConstraint& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.push_back(value); return *this; }
/**
* <p>An array of <a>GeoMatchConstraint</a> objects, which contain the country that
* you want AWS WAF to search for.</p>
*/
inline GeoMatchSet& AddGeoMatchConstraints(GeoMatchConstraint&& value) { m_geoMatchConstraintsHasBeenSet = true; m_geoMatchConstraints.push_back(std::move(value)); return *this; }
private:
Aws::String m_geoMatchSetId;
bool m_geoMatchSetIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<GeoMatchConstraint> m_geoMatchConstraints;
bool m_geoMatchConstraintsHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,164 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>Contains the identifier
* and the name of the <code>GeoMatchSet</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GeoMatchSetSummary">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API GeoMatchSetSummary
{
public:
GeoMatchSetSummary();
GeoMatchSetSummary(Aws::Utils::Json::JsonView jsonValue);
GeoMatchSetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline GeoMatchSetSummary& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline GeoMatchSetSummary& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>GeoMatchSetId</code> for an <a>GeoMatchSet</a>. You can use
* <code>GeoMatchSetId</code> in a <a>GetGeoMatchSet</a> request to get detailed
* information about an <a>GeoMatchSet</a>.</p>
*/
inline GeoMatchSetSummary& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline GeoMatchSetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline GeoMatchSetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name or description of the <a>GeoMatchSet</a>. You can't change
* the name of an <code>GeoMatchSet</code> after you create it.</p>
*/
inline GeoMatchSetSummary& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_geoMatchSetId;
bool m_geoMatchSetIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/ChangeAction.h>
#include <aws/waf-regional/model/GeoMatchConstraint.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>Specifies the type of
* update to perform to an <a>GeoMatchSet</a> with
* <a>UpdateGeoMatchSet</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GeoMatchSetUpdate">AWS
* API Reference</a></p>
*/
class AWS_WAFREGIONAL_API GeoMatchSetUpdate
{
public:
GeoMatchSetUpdate();
GeoMatchSetUpdate(Aws::Utils::Json::JsonView jsonValue);
GeoMatchSetUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies whether to insert or delete a country with
* <a>UpdateGeoMatchSet</a>.</p>
*/
inline const ChangeAction& GetAction() const{ return m_action; }
/**
* <p>Specifies whether to insert or delete a country with
* <a>UpdateGeoMatchSet</a>.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>Specifies whether to insert or delete a country with
* <a>UpdateGeoMatchSet</a>.</p>
*/
inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>Specifies whether to insert or delete a country with
* <a>UpdateGeoMatchSet</a>.</p>
*/
inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>Specifies whether to insert or delete a country with
* <a>UpdateGeoMatchSet</a>.</p>
*/
inline GeoMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
/**
* <p>Specifies whether to insert or delete a country with
* <a>UpdateGeoMatchSet</a>.</p>
*/
inline GeoMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>The country from which web requests originate that you want AWS WAF to search
* for.</p>
*/
inline const GeoMatchConstraint& GetGeoMatchConstraint() const{ return m_geoMatchConstraint; }
/**
* <p>The country from which web requests originate that you want AWS WAF to search
* for.</p>
*/
inline bool GeoMatchConstraintHasBeenSet() const { return m_geoMatchConstraintHasBeenSet; }
/**
* <p>The country from which web requests originate that you want AWS WAF to search
* for.</p>
*/
inline void SetGeoMatchConstraint(const GeoMatchConstraint& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = value; }
/**
* <p>The country from which web requests originate that you want AWS WAF to search
* for.</p>
*/
inline void SetGeoMatchConstraint(GeoMatchConstraint&& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = std::move(value); }
/**
* <p>The country from which web requests originate that you want AWS WAF to search
* for.</p>
*/
inline GeoMatchSetUpdate& WithGeoMatchConstraint(const GeoMatchConstraint& value) { SetGeoMatchConstraint(value); return *this;}
/**
* <p>The country from which web requests originate that you want AWS WAF to search
* for.</p>
*/
inline GeoMatchSetUpdate& WithGeoMatchConstraint(GeoMatchConstraint&& value) { SetGeoMatchConstraint(std::move(value)); return *this;}
private:
ChangeAction m_action;
bool m_actionHasBeenSet;
GeoMatchConstraint m_geoMatchConstraint;
bool m_geoMatchConstraintHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetByteMatchSetRequest : public WAFRegionalRequest
{
public:
GetByteMatchSetRequest();
// 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 "GetByteMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline const Aws::String& GetByteMatchSetId() const{ return m_byteMatchSetId; }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline bool ByteMatchSetIdHasBeenSet() const { return m_byteMatchSetIdHasBeenSet; }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const Aws::String& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = value; }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(Aws::String&& value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId = std::move(value); }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline void SetByteMatchSetId(const char* value) { m_byteMatchSetIdHasBeenSet = true; m_byteMatchSetId.assign(value); }
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline GetByteMatchSetRequest& WithByteMatchSetId(const Aws::String& value) { SetByteMatchSetId(value); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline GetByteMatchSetRequest& WithByteMatchSetId(Aws::String&& value) { SetByteMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to
* get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by
* <a>ListByteMatchSets</a>.</p>
*/
inline GetByteMatchSetRequest& WithByteMatchSetId(const char* value) { SetByteMatchSetId(value); return *this;}
private:
Aws::String m_byteMatchSetId;
bool m_byteMatchSetIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/ByteMatchSet.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetByteMatchSetResult
{
public:
GetByteMatchSetResult();
GetByteMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetByteMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>ByteMatchSet</a> that you specified in the
* <code>GetByteMatchSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>ByteMatchSet</a>: Contains
* <code>ByteMatchSetId</code>, <code>ByteMatchTuples</code>, and <code>Name</code>
* </p> </li> <li> <p> <code>ByteMatchTuples</code>: Contains an array of
* <a>ByteMatchTuple</a> objects. Each <code>ByteMatchTuple</code> object contains
* <a>FieldToMatch</a>, <code>PositionalConstraint</code>,
* <code>TargetString</code>, and <code>TextTransformation</code> </p> </li> <li>
* <p> <a>FieldToMatch</a>: Contains <code>Data</code> and <code>Type</code> </p>
* </li> </ul>
*/
inline const ByteMatchSet& GetByteMatchSet() const{ return m_byteMatchSet; }
/**
* <p>Information about the <a>ByteMatchSet</a> that you specified in the
* <code>GetByteMatchSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>ByteMatchSet</a>: Contains
* <code>ByteMatchSetId</code>, <code>ByteMatchTuples</code>, and <code>Name</code>
* </p> </li> <li> <p> <code>ByteMatchTuples</code>: Contains an array of
* <a>ByteMatchTuple</a> objects. Each <code>ByteMatchTuple</code> object contains
* <a>FieldToMatch</a>, <code>PositionalConstraint</code>,
* <code>TargetString</code>, and <code>TextTransformation</code> </p> </li> <li>
* <p> <a>FieldToMatch</a>: Contains <code>Data</code> and <code>Type</code> </p>
* </li> </ul>
*/
inline void SetByteMatchSet(const ByteMatchSet& value) { m_byteMatchSet = value; }
/**
* <p>Information about the <a>ByteMatchSet</a> that you specified in the
* <code>GetByteMatchSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>ByteMatchSet</a>: Contains
* <code>ByteMatchSetId</code>, <code>ByteMatchTuples</code>, and <code>Name</code>
* </p> </li> <li> <p> <code>ByteMatchTuples</code>: Contains an array of
* <a>ByteMatchTuple</a> objects. Each <code>ByteMatchTuple</code> object contains
* <a>FieldToMatch</a>, <code>PositionalConstraint</code>,
* <code>TargetString</code>, and <code>TextTransformation</code> </p> </li> <li>
* <p> <a>FieldToMatch</a>: Contains <code>Data</code> and <code>Type</code> </p>
* </li> </ul>
*/
inline void SetByteMatchSet(ByteMatchSet&& value) { m_byteMatchSet = std::move(value); }
/**
* <p>Information about the <a>ByteMatchSet</a> that you specified in the
* <code>GetByteMatchSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>ByteMatchSet</a>: Contains
* <code>ByteMatchSetId</code>, <code>ByteMatchTuples</code>, and <code>Name</code>
* </p> </li> <li> <p> <code>ByteMatchTuples</code>: Contains an array of
* <a>ByteMatchTuple</a> objects. Each <code>ByteMatchTuple</code> object contains
* <a>FieldToMatch</a>, <code>PositionalConstraint</code>,
* <code>TargetString</code>, and <code>TextTransformation</code> </p> </li> <li>
* <p> <a>FieldToMatch</a>: Contains <code>Data</code> and <code>Type</code> </p>
* </li> </ul>
*/
inline GetByteMatchSetResult& WithByteMatchSet(const ByteMatchSet& value) { SetByteMatchSet(value); return *this;}
/**
* <p>Information about the <a>ByteMatchSet</a> that you specified in the
* <code>GetByteMatchSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>ByteMatchSet</a>: Contains
* <code>ByteMatchSetId</code>, <code>ByteMatchTuples</code>, and <code>Name</code>
* </p> </li> <li> <p> <code>ByteMatchTuples</code>: Contains an array of
* <a>ByteMatchTuple</a> objects. Each <code>ByteMatchTuple</code> object contains
* <a>FieldToMatch</a>, <code>PositionalConstraint</code>,
* <code>TargetString</code>, and <code>TextTransformation</code> </p> </li> <li>
* <p> <a>FieldToMatch</a>: Contains <code>Data</code> and <code>Type</code> </p>
* </li> </ul>
*/
inline GetByteMatchSetResult& WithByteMatchSet(ByteMatchSet&& value) { SetByteMatchSet(std::move(value)); return *this;}
private:
ByteMatchSet m_byteMatchSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetChangeTokenRequest : public WAFRegionalRequest
{
public:
GetChangeTokenRequest();
// 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 "GetChangeToken"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetChangeTokenResult
{
public:
GetChangeTokenResult();
GetChangeTokenResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetChangeTokenResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeToken = value; }
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeToken = std::move(value); }
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline void SetChangeToken(const char* value) { m_changeToken.assign(value); }
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline GetChangeTokenResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline GetChangeTokenResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The <code>ChangeToken</code> that you used in the request. Use this value in
* a <code>GetChangeTokenStatus</code> request to get the current status of the
* request. </p>
*/
inline GetChangeTokenResult& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetChangeTokenStatusRequest : public WAFRegionalRequest
{
public:
GetChangeTokenStatusRequest();
// 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 "GetChangeTokenStatus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; }
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); }
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline GetChangeTokenStatusRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline GetChangeTokenStatusRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;}
/**
* <p>The change token for which you want to get the status. This change token was
* previously returned in the <code>GetChangeToken</code> response.</p>
*/
inline GetChangeTokenStatusRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
private:
Aws::String m_changeToken;
bool m_changeTokenHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/ChangeTokenStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetChangeTokenStatusResult
{
public:
GetChangeTokenStatusResult();
GetChangeTokenStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetChangeTokenStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status of the change token.</p>
*/
inline const ChangeTokenStatus& GetChangeTokenStatus() const{ return m_changeTokenStatus; }
/**
* <p>The status of the change token.</p>
*/
inline void SetChangeTokenStatus(const ChangeTokenStatus& value) { m_changeTokenStatus = value; }
/**
* <p>The status of the change token.</p>
*/
inline void SetChangeTokenStatus(ChangeTokenStatus&& value) { m_changeTokenStatus = std::move(value); }
/**
* <p>The status of the change token.</p>
*/
inline GetChangeTokenStatusResult& WithChangeTokenStatus(const ChangeTokenStatus& value) { SetChangeTokenStatus(value); return *this;}
/**
* <p>The status of the change token.</p>
*/
inline GetChangeTokenStatusResult& WithChangeTokenStatus(ChangeTokenStatus&& value) { SetChangeTokenStatus(std::move(value)); return *this;}
private:
ChangeTokenStatus m_changeTokenStatus;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetGeoMatchSetRequest : public WAFRegionalRequest
{
public:
GetGeoMatchSetRequest();
// 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 "GetGeoMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; }
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; }
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; }
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); }
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); }
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline GetGeoMatchSetRequest& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;}
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline GetGeoMatchSetRequest& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>GeoMatchSetId</code> of the <a>GeoMatchSet</a> that you want to
* get. <code>GeoMatchSetId</code> is returned by <a>CreateGeoMatchSet</a> and by
* <a>ListGeoMatchSets</a>.</p>
*/
inline GetGeoMatchSetRequest& WithGeoMatchSetId(const char* value) { SetGeoMatchSetId(value); return *this;}
private:
Aws::String m_geoMatchSetId;
bool m_geoMatchSetIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/GeoMatchSet.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetGeoMatchSetResult
{
public:
GetGeoMatchSetResult();
GetGeoMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetGeoMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline const GeoMatchSet& GetGeoMatchSet() const{ return m_geoMatchSet; }
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline void SetGeoMatchSet(const GeoMatchSet& value) { m_geoMatchSet = value; }
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline void SetGeoMatchSet(GeoMatchSet&& value) { m_geoMatchSet = std::move(value); }
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline GetGeoMatchSetResult& WithGeoMatchSet(const GeoMatchSet& value) { SetGeoMatchSet(value); return *this;}
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline GetGeoMatchSetResult& WithGeoMatchSet(GeoMatchSet&& value) { SetGeoMatchSet(std::move(value)); return *this;}
private:
GeoMatchSet m_geoMatchSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetIPSetRequest : public WAFRegionalRequest
{
public:
GetIPSetRequest();
// 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 "GetIPSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline bool IPSetIdHasBeenSet() const { return m_iPSetIdHasBeenSet; }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = std::move(value); }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline GetIPSetRequest& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline GetIPSetRequest& WithIPSetId(Aws::String&& value) { SetIPSetId(std::move(value)); return *this;}
/**
* <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to get.
* <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
* <a>ListIPSets</a>.</p>
*/
inline GetIPSetRequest& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
private:
Aws::String m_iPSetId;
bool m_iPSetIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/IPSet.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetIPSetResult
{
public:
GetIPSetResult();
GetIPSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetIPSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>IPSet</a> that you specified in the
* <code>GetIPSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>IPSet</a>: Contains <code>IPSetDescriptors</code>,
* <code>IPSetId</code>, and <code>Name</code> </p> </li> <li> <p>
* <code>IPSetDescriptors</code>: Contains an array of <a>IPSetDescriptor</a>
* objects. Each <code>IPSetDescriptor</code> object contains <code>Type</code> and
* <code>Value</code> </p> </li> </ul>
*/
inline const IPSet& GetIPSet() const{ return m_iPSet; }
/**
* <p>Information about the <a>IPSet</a> that you specified in the
* <code>GetIPSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>IPSet</a>: Contains <code>IPSetDescriptors</code>,
* <code>IPSetId</code>, and <code>Name</code> </p> </li> <li> <p>
* <code>IPSetDescriptors</code>: Contains an array of <a>IPSetDescriptor</a>
* objects. Each <code>IPSetDescriptor</code> object contains <code>Type</code> and
* <code>Value</code> </p> </li> </ul>
*/
inline void SetIPSet(const IPSet& value) { m_iPSet = value; }
/**
* <p>Information about the <a>IPSet</a> that you specified in the
* <code>GetIPSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>IPSet</a>: Contains <code>IPSetDescriptors</code>,
* <code>IPSetId</code>, and <code>Name</code> </p> </li> <li> <p>
* <code>IPSetDescriptors</code>: Contains an array of <a>IPSetDescriptor</a>
* objects. Each <code>IPSetDescriptor</code> object contains <code>Type</code> and
* <code>Value</code> </p> </li> </ul>
*/
inline void SetIPSet(IPSet&& value) { m_iPSet = std::move(value); }
/**
* <p>Information about the <a>IPSet</a> that you specified in the
* <code>GetIPSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>IPSet</a>: Contains <code>IPSetDescriptors</code>,
* <code>IPSetId</code>, and <code>Name</code> </p> </li> <li> <p>
* <code>IPSetDescriptors</code>: Contains an array of <a>IPSetDescriptor</a>
* objects. Each <code>IPSetDescriptor</code> object contains <code>Type</code> and
* <code>Value</code> </p> </li> </ul>
*/
inline GetIPSetResult& WithIPSet(const IPSet& value) { SetIPSet(value); return *this;}
/**
* <p>Information about the <a>IPSet</a> that you specified in the
* <code>GetIPSet</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>IPSet</a>: Contains <code>IPSetDescriptors</code>,
* <code>IPSetId</code>, and <code>Name</code> </p> </li> <li> <p>
* <code>IPSetDescriptors</code>: Contains an array of <a>IPSetDescriptor</a>
* objects. Each <code>IPSetDescriptor</code> object contains <code>Type</code> and
* <code>Value</code> </p> </li> </ul>
*/
inline GetIPSetResult& WithIPSet(IPSet&& value) { SetIPSet(std::move(value)); return *this;}
private:
IPSet m_iPSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetLoggingConfigurationRequest : public WAFRegionalRequest
{
public:
GetLoggingConfigurationRequest();
// 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 "GetLoggingConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline GetLoggingConfigurationRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline GetLoggingConfigurationRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the web ACL for which you want to get the
* <a>LoggingConfiguration</a>.</p>
*/
inline GetLoggingConfigurationRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/LoggingConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetLoggingConfigurationResult
{
public:
GetLoggingConfigurationResult();
GetLoggingConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetLoggingConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The <a>LoggingConfiguration</a> for the specified web ACL.</p>
*/
inline const LoggingConfiguration& GetLoggingConfiguration() const{ return m_loggingConfiguration; }
/**
* <p>The <a>LoggingConfiguration</a> for the specified web ACL.</p>
*/
inline void SetLoggingConfiguration(const LoggingConfiguration& value) { m_loggingConfiguration = value; }
/**
* <p>The <a>LoggingConfiguration</a> for the specified web ACL.</p>
*/
inline void SetLoggingConfiguration(LoggingConfiguration&& value) { m_loggingConfiguration = std::move(value); }
/**
* <p>The <a>LoggingConfiguration</a> for the specified web ACL.</p>
*/
inline GetLoggingConfigurationResult& WithLoggingConfiguration(const LoggingConfiguration& value) { SetLoggingConfiguration(value); return *this;}
/**
* <p>The <a>LoggingConfiguration</a> for the specified web ACL.</p>
*/
inline GetLoggingConfigurationResult& WithLoggingConfiguration(LoggingConfiguration&& value) { SetLoggingConfiguration(std::move(value)); return *this;}
private:
LoggingConfiguration m_loggingConfiguration;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetPermissionPolicyRequest : public WAFRegionalRequest
{
public:
GetPermissionPolicyRequest();
// 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 "GetPermissionPolicy"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline GetPermissionPolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline GetPermissionPolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the
* policy.</p>
*/
inline GetPermissionPolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetPermissionPolicyResult
{
public:
GetPermissionPolicyResult();
GetPermissionPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetPermissionPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policy = value; }
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline void SetPolicy(const char* value) { m_policy.assign(value); }
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline GetPermissionPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline GetPermissionPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The IAM policy attached to the specified RuleGroup.</p>
*/
inline GetPermissionPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_policy;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetRateBasedRuleManagedKeysRequest : public WAFRegionalRequest
{
public:
GetRateBasedRuleManagedKeysRequest();
// 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 "GetRateBasedRuleManagedKeys"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline GetRateBasedRuleManagedKeysRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline GetRateBasedRuleManagedKeysRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> for which you want to get
* a list of <code>ManagedKeys</code>. <code>RuleId</code> is returned by
* <a>CreateRateBasedRule</a> and by <a>ListRateBasedRules</a>.</p>
*/
inline GetRateBasedRuleManagedKeysRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; }
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::move(value); }
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); }
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline GetRateBasedRuleManagedKeysRequest& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline GetRateBasedRuleManagedKeysRequest& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
/**
* <p>A null value and not currently used. Do not include this in your request.</p>
*/
inline GetRateBasedRuleManagedKeysRequest& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
private:
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
Aws::String m_nextMarker;
bool m_nextMarkerHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetRateBasedRuleManagedKeysResult
{
public:
GetRateBasedRuleManagedKeysResult();
GetRateBasedRuleManagedKeysResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRateBasedRuleManagedKeysResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline const Aws::Vector<Aws::String>& GetManagedKeys() const{ return m_managedKeys; }
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline void SetManagedKeys(const Aws::Vector<Aws::String>& value) { m_managedKeys = value; }
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline void SetManagedKeys(Aws::Vector<Aws::String>&& value) { m_managedKeys = std::move(value); }
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline GetRateBasedRuleManagedKeysResult& WithManagedKeys(const Aws::Vector<Aws::String>& value) { SetManagedKeys(value); return *this;}
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline GetRateBasedRuleManagedKeysResult& WithManagedKeys(Aws::Vector<Aws::String>&& value) { SetManagedKeys(std::move(value)); return *this;}
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline GetRateBasedRuleManagedKeysResult& AddManagedKeys(const Aws::String& value) { m_managedKeys.push_back(value); return *this; }
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline GetRateBasedRuleManagedKeysResult& AddManagedKeys(Aws::String&& value) { m_managedKeys.push_back(std::move(value)); return *this; }
/**
* <p>An array of IP addresses that currently are blocked by the specified
* <a>RateBasedRule</a>. </p>
*/
inline GetRateBasedRuleManagedKeysResult& AddManagedKeys(const char* value) { m_managedKeys.push_back(value); return *this; }
/**
* <p>A null value and not currently used.</p>
*/
inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
/**
* <p>A null value and not currently used.</p>
*/
inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
/**
* <p>A null value and not currently used.</p>
*/
inline void SetNextMarker(Aws::String&& value) { m_nextMarker = std::move(value); }
/**
* <p>A null value and not currently used.</p>
*/
inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
/**
* <p>A null value and not currently used.</p>
*/
inline GetRateBasedRuleManagedKeysResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
/**
* <p>A null value and not currently used.</p>
*/
inline GetRateBasedRuleManagedKeysResult& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
/**
* <p>A null value and not currently used.</p>
*/
inline GetRateBasedRuleManagedKeysResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
private:
Aws::Vector<Aws::String> m_managedKeys;
Aws::String m_nextMarker;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetRateBasedRuleRequest : public WAFRegionalRequest
{
public:
GetRateBasedRuleRequest();
// 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 "GetRateBasedRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline GetRateBasedRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline GetRateBasedRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by
* <a>ListRateBasedRules</a>.</p>
*/
inline GetRateBasedRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
private:
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RateBasedRule.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetRateBasedRuleResult
{
public:
GetRateBasedRuleResult();
GetRateBasedRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRateBasedRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>RateBasedRule</a> that you specified in the
* <code>GetRateBasedRule</code> request.</p>
*/
inline const RateBasedRule& GetRule() const{ return m_rule; }
/**
* <p>Information about the <a>RateBasedRule</a> that you specified in the
* <code>GetRateBasedRule</code> request.</p>
*/
inline void SetRule(const RateBasedRule& value) { m_rule = value; }
/**
* <p>Information about the <a>RateBasedRule</a> that you specified in the
* <code>GetRateBasedRule</code> request.</p>
*/
inline void SetRule(RateBasedRule&& value) { m_rule = std::move(value); }
/**
* <p>Information about the <a>RateBasedRule</a> that you specified in the
* <code>GetRateBasedRule</code> request.</p>
*/
inline GetRateBasedRuleResult& WithRule(const RateBasedRule& value) { SetRule(value); return *this;}
/**
* <p>Information about the <a>RateBasedRule</a> that you specified in the
* <code>GetRateBasedRule</code> request.</p>
*/
inline GetRateBasedRuleResult& WithRule(RateBasedRule&& value) { SetRule(std::move(value)); return *this;}
private:
RateBasedRule m_rule;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetRegexMatchSetRequest : public WAFRegionalRequest
{
public:
GetRegexMatchSetRequest();
// 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 "GetRegexMatchSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline const Aws::String& GetRegexMatchSetId() const{ return m_regexMatchSetId; }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline void SetRegexMatchSetId(const Aws::String& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = value; }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline void SetRegexMatchSetId(Aws::String&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::move(value); }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline void SetRegexMatchSetId(const char* value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId.assign(value); }
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline GetRegexMatchSetRequest& WithRegexMatchSetId(const Aws::String& value) { SetRegexMatchSetId(value); return *this;}
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline GetRegexMatchSetRequest& WithRegexMatchSetId(Aws::String&& value) { SetRegexMatchSetId(std::move(value)); return *this;}
/**
* <p>The <code>RegexMatchSetId</code> of the <a>RegexMatchSet</a> that you want to
* get. <code>RegexMatchSetId</code> is returned by <a>CreateRegexMatchSet</a> and
* by <a>ListRegexMatchSets</a>.</p>
*/
inline GetRegexMatchSetRequest& WithRegexMatchSetId(const char* value) { SetRegexMatchSetId(value); return *this;}
private:
Aws::String m_regexMatchSetId;
bool m_regexMatchSetIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RegexMatchSet.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetRegexMatchSetResult
{
public:
GetRegexMatchSetResult();
GetRegexMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRegexMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>RegexMatchSet</a> that you specified in the
* <code>GetRegexMatchSet</code> request. For more information, see
* <a>RegexMatchTuple</a>.</p>
*/
inline const RegexMatchSet& GetRegexMatchSet() const{ return m_regexMatchSet; }
/**
* <p>Information about the <a>RegexMatchSet</a> that you specified in the
* <code>GetRegexMatchSet</code> request. For more information, see
* <a>RegexMatchTuple</a>.</p>
*/
inline void SetRegexMatchSet(const RegexMatchSet& value) { m_regexMatchSet = value; }
/**
* <p>Information about the <a>RegexMatchSet</a> that you specified in the
* <code>GetRegexMatchSet</code> request. For more information, see
* <a>RegexMatchTuple</a>.</p>
*/
inline void SetRegexMatchSet(RegexMatchSet&& value) { m_regexMatchSet = std::move(value); }
/**
* <p>Information about the <a>RegexMatchSet</a> that you specified in the
* <code>GetRegexMatchSet</code> request. For more information, see
* <a>RegexMatchTuple</a>.</p>
*/
inline GetRegexMatchSetResult& WithRegexMatchSet(const RegexMatchSet& value) { SetRegexMatchSet(value); return *this;}
/**
* <p>Information about the <a>RegexMatchSet</a> that you specified in the
* <code>GetRegexMatchSet</code> request. For more information, see
* <a>RegexMatchTuple</a>.</p>
*/
inline GetRegexMatchSetResult& WithRegexMatchSet(RegexMatchSet&& value) { SetRegexMatchSet(std::move(value)); return *this;}
private:
RegexMatchSet m_regexMatchSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetRegexPatternSetRequest : public WAFRegionalRequest
{
public:
GetRegexPatternSetRequest();
// 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 "GetRegexPatternSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline const Aws::String& GetRegexPatternSetId() const{ return m_regexPatternSetId; }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline void SetRegexPatternSetId(const Aws::String& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = value; }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline void SetRegexPatternSetId(Aws::String&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::move(value); }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline void SetRegexPatternSetId(const char* value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId.assign(value); }
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline GetRegexPatternSetRequest& WithRegexPatternSetId(const Aws::String& value) { SetRegexPatternSetId(value); return *this;}
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline GetRegexPatternSetRequest& WithRegexPatternSetId(Aws::String&& value) { SetRegexPatternSetId(std::move(value)); return *this;}
/**
* <p>The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you
* want to get. <code>RegexPatternSetId</code> is returned by
* <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
*/
inline GetRegexPatternSetRequest& WithRegexPatternSetId(const char* value) { SetRegexPatternSetId(value); return *this;}
private:
Aws::String m_regexPatternSetId;
bool m_regexPatternSetIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RegexPatternSet.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetRegexPatternSetResult
{
public:
GetRegexPatternSetResult();
GetRegexPatternSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRegexPatternSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>RegexPatternSet</a> that you specified in the
* <code>GetRegexPatternSet</code> request, including the identifier of the pattern
* set and the regular expression patterns you want AWS WAF to search for. </p>
*/
inline const RegexPatternSet& GetRegexPatternSet() const{ return m_regexPatternSet; }
/**
* <p>Information about the <a>RegexPatternSet</a> that you specified in the
* <code>GetRegexPatternSet</code> request, including the identifier of the pattern
* set and the regular expression patterns you want AWS WAF to search for. </p>
*/
inline void SetRegexPatternSet(const RegexPatternSet& value) { m_regexPatternSet = value; }
/**
* <p>Information about the <a>RegexPatternSet</a> that you specified in the
* <code>GetRegexPatternSet</code> request, including the identifier of the pattern
* set and the regular expression patterns you want AWS WAF to search for. </p>
*/
inline void SetRegexPatternSet(RegexPatternSet&& value) { m_regexPatternSet = std::move(value); }
/**
* <p>Information about the <a>RegexPatternSet</a> that you specified in the
* <code>GetRegexPatternSet</code> request, including the identifier of the pattern
* set and the regular expression patterns you want AWS WAF to search for. </p>
*/
inline GetRegexPatternSetResult& WithRegexPatternSet(const RegexPatternSet& value) { SetRegexPatternSet(value); return *this;}
/**
* <p>Information about the <a>RegexPatternSet</a> that you specified in the
* <code>GetRegexPatternSet</code> request, including the identifier of the pattern
* set and the regular expression patterns you want AWS WAF to search for. </p>
*/
inline GetRegexPatternSetResult& WithRegexPatternSet(RegexPatternSet&& value) { SetRegexPatternSet(std::move(value)); return *this;}
private:
RegexPatternSet m_regexPatternSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetRuleGroupRequest : public WAFRegionalRequest
{
public:
GetRuleGroupRequest();
// 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 "GetRuleGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline GetRuleGroupRequest& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline GetRuleGroupRequest& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
/**
* <p>The <code>RuleGroupId</code> of the <a>RuleGroup</a> that you want to get.
* <code>RuleGroupId</code> is returned by <a>CreateRuleGroup</a> and by
* <a>ListRuleGroups</a>.</p>
*/
inline GetRuleGroupRequest& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
private:
Aws::String m_ruleGroupId;
bool m_ruleGroupIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/RuleGroup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetRuleGroupResult
{
public:
GetRuleGroupResult();
GetRuleGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRuleGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>RuleGroup</a> that you specified in the
* <code>GetRuleGroup</code> request. </p>
*/
inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
/**
* <p>Information about the <a>RuleGroup</a> that you specified in the
* <code>GetRuleGroup</code> request. </p>
*/
inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroup = value; }
/**
* <p>Information about the <a>RuleGroup</a> that you specified in the
* <code>GetRuleGroup</code> request. </p>
*/
inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroup = std::move(value); }
/**
* <p>Information about the <a>RuleGroup</a> that you specified in the
* <code>GetRuleGroup</code> request. </p>
*/
inline GetRuleGroupResult& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
/**
* <p>Information about the <a>RuleGroup</a> that you specified in the
* <code>GetRuleGroup</code> request. </p>
*/
inline GetRuleGroupResult& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
private:
RuleGroup m_ruleGroup;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/WAFRegionalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WAFRegional
{
namespace Model
{
/**
*/
class AWS_WAFREGIONAL_API GetRuleRequest : public WAFRegionalRequest
{
public:
GetRuleRequest();
// 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 "GetRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline const Aws::String& GetRuleId() const{ return m_ruleId; }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline GetRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline GetRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
/**
* <p>The <code>RuleId</code> of the <a>Rule</a> that you want to get.
* <code>RuleId</code> is returned by <a>CreateRule</a> and by
* <a>ListRules</a>.</p>
*/
inline GetRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
private:
Aws::String m_ruleId;
bool m_ruleIdHasBeenSet;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf-regional/WAFRegional_EXPORTS.h>
#include <aws/waf-regional/model/Rule.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFRegional
{
namespace Model
{
class AWS_WAFREGIONAL_API GetRuleResult
{
public:
GetRuleResult();
GetRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline const Rule& GetRule() const{ return m_rule; }
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline void SetRule(const Rule& value) { m_rule = value; }
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline void SetRule(Rule&& value) { m_rule = std::move(value); }
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline GetRuleResult& WithRule(const Rule& value) { SetRule(value); return *this;}
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline GetRuleResult& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
private:
Rule m_rule;
};
} // namespace Model
} // namespace WAFRegional
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More