/** * 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 UpdateSizeConstraintSetRequest : public WAFRequest { public: AWS_WAF_API UpdateSizeConstraintSetRequest(); // 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 "UpdateSizeConstraintSet"; } AWS_WAF_API Aws::String SerializePayload() const override; AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline const Aws::String& GetSizeConstraintSetId() const{ return m_sizeConstraintSetId; } /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline bool SizeConstraintSetIdHasBeenSet() const { return m_sizeConstraintSetIdHasBeenSet; } /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline void SetSizeConstraintSetId(const Aws::String& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = value; } /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline void SetSizeConstraintSetId(Aws::String&& value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId = std::move(value); } /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline void SetSizeConstraintSetId(const char* value) { m_sizeConstraintSetIdHasBeenSet = true; m_sizeConstraintSetId.assign(value); } /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline UpdateSizeConstraintSetRequest& WithSizeConstraintSetId(const Aws::String& value) { SetSizeConstraintSetId(value); return *this;} /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline UpdateSizeConstraintSetRequest& WithSizeConstraintSetId(Aws::String&& value) { SetSizeConstraintSetId(std::move(value)); return *this;} /** *

The SizeConstraintSetId of the SizeConstraintSet that you * want to update. SizeConstraintSetId is returned by * CreateSizeConstraintSet and by ListSizeConstraintSets.

*/ inline UpdateSizeConstraintSetRequest& WithSizeConstraintSetId(const char* value) { SetSizeConstraintSetId(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 UpdateSizeConstraintSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;} /** *

The value returned by the most recent call to GetChangeToken.

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

The value returned by the most recent call to GetChangeToken.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateSizeConstraintSetRequest& AddUpdates(SizeConstraintSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; } private: Aws::String m_sizeConstraintSetId; bool m_sizeConstraintSetIdHasBeenSet = false; Aws::String m_changeToken; bool m_changeTokenHasBeenSet = false; Aws::Vector m_updates; bool m_updatesHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws