/** * 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 ChimeSDKMediaPipelines { namespace Model { /** *

A structure that contains the settings for a keyword match * task.

See Also:

AWS * API Reference

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

The name of the keyword match rule.

*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *

The name of the keyword match rule.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

The name of the keyword match rule.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

The name of the keyword match rule.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

The name of the keyword match rule.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

The name of the keyword match rule.

*/ inline KeywordMatchConfiguration& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *

The name of the keyword match rule.

*/ inline KeywordMatchConfiguration& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *

The name of the keyword match rule.

*/ inline KeywordMatchConfiguration& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *

The keywords or phrases that you want to match.

*/ inline const Aws::Vector& GetKeywords() const{ return m_keywords; } /** *

The keywords or phrases that you want to match.

*/ inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; } /** *

The keywords or phrases that you want to match.

*/ inline void SetKeywords(const Aws::Vector& value) { m_keywordsHasBeenSet = true; m_keywords = value; } /** *

The keywords or phrases that you want to match.

*/ inline void SetKeywords(Aws::Vector&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); } /** *

The keywords or phrases that you want to match.

*/ inline KeywordMatchConfiguration& WithKeywords(const Aws::Vector& value) { SetKeywords(value); return *this;} /** *

The keywords or phrases that you want to match.

*/ inline KeywordMatchConfiguration& WithKeywords(Aws::Vector&& value) { SetKeywords(std::move(value)); return *this;} /** *

The keywords or phrases that you want to match.

*/ inline KeywordMatchConfiguration& AddKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; } /** *

The keywords or phrases that you want to match.

*/ inline KeywordMatchConfiguration& AddKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(std::move(value)); return *this; } /** *

The keywords or phrases that you want to match.

*/ inline KeywordMatchConfiguration& AddKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; } /** *

Matches keywords or phrases on their presence or absence. If set to * TRUE, the rule matches when all the specified keywords or phrases * are absent. Default: FALSE.

*/ inline bool GetNegate() const{ return m_negate; } /** *

Matches keywords or phrases on their presence or absence. If set to * TRUE, the rule matches when all the specified keywords or phrases * are absent. Default: FALSE.

*/ inline bool NegateHasBeenSet() const { return m_negateHasBeenSet; } /** *

Matches keywords or phrases on their presence or absence. If set to * TRUE, the rule matches when all the specified keywords or phrases * are absent. Default: FALSE.

*/ inline void SetNegate(bool value) { m_negateHasBeenSet = true; m_negate = value; } /** *

Matches keywords or phrases on their presence or absence. If set to * TRUE, the rule matches when all the specified keywords or phrases * are absent. Default: FALSE.

*/ inline KeywordMatchConfiguration& WithNegate(bool value) { SetNegate(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::Vector m_keywords; bool m_keywordsHasBeenSet = false; bool m_negate; bool m_negateHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMediaPipelines } // namespace Aws