/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WAF { namespace Model { /** *

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.

The country from which * web requests originate that you want AWS WAF to search for.

See * Also:

AWS * API Reference

*/ class GeoMatchConstraint { public: AWS_WAF_API GeoMatchConstraint(); AWS_WAF_API GeoMatchConstraint(Aws::Utils::Json::JsonView jsonValue); AWS_WAF_API GeoMatchConstraint& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of geographical area you want AWS WAF to search for. Currently * Country is the only valid value.

*/ inline const GeoMatchConstraintType& GetType() const{ return m_type; } /** *

The type of geographical area you want AWS WAF to search for. Currently * Country is the only valid value.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of geographical area you want AWS WAF to search for. Currently * Country is the only valid value.

*/ inline void SetType(const GeoMatchConstraintType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of geographical area you want AWS WAF to search for. Currently * Country is the only valid value.

*/ inline void SetType(GeoMatchConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of geographical area you want AWS WAF to search for. Currently * Country is the only valid value.

*/ inline GeoMatchConstraint& WithType(const GeoMatchConstraintType& value) { SetType(value); return *this;} /** *

The type of geographical area you want AWS WAF to search for. Currently * Country is the only valid value.

*/ inline GeoMatchConstraint& WithType(GeoMatchConstraintType&& value) { SetType(std::move(value)); return *this;} /** *

The country that you want AWS WAF to search for.

*/ inline const GeoMatchConstraintValue& GetValue() const{ return m_value; } /** *

The country that you want AWS WAF to search for.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The country that you want AWS WAF to search for.

*/ inline void SetValue(const GeoMatchConstraintValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The country that you want AWS WAF to search for.

*/ inline void SetValue(GeoMatchConstraintValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The country that you want AWS WAF to search for.

*/ inline GeoMatchConstraint& WithValue(const GeoMatchConstraintValue& value) { SetValue(value); return *this;} /** *

The country that you want AWS WAF to search for.

*/ inline GeoMatchConstraint& WithValue(GeoMatchConstraintValue&& value) { SetValue(std::move(value)); return *this;} private: GeoMatchConstraintType m_type; bool m_typeHasBeenSet = false; GeoMatchConstraintValue m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws