AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 inline virtual bool HasEventStreamResponse() 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
58
62 inline void SetEventStreamHandler(const StartMedicalStreamTranscriptionHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
63
68
69
71
76 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
77 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
78 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
81
83
88 inline int GetMediaSampleRateHertz() const { return m_mediaSampleRateHertz; }
89 inline bool MediaSampleRateHertzHasBeenSet() const { return m_mediaSampleRateHertzHasBeenSet; }
90 inline void SetMediaSampleRateHertz(int value) { m_mediaSampleRateHertzHasBeenSet = true; m_mediaSampleRateHertz = value; }
93
95
103 inline MediaEncoding GetMediaEncoding() const { return m_mediaEncoding; }
104 inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; }
105 inline void SetMediaEncoding(MediaEncoding value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; }
108
110
115 inline const Aws::String& GetVocabularyName() const { return m_vocabularyName; }
116 inline bool VocabularyNameHasBeenSet() const { return m_vocabularyNameHasBeenSet; }
117 template<typename VocabularyNameT = Aws::String>
118 void SetVocabularyName(VocabularyNameT&& value) { m_vocabularyNameHasBeenSet = true; m_vocabularyName = std::forward<VocabularyNameT>(value); }
119 template<typename VocabularyNameT = Aws::String>
120 StartMedicalStreamTranscriptionRequest& WithVocabularyName(VocabularyNameT&& value) { SetVocabularyName(std::forward<VocabularyNameT>(value)); return *this;}
122
124
127 inline Specialty GetSpecialty() const { return m_specialty; }
128 inline bool SpecialtyHasBeenSet() const { return m_specialtyHasBeenSet; }
129 inline void SetSpecialty(Specialty value) { m_specialtyHasBeenSet = true; m_specialty = value; }
132
134
139 inline Type GetType() const { return m_type; }
140 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
141 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
142 inline StartMedicalStreamTranscriptionRequest& WithType(Type value) { SetType(value); return *this;}
144
146
153 inline bool GetShowSpeakerLabel() const { return m_showSpeakerLabel; }
154 inline bool ShowSpeakerLabelHasBeenSet() const { return m_showSpeakerLabelHasBeenSet; }
155 inline void SetShowSpeakerLabel(bool value) { m_showSpeakerLabelHasBeenSet = true; m_showSpeakerLabel = value; }
158
160
165 inline const Aws::String& GetSessionId() const { return m_sessionId; }
166 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
167 template<typename SessionIdT = Aws::String>
168 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
169 template<typename SessionIdT = Aws::String>
170 StartMedicalStreamTranscriptionRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
172
174
175 AWS_TRANSCRIBESTREAMINGSERVICE_API std::shared_ptr<AudioStream> GetAudioStream() const { return m_audioStream; }
176 AWS_TRANSCRIBESTREAMINGSERVICE_API void SetAudioStream(const std::shared_ptr<AudioStream>& value) { m_audioStreamHasBeenSet = true; m_audioStream = value; }
177 AWS_TRANSCRIBESTREAMINGSERVICE_API StartMedicalStreamTranscriptionRequest& WithAudioStream(const std::shared_ptr<AudioStream>& value) { SetAudioStream(value); return *this;}
178
180
182
194 inline bool GetEnableChannelIdentification() const { return m_enableChannelIdentification; }
195 inline bool EnableChannelIdentificationHasBeenSet() const { return m_enableChannelIdentificationHasBeenSet; }
196 inline void SetEnableChannelIdentification(bool value) { m_enableChannelIdentificationHasBeenSet = true; m_enableChannelIdentification = value; }
199
201
208 inline int GetNumberOfChannels() const { return m_numberOfChannels; }
209 inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; }
210 inline void SetNumberOfChannels(int value) { m_numberOfChannelsHasBeenSet = true; m_numberOfChannels = value; }
213
215
223 inline MedicalContentIdentificationType GetContentIdentificationType() const { return m_contentIdentificationType; }
224 inline bool ContentIdentificationTypeHasBeenSet() const { return m_contentIdentificationTypeHasBeenSet; }
225 inline void SetContentIdentificationType(MedicalContentIdentificationType value) { m_contentIdentificationTypeHasBeenSet = true; m_contentIdentificationType = value; }
228 private:
229
230 LanguageCode m_languageCode{LanguageCode::NOT_SET};
231 bool m_languageCodeHasBeenSet = false;
232
233 int m_mediaSampleRateHertz{0};
234 bool m_mediaSampleRateHertzHasBeenSet = false;
235
236 MediaEncoding m_mediaEncoding{MediaEncoding::NOT_SET};
237 bool m_mediaEncodingHasBeenSet = false;
238
239 Aws::String m_vocabularyName;
240 bool m_vocabularyNameHasBeenSet = false;
241
242 Specialty m_specialty{Specialty::NOT_SET};
243 bool m_specialtyHasBeenSet = false;
244
245 Type m_type{Type::NOT_SET};
246 bool m_typeHasBeenSet = false;
247
248 bool m_showSpeakerLabel{false};
249 bool m_showSpeakerLabelHasBeenSet = false;
250
251 Aws::String m_sessionId;
252 bool m_sessionIdHasBeenSet = false;
253
254 std::shared_ptr<AudioStream> m_audioStream;
255 bool m_audioStreamHasBeenSet = false;
256
257 bool m_enableChannelIdentification{false};
258 bool m_enableChannelIdentificationHasBeenSet = false;
259
260 int m_numberOfChannels{0};
261 bool m_numberOfChannelsHasBeenSet = false;
262
264 bool m_contentIdentificationTypeHasBeenSet = false;
265 StartMedicalStreamTranscriptionHandler m_handler;
266 Aws::Utils::Event::EventStreamDecoder m_decoder{Utils::Event::EventStreamDecoder(&m_handler)};
267
268 };
269
270} // namespace Model
271} // namespace TranscribeStreamingService
272} // 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