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

See Also:

AWS * API Reference

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

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; } /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; } /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; } /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = std::move(value); } /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); } /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(const Aws::String& value) { SetSqlInjectionMatchSetId(value); return *this;} /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(std::move(value)); return *this;} /** *

A unique identifier for a SqlInjectionMatchSet. You use * SqlInjectionMatchSetId to get information about a * SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a * SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), * insert a SqlInjectionMatchSet into a Rule or delete * one from a Rule (see UpdateRule), and delete a * SqlInjectionMatchSet from AWS WAF (see * DeleteSqlInjectionMatchSet).

SqlInjectionMatchSetId * is returned by CreateSqlInjectionMatchSet and by * ListSqlInjectionMatchSets.

*/ inline SqlInjectionMatchSet& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;} /** *

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

The name, if any, of the SqlInjectionMatchSet.

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

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline const Aws::Vector& GetSqlInjectionMatchTuples() const{ return m_sqlInjectionMatchTuples; } /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline bool SqlInjectionMatchTuplesHasBeenSet() const { return m_sqlInjectionMatchTuplesHasBeenSet; } /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline void SetSqlInjectionMatchTuples(const Aws::Vector& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples = value; } /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline void SetSqlInjectionMatchTuples(Aws::Vector&& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples = std::move(value); } /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline SqlInjectionMatchSet& WithSqlInjectionMatchTuples(const Aws::Vector& value) { SetSqlInjectionMatchTuples(value); return *this;} /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline SqlInjectionMatchSet& WithSqlInjectionMatchTuples(Aws::Vector&& value) { SetSqlInjectionMatchTuples(std::move(value)); return *this;} /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline SqlInjectionMatchSet& AddSqlInjectionMatchTuples(const SqlInjectionMatchTuple& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples.push_back(value); return *this; } /** *

Specifies the parts of web requests that you want to inspect for snippets of * malicious SQL code.

*/ inline SqlInjectionMatchSet& AddSqlInjectionMatchTuples(SqlInjectionMatchTuple&& value) { m_sqlInjectionMatchTuplesHasBeenSet = true; m_sqlInjectionMatchTuples.push_back(std::move(value)); return *this; } private: Aws::String m_sqlInjectionMatchSetId; bool m_sqlInjectionMatchSetIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_sqlInjectionMatchTuples; bool m_sqlInjectionMatchTuplesHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws