AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
UtteranceEvent.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/transcribestreaming/model/ParticipantRole.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/transcribestreaming/model/Sentiment.h>
12#include <aws/transcribestreaming/model/CallAnalyticsLanguageCode.h>
13#include <aws/transcribestreaming/model/CallAnalyticsItem.h>
14#include <aws/transcribestreaming/model/CallAnalyticsEntity.h>
15#include <aws/transcribestreaming/model/IssueDetected.h>
16#include <aws/transcribestreaming/model/CallAnalyticsLanguageWithScore.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace TranscribeStreamingService
30{
31namespace Model
32{
33
43 {
44 public:
45 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent() = default;
46 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent(Aws::Utils::Json::JsonView jsonValue);
47 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::String& GetUtteranceId() const { return m_utteranceId; }
57 inline bool UtteranceIdHasBeenSet() const { return m_utteranceIdHasBeenSet; }
58 template<typename UtteranceIdT = Aws::String>
59 void SetUtteranceId(UtteranceIdT&& value) { m_utteranceIdHasBeenSet = true; m_utteranceId = std::forward<UtteranceIdT>(value); }
60 template<typename UtteranceIdT = Aws::String>
61 UtteranceEvent& WithUtteranceId(UtteranceIdT&& value) { SetUtteranceId(std::forward<UtteranceIdT>(value)); return *this;}
63
65
69 inline bool GetIsPartial() const { return m_isPartial; }
70 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
71 inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
72 inline UtteranceEvent& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
74
76
80 inline ParticipantRole GetParticipantRole() const { return m_participantRole; }
81 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
82 inline void SetParticipantRole(ParticipantRole value) { m_participantRoleHasBeenSet = true; m_participantRole = value; }
85
87
91 inline long long GetBeginOffsetMillis() const { return m_beginOffsetMillis; }
92 inline bool BeginOffsetMillisHasBeenSet() const { return m_beginOffsetMillisHasBeenSet; }
93 inline void SetBeginOffsetMillis(long long value) { m_beginOffsetMillisHasBeenSet = true; m_beginOffsetMillis = value; }
94 inline UtteranceEvent& WithBeginOffsetMillis(long long value) { SetBeginOffsetMillis(value); return *this;}
96
98
102 inline long long GetEndOffsetMillis() const { return m_endOffsetMillis; }
103 inline bool EndOffsetMillisHasBeenSet() const { return m_endOffsetMillisHasBeenSet; }
104 inline void SetEndOffsetMillis(long long value) { m_endOffsetMillisHasBeenSet = true; m_endOffsetMillis = value; }
105 inline UtteranceEvent& WithEndOffsetMillis(long long value) { SetEndOffsetMillis(value); return *this;}
107
109
112 inline const Aws::String& GetTranscript() const { return m_transcript; }
113 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
114 template<typename TranscriptT = Aws::String>
115 void SetTranscript(TranscriptT&& value) { m_transcriptHasBeenSet = true; m_transcript = std::forward<TranscriptT>(value); }
116 template<typename TranscriptT = Aws::String>
117 UtteranceEvent& WithTranscript(TranscriptT&& value) { SetTranscript(std::forward<TranscriptT>(value)); return *this;}
119
121
125 inline const Aws::Vector<CallAnalyticsItem>& GetItems() const { return m_items; }
126 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
127 template<typename ItemsT = Aws::Vector<CallAnalyticsItem>>
128 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
129 template<typename ItemsT = Aws::Vector<CallAnalyticsItem>>
130 UtteranceEvent& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
131 template<typename ItemsT = CallAnalyticsItem>
132 UtteranceEvent& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
134
136
140 inline const Aws::Vector<CallAnalyticsEntity>& GetEntities() const { return m_entities; }
141 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
142 template<typename EntitiesT = Aws::Vector<CallAnalyticsEntity>>
143 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
144 template<typename EntitiesT = Aws::Vector<CallAnalyticsEntity>>
145 UtteranceEvent& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
146 template<typename EntitiesT = CallAnalyticsEntity>
147 UtteranceEvent& AddEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities.emplace_back(std::forward<EntitiesT>(value)); return *this; }
149
151
154 inline Sentiment GetSentiment() const { return m_sentiment; }
155 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
156 inline void SetSentiment(Sentiment value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
157 inline UtteranceEvent& WithSentiment(Sentiment value) { SetSentiment(value); return *this;}
159
161
164 inline const Aws::Vector<IssueDetected>& GetIssuesDetected() const { return m_issuesDetected; }
165 inline bool IssuesDetectedHasBeenSet() const { return m_issuesDetectedHasBeenSet; }
166 template<typename IssuesDetectedT = Aws::Vector<IssueDetected>>
167 void SetIssuesDetected(IssuesDetectedT&& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected = std::forward<IssuesDetectedT>(value); }
168 template<typename IssuesDetectedT = Aws::Vector<IssueDetected>>
169 UtteranceEvent& WithIssuesDetected(IssuesDetectedT&& value) { SetIssuesDetected(std::forward<IssuesDetectedT>(value)); return *this;}
170 template<typename IssuesDetectedT = IssueDetected>
171 UtteranceEvent& AddIssuesDetected(IssuesDetectedT&& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected.emplace_back(std::forward<IssuesDetectedT>(value)); return *this; }
173
175
179 inline CallAnalyticsLanguageCode GetLanguageCode() const { return m_languageCode; }
180 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
181 inline void SetLanguageCode(CallAnalyticsLanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
184
186
189 inline const Aws::Vector<CallAnalyticsLanguageWithScore>& GetLanguageIdentification() const { return m_languageIdentification; }
190 inline bool LanguageIdentificationHasBeenSet() const { return m_languageIdentificationHasBeenSet; }
191 template<typename LanguageIdentificationT = Aws::Vector<CallAnalyticsLanguageWithScore>>
192 void SetLanguageIdentification(LanguageIdentificationT&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification = std::forward<LanguageIdentificationT>(value); }
193 template<typename LanguageIdentificationT = Aws::Vector<CallAnalyticsLanguageWithScore>>
194 UtteranceEvent& WithLanguageIdentification(LanguageIdentificationT&& value) { SetLanguageIdentification(std::forward<LanguageIdentificationT>(value)); return *this;}
195 template<typename LanguageIdentificationT = CallAnalyticsLanguageWithScore>
196 UtteranceEvent& AddLanguageIdentification(LanguageIdentificationT&& value) { m_languageIdentificationHasBeenSet = true; m_languageIdentification.emplace_back(std::forward<LanguageIdentificationT>(value)); return *this; }
198 private:
199
200 Aws::String m_utteranceId;
201 bool m_utteranceIdHasBeenSet = false;
202
203 bool m_isPartial{false};
204 bool m_isPartialHasBeenSet = false;
205
206 ParticipantRole m_participantRole{ParticipantRole::NOT_SET};
207 bool m_participantRoleHasBeenSet = false;
208
209 long long m_beginOffsetMillis{0};
210 bool m_beginOffsetMillisHasBeenSet = false;
211
212 long long m_endOffsetMillis{0};
213 bool m_endOffsetMillisHasBeenSet = false;
214
215 Aws::String m_transcript;
216 bool m_transcriptHasBeenSet = false;
217
219 bool m_itemsHasBeenSet = false;
220
222 bool m_entitiesHasBeenSet = false;
223
224 Sentiment m_sentiment{Sentiment::NOT_SET};
225 bool m_sentimentHasBeenSet = false;
226
227 Aws::Vector<IssueDetected> m_issuesDetected;
228 bool m_issuesDetectedHasBeenSet = false;
229
231 bool m_languageCodeHasBeenSet = false;
232
233 Aws::Vector<CallAnalyticsLanguageWithScore> m_languageIdentification;
234 bool m_languageIdentificationHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace TranscribeStreamingService
239} // 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