AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartMedicalStreamTranscriptionRequest.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/transcribestreaming/TranscribeStreamingServiceRequest.h>
9#include <aws/transcribestreaming/model/StartMedicalStreamTranscriptionHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <memory>
12#include <aws/transcribestreaming/model/LanguageCode.h>
13#include <aws/transcribestreaming/model/MediaEncoding.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/transcribestreaming/model/Specialty.h>
16#include <aws/transcribestreaming/model/Type.h>
17#include <aws/transcribestreaming/model/AudioStream.h>
18#include <aws/transcribestreaming/model/MedicalContentIdentificationType.h>
19#include <utility>
20
21namespace Aws
22{
23namespace TranscribeStreamingService
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "StartMedicalStreamTranscription"; }
40
41 inline virtual bool IsEventStreamRequest() const override { return true; }
42 // SerializePayload will not be invoked.
43 // This request is sent by encoding its data in event-streams which is sent as IOStream via GetBody()
44 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String SerializePayload() const override { return {}; }
45 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<Aws::IOStream> GetBody() const override;
46 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
47
52
56 inline const StartMedicalStreamTranscriptionHandler& GetEventStreamHandler() const { return m_handler; }
57
61 inline void SetEventStreamHandler(const StartMedicalStreamTranscriptionHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
62
67
68
70
75 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
76 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
77 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
78 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
80 inline StartMedicalStreamTranscriptionRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
82
84
89 inline int GetMediaSampleRateHertz() const{ return m_mediaSampleRateHertz; }
90 inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; }
91 inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; }
94
96
104 inline const MediaEncoding& GetMediaEncoding() const{ return m_mediaEncoding; }
105 inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; }
106 inline void SetMediaEncoding(const MediaEncoding& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; }
107 inline void SetMediaEncoding(MediaEncoding&& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = std::move(value); }
111
113
118 inline const Aws::String& GetVocabularyName() const{ return m_vocabularyName; }
119 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
120 inline void SetVocabularyName(const Aws::String& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = value; }
121 inline void SetVocabularyName(Aws::String&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::move(value); }
122 inline void SetVocabularyName(const char* value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName.assign(value); }
125 inline StartMedicalStreamTranscriptionRequest& WithVocabularyName(const char* value) { SetVocabularyName(value); return *this;}
127
129
132 inline const Specialty& GetSpecialty() const{ return m_specialty; }
133 inline bool SpecialtyHasBeenSet() const { return m_specialtyHasBeenSet; }
134 inline void SetSpecialty(const Specialty& value) { m_specialtyHasBeenSet = true; m_specialty = value; }
135 inline void SetSpecialty(Specialty&& value) { m_specialtyHasBeenSet = true; m_specialty = std::move(value); }
136 inline StartMedicalStreamTranscriptionRequest& WithSpecialty(const Specialty& value) { SetSpecialty(value); return *this;}
137 inline StartMedicalStreamTranscriptionRequest& WithSpecialty(Specialty&& value) { SetSpecialty(std::move(value)); return *this;}
139
141
146 inline const Type& GetType() const{ return m_type; }
147 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
149 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
150 inline StartMedicalStreamTranscriptionRequest& WithType(const Type& value) { SetType(value); return *this;}
151 inline StartMedicalStreamTranscriptionRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
153
155
162 inline bool GetShowSpeakerLabel() const{ return m_showSpeakerLabel; }
163 inline bool ShowSpeakerLabelHasBeenSet() const { return m_showSpeakerLabelHasBeenSet; }
164 inline void SetShowSpeakerLabel(bool value) { m_showSpeakerLabelHasBeenSet = true; m_showSpeakerLabel = value; }
167
169
174 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
175 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
176 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
177 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
178 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
180 inline StartMedicalStreamTranscriptionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
181 inline StartMedicalStreamTranscriptionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
183
185
186 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<AudioStream> GetAudioStream() const { return m_audioStream; }
187 AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr<AudioStream>& value) { m_audioStream = value; }
188 AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest& WithAudioStream(const std::shared_ptr<AudioStream>& value) { SetAudioStream(value); return *this;}
189
191
193
205 inline bool GetEnableChannelIdentification() const{ return m_enableChannelIdentification; }
206 inline bool EnableChannelIdentificationHasBeenSet() const { return m_enableChannelIdentificationHasBeenSet; }
207 inline void SetEnableChannelIdentification(bool value) { m_enableChannelIdentificationHasBeenSet = true; m_enableChannelIdentification = value; }
210
212
219 inline int GetNumberOfChannels() const{ return m_numberOfChannels; }
220 inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; }
221 inline void SetNumberOfChannels(int value) { m_numberOfChannelsHasBeenSet = true; m_numberOfChannels = value; }
224
226
234 inline const MedicalContentIdentificationType& GetContentIdentificationType() const{ return m_contentIdentificationType; }
235 inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; }
236 inline void SetContentIdentificationType(const MedicalContentIdentificationType& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; }
237 inline void SetContentIdentificationType(MedicalContentIdentificationType&& value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = std::move(value); }
241 private:
242
243 LanguageCode m_languageCode;
244 bool m_languageCodeHasBeenSet = false;
245
246 int m_mediaSampleRateHertz;
247 bool m_mediaSampleRateHertzHasBeenSet = false;
248
249 MediaEncoding m_mediaEncoding;
250 bool m_mediaEncodingHasBeenSet = false;
251
252 Aws::String m_vocabularyName;
253 bool m_vocabularyNameHasBeenSet = false;
254
255 Specialty m_specialty;
256 bool m_specialtyHasBeenSet = false;
257
258 Type m_type;
259 bool m_typeHasBeenSet = false;
260
261 bool m_showSpeakerLabel;
262 bool m_showSpeakerLabelHasBeenSet = false;
263
264 Aws::String m_sessionId;
265 bool m_sessionIdHasBeenSet = false;
266
267 std::shared_ptr<AudioStream> m_audioStream;
268
269 bool m_enableChannelIdentification;
270 bool m_enableChannelIdentificationHasBeenSet = false;
271
272 int m_numberOfChannels;
273 bool m_numberOfChannelsHasBeenSet = false;
274
275 MedicalContentIdentificationType m_contentIdentificationType;
276 bool m_contentIdentificationTypeHasBeenSet = false;
279
280 };
281
282} // namespace Model
283} // namespace TranscribeStreamingService
284} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr< Aws::IOStream > GetBody() const override
StartMedicalStreamTranscriptionRequest & WithContentIdentificationType(const MedicalContentIdentificationType &value)
StartMedicalStreamTranscriptionRequest & WithMediaEncoding(const MediaEncoding &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest & WithAudioStream(const std::shared_ptr< AudioStream > &value)
StartMedicalStreamTranscriptionRequest & WithEventStreamHandler(const StartMedicalStreamTranscriptionHandler &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr< AudioStream > &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr< AudioStream > GetAudioStream() const
StartMedicalStreamTranscriptionRequest & WithVocabularyName(const Aws::String &value)
StartMedicalStreamTranscriptionRequest & WithContentIdentificationType(MedicalContentIdentificationType &&value)
StartMedicalStreamTranscriptionRequest & WithLanguageCode(const LanguageCode &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String