/** * 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 XssMatchTuple objects, which specify the parts of web * requests that you want AWS WAF to inspect for cross-site scripting attacks and, * if you want AWS WAF to inspect a header, the name of the header. If a * XssMatchSet contains more than one XssMatchTuple * object, a request needs to include cross-site scripting attacks in only one of * the specified parts of the request to be considered a match.

See * Also:

AWS API * Reference

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

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline const Aws::String& GetXssMatchSetId() const{ return m_xssMatchSetId; } /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline bool XssMatchSetIdHasBeenSet() const { return m_xssMatchSetIdHasBeenSet; } /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline void SetXssMatchSetId(const Aws::String& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = value; } /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline void SetXssMatchSetId(Aws::String&& value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId = std::move(value); } /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline void SetXssMatchSetId(const char* value) { m_xssMatchSetIdHasBeenSet = true; m_xssMatchSetId.assign(value); } /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline XssMatchSet& WithXssMatchSetId(const Aws::String& value) { SetXssMatchSetId(value); return *this;} /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline XssMatchSet& WithXssMatchSetId(Aws::String&& value) { SetXssMatchSetId(std::move(value)); return *this;} /** *

A unique identifier for an XssMatchSet. You use * XssMatchSetId to get information about an XssMatchSet * (see GetXssMatchSet), update an XssMatchSet (see * UpdateXssMatchSet), insert an XssMatchSet into a * Rule or delete one from a Rule (see * UpdateRule), and delete an XssMatchSet from AWS WAF (see * DeleteXssMatchSet).

XssMatchSetId is returned by * CreateXssMatchSet and by ListXssMatchSets.

*/ inline XssMatchSet& WithXssMatchSetId(const char* value) { SetXssMatchSetId(value); return *this;} /** *

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

The name, if any, of the XssMatchSet.

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

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline const Aws::Vector& GetXssMatchTuples() const{ return m_xssMatchTuples; } /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline bool XssMatchTuplesHasBeenSet() const { return m_xssMatchTuplesHasBeenSet; } /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline void SetXssMatchTuples(const Aws::Vector& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = value; } /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline void SetXssMatchTuples(Aws::Vector&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples = std::move(value); } /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline XssMatchSet& WithXssMatchTuples(const Aws::Vector& value) { SetXssMatchTuples(value); return *this;} /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline XssMatchSet& WithXssMatchTuples(Aws::Vector&& value) { SetXssMatchTuples(std::move(value)); return *this;} /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline XssMatchSet& AddXssMatchTuples(const XssMatchTuple& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.push_back(value); return *this; } /** *

Specifies the parts of web requests that you want to inspect for cross-site * scripting attacks.

*/ inline XssMatchSet& AddXssMatchTuples(XssMatchTuple&& value) { m_xssMatchTuplesHasBeenSet = true; m_xssMatchTuples.push_back(std::move(value)); return *this; } private: Aws::String m_xssMatchSetId; bool m_xssMatchSetIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_xssMatchTuples; bool m_xssMatchTuplesHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws