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

Provides information on any TranscriptFilterType categories that * matched your transcription output. Matches are identified for each segment upon * completion of that segment.

See Also:

AWS * API Reference

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Lists the categories that were matched in your audio segment.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

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

Contains information about the matched categories, including category names * and timestamps.

*/ inline CategoryEvent& AddMatchedDetails(const char* key, const PointsOfInterest& 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 TranscribeStreamingService } // namespace Aws