AWS SDK for C++
AWS SDK for C++ Version 1.11.609
Main Page
Related Pages
Namespaces
Classes
Modules
Search
Loading...
Searching...
No Matches
generated
src
aws-cpp-sdk-bedrock-runtime
include
aws
bedrock-runtime
model
InvokeModelWithBidirectionalStreamInput.h
1
6
#pragma once
7
#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8
#include <aws/bedrock-runtime/model/BidirectionalInputPayloadPart.h>
9
#include <utility>
10
#include <aws/core/utils/event/EventStream.h>
11
12
namespace
Aws
13
{
14
namespace
BedrockRuntime
15
{
16
namespace
Model
17
{
18
25
class
AWS_BEDROCKRUNTIME_API
InvokeModelWithBidirectionalStreamInput
:
public
Aws::Utils::Event::EventEncoderStream
26
{
27
public
:
28
InvokeModelWithBidirectionalStreamInput
&
WriteBidirectionalInputPayloadPart
(
const
BidirectionalInputPayloadPart
& value)
29
{
30
Aws::Utils::Event::Message
msg;
31
msg.
InsertEventHeader
(
":message-type"
,
Aws::String
(
"event"
));
32
msg.
InsertEventHeader
(
":event-type"
,
Aws::String
(
"chunk"
));
33
msg.
InsertEventHeader
(
":content-type"
,
Aws::String
(
"application/json"
));
34
msg.
WriteEventPayload
(value.
Jsonize
().
View
().
WriteCompact
());
35
WriteEvent(msg);
36
return
*
this
;
37
}
38
39
};
40
41
}
// namespace Model
42
}
// namespace BedrockRuntime
43
}
// namespace Aws
Aws::BedrockRuntime::Model::BidirectionalInputPayloadPart
Definition
BidirectionalInputPayloadPart.h:33
Aws::BedrockRuntime::Model::BidirectionalInputPayloadPart::Jsonize
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::BedrockRuntime::Model::InvokeModelWithBidirectionalStreamInput
Definition
InvokeModelWithBidirectionalStreamInput.h:26
Aws::BedrockRuntime::Model::InvokeModelWithBidirectionalStreamInput::WriteBidirectionalInputPayloadPart
InvokeModelWithBidirectionalStreamInput & WriteBidirectionalInputPayloadPart(const BidirectionalInputPayloadPart &value)
Definition
InvokeModelWithBidirectionalStreamInput.h:28
Aws::Utils::Event::EventEncoderStream
Aws::Utils::Event::Message
Aws::Utils::Event::Message::WriteEventPayload
void WriteEventPayload(const unsigned char *data, size_t length)
Aws::Utils::Event::Message::InsertEventHeader
void InsertEventHeader(const Aws::String &headerName, const EventHeaderValue &eventHeaderValue)
Aws::Utils::Json::JsonValue::View
JsonView View() const
Aws::Utils::Json::JsonView::WriteCompact
Aws::String WriteCompact(bool treatAsObject=true) const
Aws
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Generated by
1.9.8
Privacy |
Site terms |
Cookie preferences