AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
StartMedicalStreamTranscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/event/EventStreamDecoder.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/transcribestreaming/TranscribeStreamingServiceRequest.h>
10#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
11#include <aws/transcribestreaming/model/AudioStream.h>
12#include <aws/transcribestreaming/model/LanguageCode.h>
13#include <aws/transcribestreaming/model/MediaEncoding.h>
14#include <aws/transcribestreaming/model/MedicalContentIdentificationType.h>
15#include <aws/transcribestreaming/model/Specialty.h>
16#include <aws/transcribestreaming/model/StartMedicalStreamTranscriptionHandler.h>
17#include <aws/transcribestreaming/model/Type.h>
18
19#include <memory>
20#include <utility>
21
22namespace Aws {
23namespace TranscribeStreamingService {
24namespace Model {
25
29 public:
30 AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartMedicalStreamTranscription"; }
37
38 inline virtual bool IsEventStreamRequest() const override { return true; }
39 inline virtual bool HasEventStreamResponse() const override { return true; }
40 // SerializePayload will not be invoked.
41 // This request is sent by encoding its data in event-streams which is sent as IOStream via GetBody()
42 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::String SerializePayload() const override { return {}; }
43 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<Aws::IOStream> GetBody() const override;
44 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
50
55
60 m_handler = value;
61 m_decoder.ResetEventStreamHandler(&m_handler);
62 }
63
69 return *this;
70 }
71
73
78 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
79 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
80 inline void SetLanguageCode(LanguageCode value) {
81 m_languageCodeHasBeenSet = true;
82 m_languageCode = value;
83 }
85 SetLanguageCode(value);
86 return *this;
87 }
89
91
96 inline int GetMediaSampleRateHertz() const { return m_mediaSampleRateHertz; }
97 inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; }
98 inline void SetMediaSampleRateHertz(int value) {
99 m_mediaSampleRateHertzHasBeenSet = true;
100 m_mediaSampleRateHertz = value;
101 }
104 return *this;
105 }
107
109
117 inline MediaEncoding GetMediaEncoding() const { return m_mediaEncoding; }
118 inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; }
119 inline void SetMediaEncoding(MediaEncoding value) {
120 m_mediaEncodingHasBeenSet = true;
121 m_mediaEncoding = value;
122 }
124 SetMediaEncoding(value);
125 return *this;
126 }
128
130
135 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
136 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
137 template <typename VocabularyNameT = Aws::String>
138 void SetVocabularyName(VocabularyNameT&& value) {
139 m_vocabularyNameHasBeenSet = true;
140 m_vocabularyName = std::forward<VocabularyNameT>(value);
141 }
142 template <typename VocabularyNameT = Aws::String>
144 SetVocabularyName(std::forward<VocabularyNameT>(value));
145 return *this;
146 }
148
150
153 inline Specialty GetSpecialty() const { return m_specialty; }
154 inline bool SpecialtyHasBeenSet() const { return m_specialtyHasBeenSet; }
155 inline void SetSpecialty(Specialty value) {
156 m_specialtyHasBeenSet = true;
157 m_specialty = value;
158 }
160 SetSpecialty(value);
161 return *this;
162 }
164
166
171 inline Type GetType() const { return m_type; }
172 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
173 inline void SetType(Type value) {
174 m_typeHasBeenSet = true;
175 m_type = value;
176 }
178 SetType(value);
179 return *this;
180 }
182
184
191 inline bool GetShowSpeakerLabel() const { return m_showSpeakerLabel; }
192 inline bool ShowSpeakerLabelHasBeenSet() const { return m_showSpeakerLabelHasBeenSet; }
193 inline void SetShowSpeakerLabel(bool value) {
194 m_showSpeakerLabelHasBeenSet = true;
195 m_showSpeakerLabel = value;
196 }
198 SetShowSpeakerLabel(value);
199 return *this;
200 }
202
204
209 inline const Aws::String& GetSessionId() const { return m_sessionId; }
210 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
211 template <typename SessionIdT = Aws::String>
212 void SetSessionId(SessionIdT&& value) {
213 m_sessionIdHasBeenSet = true;
214 m_sessionId = std::forward<SessionIdT>(value);
215 }
216 template <typename SessionIdT = Aws::String>
218 SetSessionId(std::forward<SessionIdT>(value));
219 return *this;
220 }
222
224
225 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<AudioStream> GetAudioStream() const { return m_audioStream; }
226 AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr<AudioStream>& value) {
227 m_audioStreamHasBeenSet = true;
228 m_audioStream = value;
229 }
230 AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest& WithAudioStream(const std::shared_ptr<AudioStream>& value) {
231 SetAudioStream(value);
232 return *this;
233 }
234
236
238
250 inline bool GetEnableChannelIdentification() const { return m_enableChannelIdentification; }
251 inline bool EnableChannelIdentificationHasBeenSet() const { return m_enableChannelIdentificationHasBeenSet; }
252 inline void SetEnableChannelIdentification(bool value) {
253 m_enableChannelIdentificationHasBeenSet = true;
254 m_enableChannelIdentification = value;
255 }
258 return *this;
259 }
261
263
270 inline int GetNumberOfChannels() const { return m_numberOfChannels; }
271 inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; }
272 inline void SetNumberOfChannels(int value) {
273 m_numberOfChannelsHasBeenSet = true;
274 m_numberOfChannels = value;
275 }
277 SetNumberOfChannels(value);
278 return *this;
279 }
281
283
291 inline MedicalContentIdentificationType GetContentIdentificationType() const { return m_contentIdentificationType; }
292 inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; }
294 m_contentIdentificationTypeHasBeenSet = true;
295 m_contentIdentificationType = value;
296 }
299 return *this;
300 }
302 private:
303 LanguageCode m_languageCode{LanguageCode::NOT_SET};
304
305 int m_mediaSampleRateHertz{0};
306
307 MediaEncoding m_mediaEncoding{MediaEncoding::NOT_SET};
308
309 Aws::String m_vocabularyName;
310
311 Specialty m_specialty{Specialty::NOT_SET};
312
313 Type m_type{Type::NOT_SET};
314
315 bool m_showSpeakerLabel{false};
316
317 Aws::String m_sessionId;
318
319 std::shared_ptr<AudioStream> m_audioStream;
320
321 bool m_enableChannelIdentification{false};
322
323 int m_numberOfChannels{0};
324
326 StartMedicalStreamTranscriptionHandler m_handler;
327 Aws::Utils::Event::EventStreamDecoder m_decoder{Utils::Event::EventStreamDecoder(&m_handler)};
328
329 bool m_languageCodeHasBeenSet = false;
330 bool m_mediaSampleRateHertzHasBeenSet = false;
331 bool m_mediaEncodingHasBeenSet = false;
332 bool m_vocabularyNameHasBeenSet = false;
333 bool m_specialtyHasBeenSet = false;
334 bool m_typeHasBeenSet = false;
335 bool m_showSpeakerLabelHasBeenSet = false;
336 bool m_sessionIdHasBeenSet = false;
337 bool m_audioStreamHasBeenSet = false;
338 bool m_enableChannelIdentificationHasBeenSet = false;
339 bool m_numberOfChannelsHasBeenSet = false;
340 bool m_contentIdentificationTypeHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace TranscribeStreamingService
345} // namespace Aws
StartMedicalStreamTranscriptionRequest & WithVocabularyName(VocabularyNameT &&value)
AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr< Aws::IOStream > GetBody() const override
AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest()=default
AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest & WithAudioStream(const std::shared_ptr< AudioStream > &value)
StartMedicalStreamTranscriptionRequest & WithEventStreamHandler(const StartMedicalStreamTranscriptionHandler &value)
StartMedicalStreamTranscriptionRequest & WithContentIdentificationType(MedicalContentIdentificationType value)
AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr< AudioStream > &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr< AudioStream > GetAudioStream() const
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