7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/bedrock-runtime/model/InvokeModelWithBidirectionalStreamHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/bedrock-runtime/model/InvokeModelWithBidirectionalStreamInput.h>
18namespace BedrockRuntime
34 inline virtual const char*
GetServiceRequestName()
const override {
return "InvokeModelWithBidirectionalStream"; }
41 AWS_BEDROCKRUNTIME_API std::shared_ptr<Aws::IOStream>
GetBody()
const override;
70 template<
typename ModelIdT = Aws::String>
71 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet =
true; m_modelId = std::forward<ModelIdT>(value); }
72 template<
typename ModelIdT = Aws::String>
87 AWS_BEDROCKRUNTIME_API std::shared_ptr<InvokeModelWithBidirectionalStreamInput>
GetMemberBody()
const {
return m_body; }
88 AWS_BEDROCKRUNTIME_API
void SetBody(
const std::shared_ptr<InvokeModelWithBidirectionalStreamInput>& value) { m_bodyHasBeenSet =
true; m_body = value; }
95 bool m_modelIdHasBeenSet =
false;
97 std::shared_ptr<InvokeModelWithBidirectionalStreamInput> m_body;
98 bool m_bodyHasBeenSet =
false;
AWS_BEDROCKRUNTIME_API InvokeModelWithBidirectionalStreamRequest()=default
void SetModelId(ModelIdT &&value)
bool ModelIdHasBeenSet() const
virtual bool HasEventStreamResponse() const override
const Aws::String & GetModelId() const
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
AWS_BEDROCKRUNTIME_API std::shared_ptr< Aws::IOStream > GetBody() const override
AWS_BEDROCKRUNTIME_API std::shared_ptr< InvokeModelWithBidirectionalStreamInput > GetMemberBody() const
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
void SetEventStreamHandler(const InvokeModelWithBidirectionalStreamHandler &value)
InvokeModelWithBidirectionalStreamHandler & GetEventStreamHandler()
virtual bool IsEventStreamRequest() const override
AWS_BEDROCKRUNTIME_API void SetBody(const std::shared_ptr< InvokeModelWithBidirectionalStreamInput > &value)
InvokeModelWithBidirectionalStreamRequest & WithEventStreamHandler(const InvokeModelWithBidirectionalStreamHandler &value)
InvokeModelWithBidirectionalStreamRequest & WithModelId(ModelIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BEDROCKRUNTIME_API InvokeModelWithBidirectionalStreamRequest & WithBody(const std::shared_ptr< InvokeModelWithBidirectionalStreamInput > &value)
void ResetEventStreamHandler(EventStreamHandler *handler)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String