/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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.

A complex type that * contains SizeConstraint objects, which specify the parts of web * requests that you want AWS WAF to inspect the size of. If a * SizeConstraintSet contains more than one * SizeConstraint object, a request only needs to match one constraint * to be considered a match.

See Also:

AWS * API Reference

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

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

A unique identifier for a SizeConstraintSet. You use * SizeConstraintSetId to get information about a * SizeConstraintSet (see GetSizeConstraintSet), update a * SizeConstraintSet (see UpdateSizeConstraintSet), insert a * SizeConstraintSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * SizeConstraintSet from AWS WAF (see * DeleteSizeConstraintSet).

SizeConstraintSetId is * returned by CreateSizeConstraintSet and by * ListSizeConstraintSets.

*/ inline SizeConstraintSet& WithSizeConstraintSetId(const char* value) { SetSizeConstraintSetId(value); return *this;} /** *

The name, if any, of the SizeConstraintSet.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name, if any, of the SizeConstraintSet.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name, if any, of the SizeConstraintSet.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name, if any, of the SizeConstraintSet.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name, if any, of the SizeConstraintSet.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name, if any, of the SizeConstraintSet.

*/ inline SizeConstraintSet& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name, if any, of the SizeConstraintSet.

*/ inline SizeConstraintSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name, if any, of the SizeConstraintSet.

*/ inline SizeConstraintSet& WithName(const char* value) { SetName(value); return *this;} /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline const Aws::Vector& GetSizeConstraints() const{ return m_sizeConstraints; } /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline bool SizeConstraintsHasBeenSet() const { return m_sizeConstraintsHasBeenSet; } /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline void SetSizeConstraints(const Aws::Vector& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints = value; } /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline void SetSizeConstraints(Aws::Vector&& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints = std::move(value); } /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline SizeConstraintSet& WithSizeConstraints(const Aws::Vector& value) { SetSizeConstraints(value); return *this;} /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline SizeConstraintSet& WithSizeConstraints(Aws::Vector&& value) { SetSizeConstraints(std::move(value)); return *this;} /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline SizeConstraintSet& AddSizeConstraints(const SizeConstraint& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints.push_back(value); return *this; } /** *

Specifies the parts of web requests that you want to inspect the size of.

*/ inline SizeConstraintSet& AddSizeConstraints(SizeConstraint&& value) { m_sizeConstraintsHasBeenSet = true; m_sizeConstraints.push_back(std::move(value)); return *this; } private: Aws::String m_sizeConstraintSetId; bool m_sizeConstraintSetIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_sizeConstraints; bool m_sizeConstraintsHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws