AWS SDK for C++

AWS SDK for C++ Version 1.11.509

Loading...
Searching...
No Matches
InvokeModelRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-runtime/model/Trace.h>
12#include <aws/bedrock-runtime/model/PerformanceConfigLatency.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockRuntime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKRUNTIME_API InvokeModelRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "InvokeModel"; }
34
35 AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetAccept() const{ return m_accept; }
44 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
45 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
46 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
47 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
48 inline InvokeModelRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
49 inline InvokeModelRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
50 inline InvokeModelRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
52
54
81 inline const Aws::String& GetModelId() const{ return m_modelId; }
82 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
83 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
84 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
85 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
86 inline InvokeModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
87 inline InvokeModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
88 inline InvokeModelRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
90
92
96 inline const Trace& GetTrace() const{ return m_trace; }
97 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
98 inline void SetTrace(const Trace& value) { m_traceHasBeenSet = true; m_trace = value; }
99 inline void SetTrace(Trace&& value) { m_traceHasBeenSet = true; m_trace = std::move(value); }
100 inline InvokeModelRequest& WithTrace(const Trace& value) { SetTrace(value); return *this;}
101 inline InvokeModelRequest& WithTrace(Trace&& value) { SetTrace(std::move(value)); return *this;}
103
105
115 inline const Aws::String& GetGuardrailIdentifier() const{ return m_guardrailIdentifier; }
116 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
117 inline void SetGuardrailIdentifier(const Aws::String& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = value; }
118 inline void SetGuardrailIdentifier(Aws::String&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::move(value); }
119 inline void SetGuardrailIdentifier(const char* value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier.assign(value); }
121 inline InvokeModelRequest& WithGuardrailIdentifier(Aws::String&& value) { SetGuardrailIdentifier(std::move(value)); return *this;}
122 inline InvokeModelRequest& WithGuardrailIdentifier(const char* value) { SetGuardrailIdentifier(value); return *this;}
124
126
130 inline const Aws::String& GetGuardrailVersion() const{ return m_guardrailVersion; }
131 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
132 inline void SetGuardrailVersion(const Aws::String& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = value; }
133 inline void SetGuardrailVersion(Aws::String&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::move(value); }
134 inline void SetGuardrailVersion(const char* value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion.assign(value); }
135 inline InvokeModelRequest& WithGuardrailVersion(const Aws::String& value) { SetGuardrailVersion(value); return *this;}
136 inline InvokeModelRequest& WithGuardrailVersion(Aws::String&& value) { SetGuardrailVersion(std::move(value)); return *this;}
137 inline InvokeModelRequest& WithGuardrailVersion(const char* value) { SetGuardrailVersion(value); return *this;}
139
141
144 inline const PerformanceConfigLatency& GetPerformanceConfigLatency() const{ return m_performanceConfigLatency; }
145 inline bool PerformanceConfigLatencyHasBeenSet() const { return m_performanceConfigLatencyHasBeenSet; }
146 inline void SetPerformanceConfigLatency(const PerformanceConfigLatency& value) { m_performanceConfigLatencyHasBeenSet = true; m_performanceConfigLatency = value; }
147 inline void SetPerformanceConfigLatency(PerformanceConfigLatency&& value) { m_performanceConfigLatencyHasBeenSet = true; m_performanceConfigLatency = std::move(value); }
151 private:
152
153
154 Aws::String m_accept;
155 bool m_acceptHasBeenSet = false;
156
157 Aws::String m_modelId;
158 bool m_modelIdHasBeenSet = false;
159
160 Trace m_trace;
161 bool m_traceHasBeenSet = false;
162
163 Aws::String m_guardrailIdentifier;
164 bool m_guardrailIdentifierHasBeenSet = false;
165
166 Aws::String m_guardrailVersion;
167 bool m_guardrailVersionHasBeenSet = false;
168
169 PerformanceConfigLatency m_performanceConfigLatency;
170 bool m_performanceConfigLatencyHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace BedrockRuntime
175} // namespace Aws
InvokeModelRequest & WithGuardrailVersion(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetGuardrailIdentifier(const Aws::String &value)
InvokeModelRequest & WithGuardrailIdentifier(const Aws::String &value)
InvokeModelRequest & WithGuardrailIdentifier(Aws::String &&value)
InvokeModelRequest & WithGuardrailVersion(const char *value)
InvokeModelRequest & WithAccept(const Aws::String &value)
void SetPerformanceConfigLatency(PerformanceConfigLatency &&value)
InvokeModelRequest & WithAccept(const char *value)
InvokeModelRequest & WithGuardrailVersion(Aws::String &&value)
const PerformanceConfigLatency & GetPerformanceConfigLatency() const
InvokeModelRequest & WithModelId(Aws::String &&value)
InvokeModelRequest & WithPerformanceConfigLatency(const PerformanceConfigLatency &value)
InvokeModelRequest & WithGuardrailIdentifier(const char *value)
InvokeModelRequest & WithAccept(Aws::String &&value)
InvokeModelRequest & WithTrace(const Trace &value)
InvokeModelRequest & WithPerformanceConfigLatency(PerformanceConfigLatency &&value)
void SetGuardrailVersion(const Aws::String &value)
AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeModelRequest & WithModelId(const char *value)
InvokeModelRequest & WithModelId(const Aws::String &value)
InvokeModelRequest & WithTrace(Trace &&value)
void SetPerformanceConfigLatency(const PerformanceConfigLatency &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String