AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUtteranceId(const Aws::String& value) { m_utteranceIdHasBeenSet = true; m_utteranceId = value; }
57 inline void SetUtteranceId(Aws::String&& value) { m_utteranceIdHasBeenSet = true; m_utteranceId = std::move(value); }
58 inline void SetUtteranceId(const char* value) { m_utteranceIdHasBeenSet = true; m_utteranceId.assign(value); }
59 inline UtteranceEvent& WithUtteranceId(const Aws::String& value) { SetUtteranceId(value); return *this;}
60 inline UtteranceEvent& WithUtteranceId(Aws::String&& value) { SetUtteranceId(std::move(value)); return *this;}
61 inline UtteranceEvent& WithUtteranceId(const char* value) { SetUtteranceId(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 const ParticipantRole& GetParticipantRole() const{ return m_participantRole; }
81 inline bool ParticipantRoleHasBeenSet() const { return m_participantRoleHasBeenSet; }
82 inline void SetParticipantRole(const ParticipantRole& value) { m_participantRoleHasBeenSet = true; m_participantRole = value; }
83 inline void SetParticipantRole(ParticipantRole&& value) { m_participantRoleHasBeenSet = true; m_participantRole = std::move(value); }
84 inline UtteranceEvent& WithParticipantRole(const ParticipantRole& value) { SetParticipantRole(value); return *this;}
85 inline UtteranceEvent& WithParticipantRole(ParticipantRole&& value) { SetParticipantRole(std::move(value)); return *this;}
87
89
93 inline long long GetBeginOffsetMillis() const{ return m_beginOffsetMillis; }
94 inline bool BeginOffsetMillisHasBeenSet() const { return m_beginOffsetMillisHasBeenSet; }
95 inline void SetBeginOffsetMillis(long long value) { m_beginOffsetMillisHasBeenSet = true; m_beginOffsetMillis = value; }
96 inline UtteranceEvent& WithBeginOffsetMillis(long long value) { SetBeginOffsetMillis(value); return *this;}
98
100
104 inline long long GetEndOffsetMillis() const{ return m_endOffsetMillis; }
105 inline bool EndOffsetMillisHasBeenSet() const { return m_endOffsetMillisHasBeenSet; }
106 inline void SetEndOffsetMillis(long long value) { m_endOffsetMillisHasBeenSet = true; m_endOffsetMillis = value; }
107 inline UtteranceEvent& WithEndOffsetMillis(long long value) { SetEndOffsetMillis(value); return *this;}
109
111
114 inline const Aws::String& GetTranscript() const{ return m_transcript; }
115 inline bool TranscriptHasBeenSet() const { return m_transcriptHasBeenSet; }
116 inline void SetTranscript(const Aws::String& value) { m_transcriptHasBeenSet = true; m_transcript = value; }
117 inline void SetTranscript(Aws::String&& value) { m_transcriptHasBeenSet = true; m_transcript = std::move(value); }
118 inline void SetTranscript(const char* value) { m_transcriptHasBeenSet = true; m_transcript.assign(value); }
119 inline UtteranceEvent& WithTranscript(const Aws::String& value) { SetTranscript(value); return *this;}
120 inline UtteranceEvent& WithTranscript(Aws::String&& value) { SetTranscript(std::move(value)); return *this;}
121 inline UtteranceEvent& WithTranscript(const char* value) { SetTranscript(value); return *this;}
123
125
129 inline const Aws::Vector<CallAnalyticsItem>& GetItems() const{ return m_items; }
130 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
131 inline void SetItems(const Aws::Vector<CallAnalyticsItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
132 inline void SetItems(Aws::Vector<CallAnalyticsItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
133 inline UtteranceEvent& WithItems(const Aws::Vector<CallAnalyticsItem>& value) { SetItems(value); return *this;}
134 inline UtteranceEvent& WithItems(Aws::Vector<CallAnalyticsItem>&& value) { SetItems(std::move(value)); return *this;}
135 inline UtteranceEvent& AddItems(const CallAnalyticsItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
136 inline UtteranceEvent& AddItems(CallAnalyticsItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
138
140
144 inline const Aws::Vector<CallAnalyticsEntity>& GetEntities() const{ return m_entities; }
145 inline bool EntitiesHasBeenSet() const { return m_entitiesHasBeenSet; }
146 inline void SetEntities(const Aws::Vector<CallAnalyticsEntity>& value) { m_entitiesHasBeenSet = true; m_entities = value; }
147 inline void SetEntities(Aws::Vector<CallAnalyticsEntity>&& value) { m_entitiesHasBeenSet = true; m_entities = std::move(value); }
148 inline UtteranceEvent& WithEntities(const Aws::Vector<CallAnalyticsEntity>& value) { SetEntities(value); return *this;}
149 inline UtteranceEvent& WithEntities(Aws::Vector<CallAnalyticsEntity>&& value) { SetEntities(std::move(value)); return *this;}
150 inline UtteranceEvent& AddEntities(const CallAnalyticsEntity& value) { m_entitiesHasBeenSet = true; m_entities.push_back(value); return *this; }
151 inline UtteranceEvent& AddEntities(CallAnalyticsEntity&& value) { m_entitiesHasBeenSet = true; m_entities.push_back(std::move(value)); return *this; }
153
155
158 inline const Sentiment& GetSentiment() const{ return m_sentiment; }
159 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
160 inline void SetSentiment(const Sentiment& value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
161 inline void SetSentiment(Sentiment&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); }
162 inline UtteranceEvent& WithSentiment(const Sentiment& value) { SetSentiment(value); return *this;}
163 inline UtteranceEvent& WithSentiment(Sentiment&& value) { SetSentiment(std::move(value)); return *this;}
165
167
170 inline const Aws::Vector<IssueDetected>& GetIssuesDetected() const{ return m_issuesDetected; }
171 inline bool IssuesDetectedHasBeenSet() const { return m_issuesDetectedHasBeenSet; }
172 inline void SetIssuesDetected(const Aws::Vector<IssueDetected>& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected = value; }
173 inline void SetIssuesDetected(Aws::Vector<IssueDetected>&& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected = std::move(value); }
175 inline UtteranceEvent& WithIssuesDetected(Aws::Vector<IssueDetected>&& value) { SetIssuesDetected(std::move(value)); return *this;}
176 inline UtteranceEvent& AddIssuesDetected(const IssueDetected& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected.push_back(value); return *this; }
177 inline UtteranceEvent& AddIssuesDetected(IssueDetected&& value) { m_issuesDetectedHasBeenSet = true; m_issuesDetected.push_back(std::move(value)); return *this; }
179 private:
180
181 Aws::String m_utteranceId;
182 bool m_utteranceIdHasBeenSet = false;
183
184 bool m_isPartial;
185 bool m_isPartialHasBeenSet = false;
186
187 ParticipantRole m_participantRole;
188 bool m_participantRoleHasBeenSet = false;
189
190 long long m_beginOffsetMillis;
191 bool m_beginOffsetMillisHasBeenSet = false;
192
193 long long m_endOffsetMillis;
194 bool m_endOffsetMillisHasBeenSet = false;
195
196 Aws::String m_transcript;
197 bool m_transcriptHasBeenSet = false;
198
200 bool m_itemsHasBeenSet = false;
201
203 bool m_entitiesHasBeenSet = false;
204
205 Sentiment m_sentiment;
206 bool m_sentimentHasBeenSet = false;
207
208 Aws::Vector<IssueDetected> m_issuesDetected;
209 bool m_issuesDetectedHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace TranscribeStreamingService
214} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEntities(const Aws::Vector< CallAnalyticsEntity > &value)
void SetIssuesDetected(Aws::Vector< IssueDetected > &&value)
UtteranceEvent & WithTranscript(Aws::String &&value)
const Aws::Vector< CallAnalyticsEntity > & GetEntities() const
void SetItems(const Aws::Vector< CallAnalyticsItem > &value)
UtteranceEvent & AddItems(CallAnalyticsItem &&value)
UtteranceEvent & WithParticipantRole(ParticipantRole &&value)
UtteranceEvent & WithSentiment(Sentiment &&value)
UtteranceEvent & WithTranscript(const Aws::String &value)
UtteranceEvent & WithBeginOffsetMillis(long long value)
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent()
UtteranceEvent & AddIssuesDetected(const IssueDetected &value)
UtteranceEvent & WithIssuesDetected(Aws::Vector< IssueDetected > &&value)
UtteranceEvent & WithItems(const Aws::Vector< CallAnalyticsItem > &value)
UtteranceEvent & WithUtteranceId(Aws::String &&value)
UtteranceEvent & WithParticipantRole(const ParticipantRole &value)
const Aws::Vector< IssueDetected > & GetIssuesDetected() const
UtteranceEvent & WithSentiment(const Sentiment &value)
void SetEntities(Aws::Vector< CallAnalyticsEntity > &&value)
UtteranceEvent & AddIssuesDetected(IssueDetected &&value)
UtteranceEvent & WithUtteranceId(const char *value)
void SetItems(Aws::Vector< CallAnalyticsItem > &&value)
UtteranceEvent & WithEntities(Aws::Vector< CallAnalyticsEntity > &&value)
UtteranceEvent & WithEntities(const Aws::Vector< CallAnalyticsEntity > &value)
void SetIssuesDetected(const Aws::Vector< IssueDetected > &value)
UtteranceEvent & WithEndOffsetMillis(long long value)
AWS_TRANSCRIBESTREAMINGSERVICE_API UtteranceEvent(Aws::Utils::Json::JsonView jsonValue)
UtteranceEvent & WithTranscript(const char *value)
UtteranceEvent & AddEntities(const CallAnalyticsEntity &value)
UtteranceEvent & AddEntities(CallAnalyticsEntity &&value)
UtteranceEvent & WithUtteranceId(const Aws::String &value)
UtteranceEvent & WithItems(Aws::Vector< CallAnalyticsItem > &&value)
UtteranceEvent & WithIssuesDetected(const Aws::Vector< IssueDetected > &value)
const Aws::Vector< CallAnalyticsItem > & GetItems() const
UtteranceEvent & AddItems(const CallAnalyticsItem &value)
void SetParticipantRole(const ParticipantRole &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue