AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CategoryEvent.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/transcribestreaming/model/PointsOfInterest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TranscribeStreamingService
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent() = default;
40 AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<Aws::String>& GetMatchedCategories() const { return m_matchedCategories; }
50 inline bool MatchedCategoriesHasBeenSet() const { return m_matchedCategoriesHasBeenSet; }
51 template<typename MatchedCategoriesT = Aws::Vector<Aws::String>>
52 void SetMatchedCategories(MatchedCategoriesT&& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories = std::forward<MatchedCategoriesT>(value); }
53 template<typename MatchedCategoriesT = Aws::Vector<Aws::String>>
54 CategoryEvent& WithMatchedCategories(MatchedCategoriesT&& value) { SetMatchedCategories(std::forward<MatchedCategoriesT>(value)); return *this;}
55 template<typename MatchedCategoriesT = Aws::String>
56 CategoryEvent& AddMatchedCategories(MatchedCategoriesT&& value) { m_matchedCategoriesHasBeenSet = true; m_matchedCategories.emplace_back(std::forward<MatchedCategoriesT>(value)); return *this; }
58
60
64 inline const Aws::Map<Aws::String, PointsOfInterest>& GetMatchedDetails() const { return m_matchedDetails; }
65 inline bool MatchedDetailsHasBeenSet() const { return m_matchedDetailsHasBeenSet; }
66 template<typename MatchedDetailsT = Aws::Map<Aws::String, PointsOfInterest>>
67 void SetMatchedDetails(MatchedDetailsT&& value) { m_matchedDetailsHasBeenSet = true; m_matchedDetails = std::forward<MatchedDetailsT>(value); }
68 template<typename MatchedDetailsT = Aws::Map<Aws::String, PointsOfInterest>>
69 CategoryEvent& WithMatchedDetails(MatchedDetailsT&& value) { SetMatchedDetails(std::forward<MatchedDetailsT>(value)); return *this;}
70 template<typename MatchedDetailsKeyT = Aws::String, typename MatchedDetailsValueT = PointsOfInterest>
71 CategoryEvent& AddMatchedDetails(MatchedDetailsKeyT&& key, MatchedDetailsValueT&& value) {
72 m_matchedDetailsHasBeenSet = true; m_matchedDetails.emplace(std::forward<MatchedDetailsKeyT>(key), std::forward<MatchedDetailsValueT>(value)); return *this;
73 }
75 private:
76
77 Aws::Vector<Aws::String> m_matchedCategories;
78 bool m_matchedCategoriesHasBeenSet = false;
79
81 bool m_matchedDetailsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace TranscribeStreamingService
86} // namespace Aws
CategoryEvent & WithMatchedDetails(MatchedDetailsT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
CategoryEvent & AddMatchedDetails(MatchedDetailsKeyT &&key, MatchedDetailsValueT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent(Aws::Utils::Json::JsonView jsonValue)
void SetMatchedCategories(MatchedCategoriesT &&value)
CategoryEvent & WithMatchedCategories(MatchedCategoriesT &&value)
CategoryEvent & AddMatchedCategories(MatchedCategoriesT &&value)
const Aws::Vector< Aws::String > & GetMatchedCategories() const
const Aws::Map< Aws::String, PointsOfInterest > & GetMatchedDetails() const
AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue