/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace WAFRegional { namespace Model { /** */ class UpdateWebACLRequest : public WAFRegionalRequest { public: AWS_WAFREGIONAL_API UpdateWebACLRequest(); // 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 "UpdateWebACL"; } AWS_WAFREGIONAL_API Aws::String SerializePayload() const override; AWS_WAFREGIONAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline const Aws::String& GetWebACLId() const{ return m_webACLId; } /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; } /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; } /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); } /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); } /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline UpdateWebACLRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); return *this;} /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline UpdateWebACLRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); return *this;} /** *

The WebACLId of the WebACL that you want to update. * WebACLId is returned by CreateWebACL and by * ListWebACLs.

*/ inline UpdateWebACLRequest& WithWebACLId(const char* value) { SetWebACLId(value); return *this;} /** *

The value returned by the most recent call to GetChangeToken.

*/ inline const Aws::String& GetChangeToken() const{ return m_changeToken; } /** *

The value returned by the most recent call to GetChangeToken.

*/ inline bool ChangeTokenHasBeenSet() const { return m_changeTokenHasBeenSet; } /** *

The value returned by the most recent call to GetChangeToken.

*/ inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; } /** *

The value returned by the most recent call to GetChangeToken.

*/ inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = std::move(value); } /** *

The value returned by the most recent call to GetChangeToken.

*/ inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); } /** *

The value returned by the most recent call to GetChangeToken.

*/ inline UpdateWebACLRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;} /** *

The value returned by the most recent call to GetChangeToken.

*/ inline UpdateWebACLRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;} /** *

The value returned by the most recent call to GetChangeToken.

*/ inline UpdateWebACLRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;} /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline const Aws::Vector& GetUpdates() const{ return m_updates; } /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; } /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline void SetUpdates(const Aws::Vector& value) { m_updatesHasBeenSet = true; m_updates = value; } /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline void SetUpdates(Aws::Vector&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); } /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline UpdateWebACLRequest& WithUpdates(const Aws::Vector& value) { SetUpdates(value); return *this;} /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline UpdateWebACLRequest& WithUpdates(Aws::Vector&& value) { SetUpdates(std::move(value)); return *this;} /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline UpdateWebACLRequest& AddUpdates(const WebACLUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; } /** *

An array of updates to make to the WebACL.

An array of * WebACLUpdate objects that you want to insert into or delete from a * WebACL. For more information, see the applicable data types:

    *
  • WebACLUpdate: Contains Action and * ActivatedRule

  • ActivatedRule: Contains * Action, OverrideAction, Priority, * RuleId, and Type. * ActivatedRule|OverrideAction applies only when updating or adding a * RuleGroup to a WebACL. In this case, you do not use * ActivatedRule|Action. For all other update requests, * ActivatedRule|Action is used instead of * ActivatedRule|OverrideAction.

  • WafAction: * Contains Type

*/ inline UpdateWebACLRequest& AddUpdates(WebACLUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; } /** *

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the * default action if a request doesn't match the criteria in any of the rules in a * web ACL.

*/ inline const WafAction& GetDefaultAction() const{ return m_defaultAction; } /** *

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the * default action if a request doesn't match the criteria in any of the rules in a * web ACL.

*/ inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; } /** *

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the * default action if a request doesn't match the criteria in any of the rules in a * web ACL.

*/ inline void SetDefaultAction(const WafAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; } /** *

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the * default action if a request doesn't match the criteria in any of the rules in a * web ACL.

*/ inline void SetDefaultAction(WafAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); } /** *

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the * default action if a request doesn't match the criteria in any of the rules in a * web ACL.

*/ inline UpdateWebACLRequest& WithDefaultAction(const WafAction& value) { SetDefaultAction(value); return *this;} /** *

A default action for the web ACL, either ALLOW or BLOCK. AWS WAF performs the * default action if a request doesn't match the criteria in any of the rules in a * web ACL.

*/ inline UpdateWebACLRequest& WithDefaultAction(WafAction&& value) { SetDefaultAction(std::move(value)); return *this;} private: Aws::String m_webACLId; bool m_webACLIdHasBeenSet = false; Aws::String m_changeToken; bool m_changeTokenHasBeenSet = false; Aws::Vector m_updates; bool m_updatesHasBeenSet = false; WafAction m_defaultAction; bool m_defaultActionHasBeenSet = false; }; } // namespace Model } // namespace WAFRegional } // namespace Aws