AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CategoryEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
11#include <aws/transcribestreaming/model/PointsOfInterest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TranscribeStreamingService {
23namespace Model {
24
33 public:
34 AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent() = default;
35 AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSCRIBESTREAMINGSERVICE_API CategoryEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Aws::String>& GetMatchedCategories() const { return m_matchedCategories; }
44 inline bool MatchedCategoriesHasBeenSet() const { return m_matchedCategoriesHasBeenSet; }
45 template <typename MatchedCategoriesT = Aws::Vector<Aws::String>>
46 void SetMatchedCategories(MatchedCategoriesT&& value) {
47 m_matchedCategoriesHasBeenSet = true;
48 m_matchedCategories = std::forward<MatchedCategoriesT>(value);
49 }
50 template <typename MatchedCategoriesT = Aws::Vector<Aws::String>>
51 CategoryEvent& WithMatchedCategories(MatchedCategoriesT&& value) {
52 SetMatchedCategories(std::forward<MatchedCategoriesT>(value));
53 return *this;
54 }
55 template <typename MatchedCategoriesT = Aws::String>
56 CategoryEvent& AddMatchedCategories(MatchedCategoriesT&& value) {
57 m_matchedCategoriesHasBeenSet = true;
58 m_matchedCategories.emplace_back(std::forward<MatchedCategoriesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Map<Aws::String, PointsOfInterest>& GetMatchedDetails() const { return m_matchedDetails; }
69 inline bool MatchedDetailsHasBeenSet() const { return m_matchedDetailsHasBeenSet; }
70 template <typename MatchedDetailsT = Aws::Map<Aws::String, PointsOfInterest>>
71 void SetMatchedDetails(MatchedDetailsT&& value) {
72 m_matchedDetailsHasBeenSet = true;
73 m_matchedDetails = std::forward<MatchedDetailsT>(value);
74 }
75 template <typename MatchedDetailsT = Aws::Map<Aws::String, PointsOfInterest>>
76 CategoryEvent& WithMatchedDetails(MatchedDetailsT&& value) {
77 SetMatchedDetails(std::forward<MatchedDetailsT>(value));
78 return *this;
79 }
80 template <typename MatchedDetailsKeyT = Aws::String, typename MatchedDetailsValueT = PointsOfInterest>
81 CategoryEvent& AddMatchedDetails(MatchedDetailsKeyT&& key, MatchedDetailsValueT&& value) {
82 m_matchedDetailsHasBeenSet = true;
83 m_matchedDetails.emplace(std::forward<MatchedDetailsKeyT>(key), std::forward<MatchedDetailsValueT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<Aws::String> m_matchedCategories;
89
91 bool m_matchedCategoriesHasBeenSet = false;
92 bool m_matchedDetailsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace TranscribeStreamingService
97} // 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