AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UtteranceEvent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
10#include <aws/transcribestreaming/model/CallAnalyticsEntity.h>
11#include <aws/transcribestreaming/model/CallAnalyticsItem.h>
12#include <aws/transcribestreaming/model/CallAnalyticsLanguageCode.h>
13#include <aws/transcribestreaming/model/CallAnalyticsLanguageWithScore.h>
14#include <aws/transcribestreaming/model/IssueDetected.h>
15#include <aws/transcribestreaming/model/ParticipantRole.h>
16#include <aws/transcribestreaming/model/Sentiment.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace TranscribeStreamingService {
28namespace Model {
29
39 public:
40 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent() = default;
41 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::String& GetUtteranceId() const { return m_utteranceId; }
51 inline bool UtteranceIdHasBeenSet() const { return m_utteranceIdHasBeenSet; }
52 template <typename UtteranceIdT = Aws::String>
53 void SetUtteranceId(UtteranceIdT&& value) {
54 m_utteranceIdHasBeenSet = true;
55 m_utteranceId = std::forward<UtteranceIdT>(value);
56 }
57 template <typename UtteranceIdT = Aws::String>
58 UtteranceEvent& WithUtteranceId(UtteranceIdT&& value) {
59 SetUtteranceId(std::forward<UtteranceIdT>(value));
60 return *this;
61 }
63
65
69 inline bool GetIsPartial() const { return m_isPartial; }
70 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
71 inline void SetIsPartial(bool value) {
72 m_isPartialHasBeenSet = true;
73 m_isPartial = value;
74 }
75 inline UtteranceEvent& WithIsPartial(bool value) {
76 SetIsPartial(value);
77 return *this;
78 }
80
82
86 inline ParticipantRole GetParticipantRole() const { return m_participantRole; }
87 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
89 m_participantRoleHasBeenSet = true;
90 m_participantRole = value;
91 }
93 SetParticipantRole(value);
94 return *this;
95 }
97
99
103 inline long long GetBeginOffsetMillis() const { return m_beginOffsetMillis; }
104 inline bool BeginOffsetMillisHasBeenSet() const { return m_beginOffsetMillisHasBeenSet; }
105 inline void SetBeginOffsetMillis(long long value) {
106 m_beginOffsetMillisHasBeenSet = true;
107 m_beginOffsetMillis = value;
108 }
109 inline UtteranceEvent& WithBeginOffsetMillis(long long value) {
111 return *this;
112 }
114
116
120 inline long long GetEndOffsetMillis() const { return m_endOffsetMillis; }
121 inline bool EndOffsetMillisHasBeenSet() const { return m_endOffsetMillisHasBeenSet; }
122 inline void SetEndOffsetMillis(long long value) {
123 m_endOffsetMillisHasBeenSet = true;
124 m_endOffsetMillis = value;
125 }
126 inline UtteranceEvent& WithEndOffsetMillis(long long value) {
127 SetEndOffsetMillis(value);
128 return *this;
129 }
131
133
136 inline const Aws::String& GetTranscript() const { return m_transcript; }
137 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
138 template <typename TranscriptT = Aws::String>
139 void SetTranscript(TranscriptT&& value) {
140 m_transcriptHasBeenSet = true;
141 m_transcript = std::forward<TranscriptT>(value);
142 }
143 template <typename TranscriptT = Aws::String>
144 UtteranceEvent& WithTranscript(TranscriptT&& value) {
145 SetTranscript(std::forward<TranscriptT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Vector<CallAnalyticsItem>& GetItems() const { return m_items; }
156 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
157 template <typename ItemsT = Aws::Vector<CallAnalyticsItem>>
158 void SetItems(ItemsT&& value) {
159 m_itemsHasBeenSet = true;
160 m_items = std::forward<ItemsT>(value);
161 }
162 template <typename ItemsT = Aws::Vector<CallAnalyticsItem>>
163 UtteranceEvent& WithItems(ItemsT&& value) {
164 SetItems(std::forward<ItemsT>(value));
165 return *this;
166 }
167 template <typename ItemsT = CallAnalyticsItem>
168 UtteranceEvent& AddItems(ItemsT&& value) {
169 m_itemsHasBeenSet = true;
170 m_items.emplace_back(std::forward<ItemsT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::Vector<CallAnalyticsEntity>& GetEntities() const { return m_entities; }
181 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
182 template <typename EntitiesT = Aws::Vector<CallAnalyticsEntity>>
183 void SetEntities(EntitiesT&& value) {
184 m_entitiesHasBeenSet = true;
185 m_entities = std::forward<EntitiesT>(value);
186 }
187 template <typename EntitiesT = Aws::Vector<CallAnalyticsEntity>>
188 UtteranceEvent& WithEntities(EntitiesT&& value) {
189 SetEntities(std::forward<EntitiesT>(value));
190 return *this;
191 }
192 template <typename EntitiesT = CallAnalyticsEntity>
193 UtteranceEvent& AddEntities(EntitiesT&& value) {
194 m_entitiesHasBeenSet = true;
195 m_entities.emplace_back(std::forward<EntitiesT>(value));
196 return *this;
197 }
199
201
204 inline Sentiment GetSentiment() const { return m_sentiment; }
205 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
206 inline void SetSentiment(Sentiment value) {
207 m_sentimentHasBeenSet = true;
208 m_sentiment = value;
209 }
211 SetSentiment(value);
212 return *this;
213 }
215
217
220 inline const Aws::Vector<IssueDetected>& GetIssuesDetected() const { return m_issuesDetected; }
221 inline bool IssuesDetectedHasBeenSet() const { return m_issuesDetectedHasBeenSet; }
222 template <typename IssuesDetectedT = Aws::Vector<IssueDetected>>
223 void SetIssuesDetected(IssuesDetectedT&& value) {
224 m_issuesDetectedHasBeenSet = true;
225 m_issuesDetected = std::forward<IssuesDetectedT>(value);
226 }
227 template <typename IssuesDetectedT = Aws::Vector<IssueDetected>>
228 UtteranceEvent& WithIssuesDetected(IssuesDetectedT&& value) {
229 SetIssuesDetected(std::forward<IssuesDetectedT>(value));
230 return *this;
231 }
232 template <typename IssuesDetectedT = IssueDetected>
233 UtteranceEvent& AddIssuesDetected(IssuesDetectedT&& value) {
234 m_issuesDetectedHasBeenSet = true;
235 m_issuesDetected.emplace_back(std::forward<IssuesDetectedT>(value));
236 return *this;
237 }
239
241
245 inline CallAnalyticsLanguageCode GetLanguageCode() const { return m_languageCode; }
246 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
248 m_languageCodeHasBeenSet = true;
249 m_languageCode = value;
250 }
252 SetLanguageCode(value);
253 return *this;
254 }
256
258
261 inline const Aws::Vector<CallAnalyticsLanguageWithScore>& GetLanguageIdentification() const { return m_languageIdentification; }
262 inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; }
263 template <typename LanguageIdentificationT = Aws::Vector<CallAnalyticsLanguageWithScore>>
264 void SetLanguageIdentification(LanguageIdentificationT&& value) {
265 m_languageIdentificationHasBeenSet = true;
266 m_languageIdentification = std::forward<LanguageIdentificationT>(value);
267 }
268 template <typename LanguageIdentificationT = Aws::Vector<CallAnalyticsLanguageWithScore>>
269 UtteranceEvent& WithLanguageIdentification(LanguageIdentificationT&& value) {
270 SetLanguageIdentification(std::forward<LanguageIdentificationT>(value));
271 return *this;
272 }
273 template <typename LanguageIdentificationT = CallAnalyticsLanguageWithScore>
274 UtteranceEvent& AddLanguageIdentification(LanguageIdentificationT&& value) {
275 m_languageIdentificationHasBeenSet = true;
276 m_languageIdentification.emplace_back(std::forward<LanguageIdentificationT>(value));
277 return *this;
278 }
280 private:
281 Aws::String m_utteranceId;
282
283 bool m_isPartial{false};
284
285 ParticipantRole m_participantRole{ParticipantRole::NOT_SET};
286
287 long long m_beginOffsetMillis{0};
288
289 long long m_endOffsetMillis{0};
290
291 Aws::String m_transcript;
292
294
296
297 Sentiment m_sentiment{Sentiment::NOT_SET};
298
299 Aws::Vector<IssueDetected> m_issuesDetected;
300
302
303 Aws::Vector<CallAnalyticsLanguageWithScore> m_languageIdentification;
304 bool m_utteranceIdHasBeenSet = false;
305 bool m_isPartialHasBeenSet = false;
306 bool m_participantRoleHasBeenSet = false;
307 bool m_beginOffsetMillisHasBeenSet = false;
308 bool m_endOffsetMillisHasBeenSet = false;
309 bool m_transcriptHasBeenSet = false;
310 bool m_itemsHasBeenSet = false;
311 bool m_entitiesHasBeenSet = false;
312 bool m_sentimentHasBeenSet = false;
313 bool m_issuesDetectedHasBeenSet = false;
314 bool m_languageCodeHasBeenSet = false;
315 bool m_languageIdentificationHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace TranscribeStreamingService
320} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UtteranceEvent & WithParticipantRole(ParticipantRole value)
UtteranceEvent & AddIssuesDetected(IssuesDetectedT &&value)
UtteranceEvent & WithEntities(EntitiesT &&value)
void SetLanguageIdentification(LanguageIdentificationT &&value)
const Aws::Vector< CallAnalyticsEntity > & GetEntities() const
UtteranceEvent & WithIssuesDetected(IssuesDetectedT &&value)
UtteranceEvent & WithBeginOffsetMillis(long long value)
const Aws::Vector< CallAnalyticsLanguageWithScore > & GetLanguageIdentification() const
UtteranceEvent & AddEntities(EntitiesT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent()=default
UtteranceEvent & WithLanguageCode(CallAnalyticsLanguageCode value)
const Aws::Vector< IssueDetected > & GetIssuesDetected() const
void SetLanguageCode(CallAnalyticsLanguageCode value)
UtteranceEvent & AddLanguageIdentification(LanguageIdentificationT &&value)
UtteranceEvent & WithEndOffsetMillis(long long value)
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent(Aws::Utils::Json::JsonView jsonValue)
UtteranceEvent & WithUtteranceId(UtteranceIdT &&value)
UtteranceEvent & WithTranscript(TranscriptT &&value)
UtteranceEvent & WithLanguageIdentification(LanguageIdentificationT &&value)
const Aws::Vector< CallAnalyticsItem > & GetItems() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue