AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartCallAnalyticsStreamTranscriptionRequest.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/transcribestreaming/TranscribeStreamingServiceRequest.h>
9#include <aws/transcribestreaming/model/StartCallAnalyticsStreamTranscriptionHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <memory>
12#include <aws/transcribestreaming/model/CallAnalyticsLanguageCode.h>
13#include <aws/transcribestreaming/model/MediaEncoding.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/transcribestreaming/model/AudioStream.h>
16#include <aws/transcribestreaming/model/VocabularyFilterMethod.h>
17#include <aws/transcribestreaming/model/PartialResultsStability.h>
18#include <aws/transcribestreaming/model/ContentIdentificationType.h>
19#include <aws/transcribestreaming/model/ContentRedactionType.h>
20#include <utility>
21
22namespace Aws
23{
24namespace TranscribeStreamingService
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "StartCallAnalyticsStreamTranscription"; }
41
42 inline virtual bool IsEventStreamRequest() const override { return true; }
43 inline virtual bool HasEventStreamResponse() const override { return true; }
44 // SerializePayload will not be invoked.
45 // This request is sent by encoding its data in event-streams which is sent as IOStream via GetBody()
46 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String SerializePayload() const override { return {}; }
47 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<Aws::IOStream> GetBody() const override;
48 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
49
54
59
63 inline void SetEventStreamHandler(const StartCallAnalyticsStreamTranscriptionHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
64
69
70
72
79 inline CallAnalyticsLanguageCode GetLanguageCode() const { return m_languageCode; }
80 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
81 inline void SetLanguageCode(CallAnalyticsLanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
84
86
92 inline int GetMediaSampleRateHertz() const { return m_mediaSampleRateHertz; }
93 inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; }
94 inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; }
97
99
107 inline MediaEncoding GetMediaEncoding() const { return m_mediaEncoding; }
108 inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; }
109 inline void SetMediaEncoding(MediaEncoding value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; }
112
114
123 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
124 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
125 template<typename VocabularyNameT = Aws::String>
126 void SetVocabularyName(VocabularyNameT&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::forward<VocabularyNameT>(value); }
127 template<typename VocabularyNameT = Aws::String>
128 StartCallAnalyticsStreamTranscriptionRequest& WithVocabularyName(VocabularyNameT&& value) { SetVocabularyName(std::forward<VocabularyNameT>(value)); return *this;}
130
132
137 inline const Aws::String& GetSessionId() const { return m_sessionId; }
138 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
139 template<typename SessionIdT = Aws::String>
140 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
141 template<typename SessionIdT = Aws::String>
142 StartCallAnalyticsStreamTranscriptionRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
144
146
152 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<AudioStream> GetAudioStream() const { return m_audioStream; }
153 AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr<AudioStream>& value) { m_audioStreamHasBeenSet = true; m_audioStream = value; }
154 AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionRequest& WithAudioStream(const std::shared_ptr<AudioStream>& value) { SetAudioStream(value); return *this;}
155
157
159
168 inline const Aws::String& GetVocabularyFilterName() const { return m_vocabularyFilterName; }
169 inline bool VocabularyFilterNameHasBeenSet() const { return m_vocabularyFilterNameHasBeenSet; }
170 template<typename VocabularyFilterNameT = Aws::String>
171 void SetVocabularyFilterName(VocabularyFilterNameT&& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = std::forward<VocabularyFilterNameT>(value); }
172 template<typename VocabularyFilterNameT = Aws::String>
173 StartCallAnalyticsStreamTranscriptionRequest& WithVocabularyFilterName(VocabularyFilterNameT&& value) { SetVocabularyFilterName(std::forward<VocabularyFilterNameT>(value)); return *this;}
175
177
183 inline VocabularyFilterMethod GetVocabularyFilterMethod() const { return m_vocabularyFilterMethod; }
184 inline bool VocabularyFilterMethodHasBeenSet() const { return m_vocabularyFilterMethodHasBeenSet; }
185 inline void SetVocabularyFilterMethod(VocabularyFilterMethod value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = value; }
188
190
200 inline const Aws::String& GetLanguageModelName() const { return m_languageModelName; }
201 inline bool LanguageModelNameHasBeenSet() const { return m_languageModelNameHasBeenSet; }
202 template<typename LanguageModelNameT = Aws::String>
203 void SetLanguageModelName(LanguageModelNameT&& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = std::forward<LanguageModelNameT>(value); }
204 template<typename LanguageModelNameT = Aws::String>
205 StartCallAnalyticsStreamTranscriptionRequest& WithLanguageModelName(LanguageModelNameT&& value) { SetLanguageModelName(std::forward<LanguageModelNameT>(value)); return *this;}
207
209
216 inline bool GetEnablePartialResultsStabilization() const { return m_enablePartialResultsStabilization; }
217 inline bool EnablePartialResultsStabilizationHasBeenSet() const { return m_enablePartialResultsStabilizationHasBeenSet; }
218 inline void SetEnablePartialResultsStabilization(bool value) { m_enablePartialResultsStabilizationHasBeenSet = true; m_enablePartialResultsStabilization = value; }
221
223
231 inline PartialResultsStability GetPartialResultsStability() const { return m_partialResultsStability; }
232 inline bool PartialResultsStabilityHasBeenSet() const { return m_partialResultsStabilityHasBeenSet; }
233 inline void SetPartialResultsStability(PartialResultsStability value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = value; }
236
238
250 inline ContentIdentificationType GetContentIdentificationType() const { return m_contentIdentificationType; }
251 inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; }
252 inline void SetContentIdentificationType(ContentIdentificationType value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; }
255
257
269 inline ContentRedactionType GetContentRedactionType() const { return m_contentRedactionType; }
270 inline bool ContentRedactionTypeHasBeenSet() const { return m_contentRedactionTypeHasBeenSet; }
271 inline void SetContentRedactionType(ContentRedactionType value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = value; }
274
276
291 inline const Aws::String& GetPiiEntityTypes() const { return m_piiEntityTypes; }
292 inline bool PiiEntityTypesHasBeenSet() const { return m_piiEntityTypesHasBeenSet; }
293 template<typename PiiEntityTypesT = Aws::String>
294 void SetPiiEntityTypes(PiiEntityTypesT&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = std::forward<PiiEntityTypesT>(value); }
295 template<typename PiiEntityTypesT = Aws::String>
296 StartCallAnalyticsStreamTranscriptionRequest& WithPiiEntityTypes(PiiEntityTypesT&& value) { SetPiiEntityTypes(std::forward<PiiEntityTypesT>(value)); return *this;}
298 private:
299
301 bool m_languageCodeHasBeenSet = false;
302
303 int m_mediaSampleRateHertz{0};
304 bool m_mediaSampleRateHertzHasBeenSet = false;
305
306 MediaEncoding m_mediaEncoding{MediaEncoding::NOT_SET};
307 bool m_mediaEncodingHasBeenSet = false;
308
309 Aws::String m_vocabularyName;
310 bool m_vocabularyNameHasBeenSet = false;
311
312 Aws::String m_sessionId;
313 bool m_sessionIdHasBeenSet = false;
314
315 std::shared_ptr<AudioStream> m_audioStream;
316 bool m_audioStreamHasBeenSet = false;
317
318 Aws::String m_vocabularyFilterName;
319 bool m_vocabularyFilterNameHasBeenSet = false;
320
322 bool m_vocabularyFilterMethodHasBeenSet = false;
323
324 Aws::String m_languageModelName;
325 bool m_languageModelNameHasBeenSet = false;
326
327 bool m_enablePartialResultsStabilization{false};
328 bool m_enablePartialResultsStabilizationHasBeenSet = false;
329
331 bool m_partialResultsStabilityHasBeenSet = false;
332
334 bool m_contentIdentificationTypeHasBeenSet = false;
335
337 bool m_contentRedactionTypeHasBeenSet = false;
338
339 Aws::String m_piiEntityTypes;
340 bool m_piiEntityTypesHasBeenSet = false;
341 StartCallAnalyticsStreamTranscriptionHandler m_handler;
342 Aws::Utils::Event::EventStreamDecoder m_decoder{Utils::Event::EventStreamDecoder(&m_handler)};
343
344 };
345
346} // namespace Model
347} // namespace TranscribeStreamingService
348} // namespace Aws
StartCallAnalyticsStreamTranscriptionRequest & WithContentRedactionType(ContentRedactionType value)
StartCallAnalyticsStreamTranscriptionRequest & WithEventStreamHandler(const StartCallAnalyticsStreamTranscriptionHandler &value)
StartCallAnalyticsStreamTranscriptionRequest & WithPartialResultsStability(PartialResultsStability value)
StartCallAnalyticsStreamTranscriptionRequest & WithVocabularyFilterMethod(VocabularyFilterMethod value)
AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr< AudioStream > &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionRequest & WithAudioStream(const std::shared_ptr< AudioStream > &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartCallAnalyticsStreamTranscriptionRequest & WithVocabularyFilterName(VocabularyFilterNameT &&value)
StartCallAnalyticsStreamTranscriptionRequest & WithLanguageCode(CallAnalyticsLanguageCode value)
StartCallAnalyticsStreamTranscriptionRequest & WithContentIdentificationType(ContentIdentificationType value)
AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr< Aws::IOStream > GetBody() const override
AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionRequest()=default
StartCallAnalyticsStreamTranscriptionRequest & WithLanguageModelName(LanguageModelNameT &&value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String