AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeModelWithResponseStreamRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/bedrock-runtime/model/InvokeModelWithResponseStreamHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/bedrock-runtime/model/Trace.h>
14#include <utility>
15
16namespace Aws
17{
18namespace BedrockRuntime
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCKRUNTIME_API InvokeModelWithResponseStreamRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "InvokeModelWithResponseStream"; }
35
36 AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
42
46 inline const InvokeModelWithResponseStreamHandler& GetEventStreamHandler() const { return m_handler; }
47
51 inline void SetEventStreamHandler(const InvokeModelWithResponseStreamHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
52
57
58
60
64 inline const Aws::String& GetAccept() const{ return m_accept; }
65 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
66 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
67 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
68 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
69 inline InvokeModelWithResponseStreamRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
70 inline InvokeModelWithResponseStreamRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
71 inline InvokeModelWithResponseStreamRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
73
75
98 inline const Aws::String& GetModelId() const{ return m_modelId; }
99 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
100 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
101 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
102 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
103 inline InvokeModelWithResponseStreamRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
104 inline InvokeModelWithResponseStreamRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
105 inline InvokeModelWithResponseStreamRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
107
109
113 inline const Trace& GetTrace() const{ return m_trace; }
114 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
115 inline void SetTrace(const Trace& value) { m_traceHasBeenSet = true; m_trace = value; }
116 inline void SetTrace(Trace&& value) { m_traceHasBeenSet = true; m_trace = std::move(value); }
117 inline InvokeModelWithResponseStreamRequest& WithTrace(const Trace& value) { SetTrace(value); return *this;}
118 inline InvokeModelWithResponseStreamRequest& WithTrace(Trace&& value) { SetTrace(std::move(value)); return *this;}
120
122
132 inline const Aws::String& GetGuardrailIdentifier() const{ return m_guardrailIdentifier; }
133 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
134 inline void SetGuardrailIdentifier(const Aws::String& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = value; }
135 inline void SetGuardrailIdentifier(Aws::String&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::move(value); }
136 inline void SetGuardrailIdentifier(const char* value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier.assign(value); }
141
143
147 inline const Aws::String& GetGuardrailVersion() const{ return m_guardrailVersion; }
148 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
149 inline void SetGuardrailVersion(const Aws::String& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = value; }
150 inline void SetGuardrailVersion(Aws::String&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::move(value); }
151 inline void SetGuardrailVersion(const char* value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion.assign(value); }
154 inline InvokeModelWithResponseStreamRequest& WithGuardrailVersion(const char* value) { SetGuardrailVersion(value); return *this;}
156 private:
157
158
159 Aws::String m_accept;
160 bool m_acceptHasBeenSet = false;
161
162 Aws::String m_modelId;
163 bool m_modelIdHasBeenSet = false;
164
165 Trace m_trace;
166 bool m_traceHasBeenSet = false;
167
168 Aws::String m_guardrailIdentifier;
169 bool m_guardrailIdentifierHasBeenSet = false;
170
171 Aws::String m_guardrailVersion;
172 bool m_guardrailVersionHasBeenSet = false;
175
176 };
177
178} // namespace Model
179} // namespace BedrockRuntime
180} // namespace Aws
InvokeModelWithResponseStreamRequest & WithModelId(Aws::String &&value)
InvokeModelWithResponseStreamRequest & WithGuardrailIdentifier(Aws::String &&value)
void SetEventStreamHandler(const InvokeModelWithResponseStreamHandler &value)
InvokeModelWithResponseStreamRequest & WithGuardrailIdentifier(const Aws::String &value)
InvokeModelWithResponseStreamRequest & WithEventStreamHandler(const InvokeModelWithResponseStreamHandler &value)
InvokeModelWithResponseStreamRequest & WithAccept(const Aws::String &value)
InvokeModelWithResponseStreamRequest & WithModelId(const char *value)
InvokeModelWithResponseStreamRequest & WithModelId(const Aws::String &value)
InvokeModelWithResponseStreamRequest & WithGuardrailVersion(const Aws::String &value)
InvokeModelWithResponseStreamRequest & WithGuardrailIdentifier(const char *value)
AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeModelWithResponseStreamRequest & WithGuardrailVersion(Aws::String &&value)
InvokeModelWithResponseStreamRequest & WithAccept(const char *value)
InvokeModelWithResponseStreamRequest & WithTrace(const Trace &value)
InvokeModelWithResponseStreamRequest & WithAccept(Aws::String &&value)
InvokeModelWithResponseStreamRequest & WithGuardrailVersion(const char *value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String