/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConnectContactLens { namespace Model { /** *

Provides the category rules that are used to automatically categorize * contacts based on uttered keywords and phrases.

See Also:

AWS * API Reference

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

The category rules that have been matched in the analyzed segment.

*/ inline const Aws::Vector& GetMatchedCategories() const{ return m_matchedCategories; } /** *

The category rules that have been matched in the analyzed segment.

*/ inline bool MatchedCategoriesHasBeenSet() const { return m_matchedCategoriesHasBeenSet; } /** *

The category rules that have been matched in the analyzed segment.

*/ inline void SetMatchedCategories(const Aws::Vector& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories = value; } /** *

The category rules that have been matched in the analyzed segment.

*/ inline void SetMatchedCategories(Aws::Vector&& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories = std::move(value); } /** *

The category rules that have been matched in the analyzed segment.

*/ inline Categories& WithMatchedCategories(const Aws::Vector& value) { SetMatchedCategories(value); return *this;} /** *

The category rules that have been matched in the analyzed segment.

*/ inline Categories& WithMatchedCategories(Aws::Vector&& value) { SetMatchedCategories(std::move(value)); return *this;} /** *

The category rules that have been matched in the analyzed segment.

*/ inline Categories& AddMatchedCategories(const Aws::String& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories.push_back(value); return *this; } /** *

The category rules that have been matched in the analyzed segment.

*/ inline Categories& AddMatchedCategories(Aws::String&& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories.push_back(std::move(value)); return *this; } /** *

The category rules that have been matched in the analyzed segment.

*/ inline Categories& AddMatchedCategories(const char* value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories.push_back(value); return *this; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline const Aws::Map& GetMatchedDetails() const{ return m_matchedDetails; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline bool MatchedDetailsHasBeenSet() const { return m_matchedDetailsHasBeenSet; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline void SetMatchedDetails(const Aws::Map& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails = value; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline void SetMatchedDetails(Aws::Map&& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails = std::move(value); } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& WithMatchedDetails(const Aws::Map& value) { SetMatchedDetails(value); return *this;} /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& WithMatchedDetails(Aws::Map&& value) { SetMatchedDetails(std::move(value)); return *this;} /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& AddMatchedDetails(const Aws::String& key, const CategoryDetails& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(key, value); return *this; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& AddMatchedDetails(Aws::String&& key, const CategoryDetails& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(std::move(key), value); return *this; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& AddMatchedDetails(const Aws::String& key, CategoryDetails&& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(key, std::move(value)); return *this; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& AddMatchedDetails(Aws::String&& key, CategoryDetails&& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(std::move(key), std::move(value)); return *this; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& AddMatchedDetails(const char* key, CategoryDetails&& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(key, std::move(value)); return *this; } /** *

The category rule that was matched and when it occurred in the * transcript.

*/ inline Categories& AddMatchedDetails(const char* key, const CategoryDetails& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(key, value); return *this; } private: Aws::Vector m_matchedCategories; bool m_matchedCategoriesHasBeenSet = false; Aws::Map m_matchedDetails; bool m_matchedDetailsHasBeenSet = false; }; } // namespace Model } // namespace ConnectContactLens } // namespace Aws