/** * 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 WAFRegional { namespace Model { /** */ class AWS_WAFREGIONAL_API UpdateGeoMatchSetRequest : public WAFRegionalRequest { public: UpdateGeoMatchSetRequest(); // 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 "UpdateGeoMatchSet"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline const Aws::String& GetGeoMatchSetId() const{ return m_geoMatchSetId; } /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline bool GeoMatchSetIdHasBeenSet() const { return m_geoMatchSetIdHasBeenSet; } /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline void SetGeoMatchSetId(const Aws::String& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = value; } /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline void SetGeoMatchSetId(Aws::String&& value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId = std::move(value); } /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline void SetGeoMatchSetId(const char* value) { m_geoMatchSetIdHasBeenSet = true; m_geoMatchSetId.assign(value); } /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline UpdateGeoMatchSetRequest& WithGeoMatchSetId(const Aws::String& value) { SetGeoMatchSetId(value); return *this;} /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

*/ inline UpdateGeoMatchSetRequest& WithGeoMatchSetId(Aws::String&& value) { SetGeoMatchSetId(std::move(value)); return *this;} /** *

The GeoMatchSetId of the GeoMatchSet that you want to * update. GeoMatchSetId is returned by CreateGeoMatchSet and * by ListGeoMatchSets.

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

The value returned by the most recent call to GetChangeToken.

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

The value returned by the most recent call to GetChangeToken.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

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

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

  • GeoMatchSetUpdate: Contains * Action and GeoMatchConstraint

  • * GeoMatchConstraint: Contains Type and Value *

    You can have only one Type and Value per * GeoMatchConstraint. To add multiple countries, include multiple * GeoMatchSetUpdate objects in your request.

*/ inline UpdateGeoMatchSetRequest& AddUpdates(GeoMatchSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; } private: Aws::String m_geoMatchSetId; bool m_geoMatchSetIdHasBeenSet; Aws::String m_changeToken; bool m_changeTokenHasBeenSet; Aws::Vector m_updates; bool m_updatesHasBeenSet; }; } // namespace Model } // namespace WAFRegional } // namespace Aws