129 lines
4.2 KiB
C++
129 lines
4.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/waf/WAF_EXPORTS.h>
|
|
#include <aws/waf/model/GeoMatchConstraintType.h>
|
|
#include <aws/waf/model/GeoMatchConstraintValue.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace WAF
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
|
|
* see <a
|
|
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
|
|
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
|
|
* WAF</b>, use the AWS WAFV2 API and see the <a
|
|
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
|
|
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
|
|
* endpoints for regional and global use. </p> <p>The country from which
|
|
* web requests originate that you want AWS WAF to search for.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GeoMatchConstraint">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_WAF_API GeoMatchConstraint
|
|
{
|
|
public:
|
|
GeoMatchConstraint();
|
|
GeoMatchConstraint(Aws::Utils::Json::JsonView jsonValue);
|
|
GeoMatchConstraint& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The type of geographical area you want AWS WAF to search for. Currently
|
|
* <code>Country</code> is the only valid value.</p>
|
|
*/
|
|
inline const GeoMatchConstraintType& GetType() const{ return m_type; }
|
|
|
|
/**
|
|
* <p>The type of geographical area you want AWS WAF to search for. Currently
|
|
* <code>Country</code> is the only valid value.</p>
|
|
*/
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The type of geographical area you want AWS WAF to search for. Currently
|
|
* <code>Country</code> is the only valid value.</p>
|
|
*/
|
|
inline void SetType(const GeoMatchConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
|
|
/**
|
|
* <p>The type of geographical area you want AWS WAF to search for. Currently
|
|
* <code>Country</code> is the only valid value.</p>
|
|
*/
|
|
inline void SetType(GeoMatchConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
|
|
/**
|
|
* <p>The type of geographical area you want AWS WAF to search for. Currently
|
|
* <code>Country</code> is the only valid value.</p>
|
|
*/
|
|
inline GeoMatchConstraint& WithType(const GeoMatchConstraintType& value) { SetType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The type of geographical area you want AWS WAF to search for. Currently
|
|
* <code>Country</code> is the only valid value.</p>
|
|
*/
|
|
inline GeoMatchConstraint& WithType(GeoMatchConstraintType&& value) { SetType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The country that you want AWS WAF to search for.</p>
|
|
*/
|
|
inline const GeoMatchConstraintValue& GetValue() const{ return m_value; }
|
|
|
|
/**
|
|
* <p>The country that you want AWS WAF to search for.</p>
|
|
*/
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The country that you want AWS WAF to search for.</p>
|
|
*/
|
|
inline void SetValue(const GeoMatchConstraintValue& value) { m_valueHasBeenSet = true; m_value = value; }
|
|
|
|
/**
|
|
* <p>The country that you want AWS WAF to search for.</p>
|
|
*/
|
|
inline void SetValue(GeoMatchConstraintValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
|
|
|
/**
|
|
* <p>The country that you want AWS WAF to search for.</p>
|
|
*/
|
|
inline GeoMatchConstraint& WithValue(const GeoMatchConstraintValue& value) { SetValue(value); return *this;}
|
|
|
|
/**
|
|
* <p>The country that you want AWS WAF to search for.</p>
|
|
*/
|
|
inline GeoMatchConstraint& WithValue(GeoMatchConstraintValue&& value) { SetValue(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
GeoMatchConstraintType m_type;
|
|
bool m_typeHasBeenSet;
|
|
|
|
GeoMatchConstraintValue m_value;
|
|
bool m_valueHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace WAF
|
|
} // namespace Aws
|