AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 // SerializePayload will not be invoked.
44 // This request is sent by encoding its data in event-streams which is sent as IOStream via GetBody()
45 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String SerializePayload() const override { return {}; }
46 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<Aws::IOStream> GetBody() const override;
47 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
48
53
57 inline const StartCallAnalyticsStreamTranscriptionHandler& GetEventStreamHandler() const { return m_handler; }
58
62 inline void SetEventStreamHandler(const StartCallAnalyticsStreamTranscriptionHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
63
68
69
71
78 inline const CallAnalyticsLanguageCode& GetLanguageCode() const{ return m_languageCode; }
79 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
80 inline void SetLanguageCode(const CallAnalyticsLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
81 inline void SetLanguageCode(CallAnalyticsLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
85
87
93 inline int GetMediaSampleRateHertz() const{ return m_mediaSampleRateHertz; }
94 inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; }
95 inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; }
98
100
108 inline const MediaEncoding& GetMediaEncoding() const{ return m_mediaEncoding; }
109 inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; }
110 inline void SetMediaEncoding(const MediaEncoding& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; }
111 inline void SetMediaEncoding(MediaEncoding&& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = std::move(value); }
115
117
126 inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
127 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
128 inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
129 inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
130 inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
135
137
142 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
143 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
144 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
145 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
146 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
148 inline StartCallAnalyticsStreamTranscriptionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
149 inline StartCallAnalyticsStreamTranscriptionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
151
153
159 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<AudioStream> GetAudioStream() const { return m_audioStream; }
160 AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr<AudioStream>& value) { m_audioStream = value; }
161 AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionRequest& WithAudioStream(const std::shared_ptr<AudioStream>& value) { SetAudioStream(value); return *this;}
162
164
166
175 inline const Aws::String& GetVocabularyFilterName() const{ return m_vocabularyFilterName; }
176 inline bool VocabularyFilterNameHasBeenSet() const { return m_vocabularyFilterNameHasBeenSet; }
177 inline void SetVocabularyFilterName(const Aws::String& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = value; }
178 inline void SetVocabularyFilterName(Aws::String&& value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName = std::move(value); }
179 inline void SetVocabularyFilterName(const char* value) { m_vocabularyFilterNameHasBeenSet = true; m_vocabularyFilterName.assign(value); }
184
186
192 inline const VocabularyFilterMethod& GetVocabularyFilterMethod() const{ return m_vocabularyFilterMethod; }
193 inline bool VocabularyFilterMethodHasBeenSet() const { return m_vocabularyFilterMethodHasBeenSet; }
194 inline void SetVocabularyFilterMethod(const VocabularyFilterMethod& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = value; }
195 inline void SetVocabularyFilterMethod(VocabularyFilterMethod&& value) { m_vocabularyFilterMethodHasBeenSet = true; m_vocabularyFilterMethod = std::move(value); }
199
201
211 inline const Aws::String& GetLanguageModelName() const{ return m_languageModelName; }
212 inline bool LanguageModelNameHasBeenSet() const { return m_languageModelNameHasBeenSet; }
213 inline void SetLanguageModelName(const Aws::String& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = value; }
214 inline void SetLanguageModelName(Aws::String&& value) { m_languageModelNameHasBeenSet = true; m_languageModelName = std::move(value); }
215 inline void SetLanguageModelName(const char* value) { m_languageModelNameHasBeenSet = true; m_languageModelName.assign(value); }
220
222
229 inline bool GetEnablePartialResultsStabilization() const{ return m_enablePartialResultsStabilization; }
230 inline bool EnablePartialResultsStabilizationHasBeenSet() const { return m_enablePartialResultsStabilizationHasBeenSet; }
231 inline void SetEnablePartialResultsStabilization(bool value) { m_enablePartialResultsStabilizationHasBeenSet = true; m_enablePartialResultsStabilization = value; }
234
236
244 inline const PartialResultsStability& GetPartialResultsStability() const{ return m_partialResultsStability; }
245 inline bool PartialResultsStabilityHasBeenSet() const { return m_partialResultsStabilityHasBeenSet; }
246 inline void SetPartialResultsStability(const PartialResultsStability& value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = value; }
247 inline void SetPartialResultsStability(PartialResultsStability&& value) { m_partialResultsStabilityHasBeenSet = true; m_partialResultsStability = std::move(value); }
251
253
265 inline const ContentIdentificationType& GetContentIdentificationType() const{ return m_contentIdentificationType; }
266 inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; }
267 inline void SetContentIdentificationType(const ContentIdentificationType& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; }
268 inline void SetContentIdentificationType(ContentIdentificationType&& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = std::move(value); }
272
274
286 inline const ContentRedactionType& GetContentRedactionType() const{ return m_contentRedactionType; }
287 inline bool ContentRedactionTypeHasBeenSet() const { return m_contentRedactionTypeHasBeenSet; }
288 inline void SetContentRedactionType(const ContentRedactionType& value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = value; }
289 inline void SetContentRedactionType(ContentRedactionType&& value) { m_contentRedactionTypeHasBeenSet = true; m_contentRedactionType = std::move(value); }
293
295
310 inline const Aws::String& GetPiiEntityTypes() const{ return m_piiEntityTypes; }
311 inline bool PiiEntityTypesHasBeenSet() const { return m_piiEntityTypesHasBeenSet; }
312 inline void SetPiiEntityTypes(const Aws::String& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = value; }
313 inline void SetPiiEntityTypes(Aws::String&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = std::move(value); }
314 inline void SetPiiEntityTypes(const char* value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.assign(value); }
319 private:
320
321 CallAnalyticsLanguageCode m_languageCode;
322 bool m_languageCodeHasBeenSet = false;
323
324 int m_mediaSampleRateHertz;
325 bool m_mediaSampleRateHertzHasBeenSet = false;
326
327 MediaEncoding m_mediaEncoding;
328 bool m_mediaEncodingHasBeenSet = false;
329
330 Aws::String m_vocabularyName;
331 bool m_vocabularyNameHasBeenSet = false;
332
333 Aws::String m_sessionId;
334 bool m_sessionIdHasBeenSet = false;
335
336 std::shared_ptr<AudioStream> m_audioStream;
337
338 Aws::String m_vocabularyFilterName;
339 bool m_vocabularyFilterNameHasBeenSet = false;
340
341 VocabularyFilterMethod m_vocabularyFilterMethod;
342 bool m_vocabularyFilterMethodHasBeenSet = false;
343
344 Aws::String m_languageModelName;
345 bool m_languageModelNameHasBeenSet = false;
346
347 bool m_enablePartialResultsStabilization;
348 bool m_enablePartialResultsStabilizationHasBeenSet = false;
349
350 PartialResultsStability m_partialResultsStability;
351 bool m_partialResultsStabilityHasBeenSet = false;
352
353 ContentIdentificationType m_contentIdentificationType;
354 bool m_contentIdentificationTypeHasBeenSet = false;
355
356 ContentRedactionType m_contentRedactionType;
357 bool m_contentRedactionTypeHasBeenSet = false;
358
359 Aws::String m_piiEntityTypes;
360 bool m_piiEntityTypesHasBeenSet = false;
363
364 };
365
366} // namespace Model
367} // namespace TranscribeStreamingService
368} // namespace Aws
StartCallAnalyticsStreamTranscriptionRequest & WithEventStreamHandler(const StartCallAnalyticsStreamTranscriptionHandler &value)
StartCallAnalyticsStreamTranscriptionRequest & WithPartialResultsStability(PartialResultsStability &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr< AudioStream > &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API StartCallAnalyticsStreamTranscriptionRequest & WithAudioStream(const std::shared_ptr< AudioStream > &value)
StartCallAnalyticsStreamTranscriptionRequest & WithContentIdentificationType(ContentIdentificationType &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartCallAnalyticsStreamTranscriptionRequest & WithContentRedactionType(ContentRedactionType &&value)
StartCallAnalyticsStreamTranscriptionRequest & WithVocabularyFilterMethod(const VocabularyFilterMethod &value)
StartCallAnalyticsStreamTranscriptionRequest & WithLanguageModelName(const Aws::String &value)
StartCallAnalyticsStreamTranscriptionRequest & WithPartialResultsStability(const PartialResultsStability &value)
StartCallAnalyticsStreamTranscriptionRequest & WithMediaEncoding(const MediaEncoding &value)
StartCallAnalyticsStreamTranscriptionRequest & WithLanguageCode(const CallAnalyticsLanguageCode &value)
StartCallAnalyticsStreamTranscriptionRequest & WithLanguageCode(CallAnalyticsLanguageCode &&value)
StartCallAnalyticsStreamTranscriptionRequest & WithContentRedactionType(const ContentRedactionType &value)
StartCallAnalyticsStreamTranscriptionRequest & WithVocabularyFilterMethod(VocabularyFilterMethod &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr< Aws::IOStream > GetBody() const override
StartCallAnalyticsStreamTranscriptionRequest & WithContentIdentificationType(const ContentIdentificationType &value)
StartCallAnalyticsStreamTranscriptionRequest & WithVocabularyFilterName(const Aws::String &value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String