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

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; } /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; } /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; } /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); } /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); } /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline UpdateRuleGroupRequest& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;} /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline UpdateRuleGroupRequest& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;} /** *

The RuleGroupId of the RuleGroup that you want to update. * RuleGroupId is returned by CreateRuleGroup and by * ListRuleGroups.

*/ inline UpdateRuleGroupRequest& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;} /** *

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

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

An array of RuleGroupUpdate objects that you want to insert into * or delete from a RuleGroup.

You can only insert * REGULAR rules into a rule group.

* 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.

*/ inline UpdateRuleGroupRequest& AddUpdates(RuleGroupUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(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 UpdateRuleGroupRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;} /** *

The value returned by the most recent call to GetChangeToken.

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

The value returned by the most recent call to GetChangeToken.

*/ inline UpdateRuleGroupRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;} private: Aws::String m_ruleGroupId; bool m_ruleGroupIdHasBeenSet = false; Aws::Vector m_updates; bool m_updatesHasBeenSet = false; Aws::String m_changeToken; bool m_changeTokenHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws