/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This is AWS WAF Classic documentation. For more information,
* see AWS
* WAF Classic in the developer guide. For the latest version of AWS
* WAF, use the AWS WAFV2 API and see the AWS
* WAF Developer Guide. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. Specifies the type of
* update to perform to an GeoMatchSet with
* UpdateGeoMatchSet.See Also:
AWS
* API Reference
Specifies whether to insert or delete a country with * UpdateGeoMatchSet.
*/ inline const ChangeAction& GetAction() const{ return m_action; } /** *Specifies whether to insert or delete a country with * UpdateGeoMatchSet.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *Specifies whether to insert or delete a country with * UpdateGeoMatchSet.
*/ inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *Specifies whether to insert or delete a country with * UpdateGeoMatchSet.
*/ inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *Specifies whether to insert or delete a country with * UpdateGeoMatchSet.
*/ inline GeoMatchSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;} /** *Specifies whether to insert or delete a country with * UpdateGeoMatchSet.
*/ inline GeoMatchSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;} /** *The country from which web requests originate that you want AWS WAF to search * for.
*/ inline const GeoMatchConstraint& GetGeoMatchConstraint() const{ return m_geoMatchConstraint; } /** *The country from which web requests originate that you want AWS WAF to search * for.
*/ inline bool GeoMatchConstraintHasBeenSet() const { return m_geoMatchConstraintHasBeenSet; } /** *The country from which web requests originate that you want AWS WAF to search * for.
*/ inline void SetGeoMatchConstraint(const GeoMatchConstraint& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = value; } /** *The country from which web requests originate that you want AWS WAF to search * for.
*/ inline void SetGeoMatchConstraint(GeoMatchConstraint&& value) { m_geoMatchConstraintHasBeenSet = true; m_geoMatchConstraint = std::move(value); } /** *The country from which web requests originate that you want AWS WAF to search * for.
*/ inline GeoMatchSetUpdate& WithGeoMatchConstraint(const GeoMatchConstraint& value) { SetGeoMatchConstraint(value); return *this;} /** *The country from which web requests originate that you want AWS WAF to search * for.
*/ inline GeoMatchSetUpdate& WithGeoMatchConstraint(GeoMatchConstraint&& value) { SetGeoMatchConstraint(std::move(value)); return *this;} private: ChangeAction m_action; bool m_actionHasBeenSet = false; GeoMatchConstraint m_geoMatchConstraint; bool m_geoMatchConstraintHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws