AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/CallAnalyticsItem.h>
13#include <aws/transcribestreaming/model/CallAnalyticsEntity.h>
14#include <aws/transcribestreaming/model/IssueDetected.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace TranscribeStreamingService
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent() = default;
44 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent(Aws::Utils::Json::JsonView jsonValue);
45 AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::String& GetUtteranceId() const { return m_utteranceId; }
55 inline bool UtteranceIdHasBeenSet() const { return m_utteranceIdHasBeenSet; }
56 template<typename UtteranceIdT = Aws::String>
57 void SetUtteranceId(UtteranceIdT&& value) { m_utteranceIdHasBeenSet = true; m_utteranceId = std::forward<UtteranceIdT>(value); }
58 template<typename UtteranceIdT = Aws::String>
59 UtteranceEvent& WithUtteranceId(UtteranceIdT&& value) { SetUtteranceId(std::forward<UtteranceIdT>(value)); return *this;}
61
63
67 inline bool GetIsPartial() const { return m_isPartial; }
68 inline bool IsPartialHasBeenSet() const { return m_isPartialHasBeenSet; }
69 inline void SetIsPartial(bool value) { m_isPartialHasBeenSet = true; m_isPartial = value; }
70 inline UtteranceEvent& WithIsPartial(bool value) { SetIsPartial(value); return *this;}
72
74
78 inline ParticipantRole GetParticipantRole() const { return m_participantRole; }
79 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
80 inline void SetParticipantRole(ParticipantRole value) { m_participantRoleHasBeenSet = true; m_participantRole = value; }
83
85
89 inline long long GetBeginOffsetMillis() const { return m_beginOffsetMillis; }
90 inline bool BeginOffsetMillisHasBeenSet() const { return m_beginOffsetMillisHasBeenSet; }
91 inline void SetBeginOffsetMillis(long long value) { m_beginOffsetMillisHasBeenSet = true; m_beginOffsetMillis = value; }
92 inline UtteranceEvent& WithBeginOffsetMillis(long long value) { SetBeginOffsetMillis(value); return *this;}
94
96
100 inline long long GetEndOffsetMillis() const { return m_endOffsetMillis; }
101 inline bool EndOffsetMillisHasBeenSet() const { return m_endOffsetMillisHasBeenSet; }
102 inline void SetEndOffsetMillis(long long value) { m_endOffsetMillisHasBeenSet = true; m_endOffsetMillis = value; }
103 inline UtteranceEvent& WithEndOffsetMillis(long long value) { SetEndOffsetMillis(value); return *this;}
105
107
110 inline const Aws::String& GetTranscript() const { return m_transcript; }
111 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
112 template<typename TranscriptT = Aws::String>
113 void SetTranscript(TranscriptT&& value) { m_transcriptHasBeenSet = true; m_transcript = std::forward<TranscriptT>(value); }
114 template<typename TranscriptT = Aws::String>
115 UtteranceEvent& WithTranscript(TranscriptT&& value) { SetTranscript(std::forward<TranscriptT>(value)); return *this;}
117
119
123 inline const Aws::Vector<CallAnalyticsItem>& GetItems() const { return m_items; }
124 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
125 template<typename ItemsT = Aws::Vector<CallAnalyticsItem>>
126 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
127 template<typename ItemsT = Aws::Vector<CallAnalyticsItem>>
128 UtteranceEvent& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
129 template<typename ItemsT = CallAnalyticsItem>
130 UtteranceEvent& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
132
134
138 inline const Aws::Vector<CallAnalyticsEntity>& GetEntities() const { return m_entities; }
139 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
140 template<typename EntitiesT = Aws::Vector<CallAnalyticsEntity>>
141 void SetEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities = std::forward<EntitiesT>(value); }
142 template<typename EntitiesT = Aws::Vector<CallAnalyticsEntity>>
143 UtteranceEvent& WithEntities(EntitiesT&& value) { SetEntities(std::forward<EntitiesT>(value)); return *this;}
144 template<typename EntitiesT = CallAnalyticsEntity>
145 UtteranceEvent& AddEntities(EntitiesT&& value) { m_entitiesHasBeenSet = true; m_entities.emplace_back(std::forward<EntitiesT>(value)); return *this; }
147
149
152 inline Sentiment GetSentiment() const { return m_sentiment; }
153 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
154 inline void SetSentiment(Sentiment value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
155 inline UtteranceEvent& WithSentiment(Sentiment value) { SetSentiment(value); return *this;}
157
159
162 inline const Aws::Vector<IssueDetected>& GetIssuesDetected() const { return m_issuesDetected; }
163 inline bool IssuesDetectedHasBeenSet() const { return m_issuesDetectedHasBeenSet; }
164 template<typename IssuesDetectedT = Aws::Vector<IssueDetected>>
165 void SetIssuesDetected(IssuesDetectedT&& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected = std::forward<IssuesDetectedT>(value); }
166 template<typename IssuesDetectedT = Aws::Vector<IssueDetected>>
167 UtteranceEvent& WithIssuesDetected(IssuesDetectedT&& value) { SetIssuesDetected(std::forward<IssuesDetectedT>(value)); return *this;}
168 template<typename IssuesDetectedT = IssueDetected>
169 UtteranceEvent& AddIssuesDetected(IssuesDetectedT&& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected.emplace_back(std::forward<IssuesDetectedT>(value)); return *this; }
171 private:
172
173 Aws::String m_utteranceId;
174 bool m_utteranceIdHasBeenSet = false;
175
176 bool m_isPartial{false};
177 bool m_isPartialHasBeenSet = false;
178
179 ParticipantRole m_participantRole{ParticipantRole::NOT_SET};
180 bool m_participantRoleHasBeenSet = false;
181
182 long long m_beginOffsetMillis{0};
183 bool m_beginOffsetMillisHasBeenSet = false;
184
185 long long m_endOffsetMillis{0};
186 bool m_endOffsetMillisHasBeenSet = false;
187
188 Aws::String m_transcript;
189 bool m_transcriptHasBeenSet = false;
190
192 bool m_itemsHasBeenSet = false;
193
195 bool m_entitiesHasBeenSet = false;
196
197 Sentiment m_sentiment{Sentiment::NOT_SET};
198 bool m_sentimentHasBeenSet = false;
199
200 Aws::Vector<IssueDetected> m_issuesDetected;
201 bool m_issuesDetectedHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace TranscribeStreamingService
206} // 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)
const Aws::Vector< CallAnalyticsEntity > & GetEntities() const
UtteranceEvent & WithIssuesDetected(IssuesDetectedT &&value)
UtteranceEvent & WithBeginOffsetMillis(long long value)
UtteranceEvent & AddEntities(EntitiesT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent()=default
const Aws::Vector< IssueDetected > & GetIssuesDetected() const
UtteranceEvent & WithEndOffsetMillis(long long value)
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent(Aws::Utils::Json::JsonView jsonValue)
UtteranceEvent & WithUtteranceId(UtteranceIdT &&value)
UtteranceEvent & WithTranscript(TranscriptT &&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