AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
MedicalScribeInputStream.h
1
6#pragma once
7#include <aws/core/utils/event/EventStream.h>
8#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
9#include <aws/transcribestreaming/model/MedicalScribeAudioEvent.h>
10#include <aws/transcribestreaming/model/MedicalScribeConfigurationEvent.h>
11#include <aws/transcribestreaming/model/MedicalScribeSessionControlEvent.h>
12
13#include <utility>
14
15namespace Aws {
16namespace TranscribeStreamingService {
17namespace Model {
18
30class AWS_TRANSCRIBESTREAMINGSERVICE_API MedicalScribeInputStream : public Aws::Utils::Event::EventEncoderStream {
31 public:
34 if (!value.GetAudioChunk().empty()) {
35 msg.InsertEventHeader(":message-type", Aws::String("event"));
36 msg.InsertEventHeader(":event-type", Aws::String("AudioEvent"));
37 msg.InsertEventHeader(":content-type", Aws::String("application/octet-stream"));
39 }
40 WriteEvent(msg);
41 return *this;
42 }
45 msg.InsertEventHeader(":message-type", Aws::String("event"));
46 msg.InsertEventHeader(":event-type", Aws::String("SessionControlEvent"));
47 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
49 WriteEvent(msg);
50 return *this;
51 }
54 msg.InsertEventHeader(":message-type", Aws::String("event"));
55 msg.InsertEventHeader(":event-type", Aws::String("ConfigurationEvent"));
56 msg.InsertEventHeader(":content-type", Aws::String("application/json"));
58 WriteEvent(msg);
59 return *this;
60 }
61};
62
63} // namespace Model
64} // namespace TranscribeStreamingService
65} // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MedicalScribeInputStream & WriteMedicalScribeSessionControlEvent(const MedicalScribeSessionControlEvent &value)
MedicalScribeInputStream & WriteMedicalScribeConfigurationEvent(const MedicalScribeConfigurationEvent &value)
MedicalScribeInputStream & WriteMedicalScribeAudioEvent(const MedicalScribeAudioEvent &value)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void WriteEventPayload(const unsigned char *data, size_t length)
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Aws::String WriteCompact(bool treatAsObject=true) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String