AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InvokeModelRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/PerformanceConfigLatency.h>
10#include <aws/bedrock-runtime/model/ServiceTierType.h>
11#include <aws/bedrock-runtime/model/Trace.h>
12#include <aws/core/utils/Array.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BedrockRuntime {
19namespace Model {
20
24 public:
25 AWS_BEDROCKRUNTIME_API InvokeModelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "InvokeModel"; }
32
33 AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetAccept() const { return m_accept; }
41 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
42 template <typename AcceptT = Aws::String>
43 void SetAccept(AcceptT&& value) {
44 m_acceptHasBeenSet = true;
45 m_accept = std::forward<AcceptT>(value);
46 }
47 template <typename AcceptT = Aws::String>
49 SetAccept(std::forward<AcceptT>(value));
50 return *this;
51 }
53
55
82 inline const Aws::String& GetModelId() const { return m_modelId; }
83 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
84 template <typename ModelIdT = Aws::String>
85 void SetModelId(ModelIdT&& value) {
86 m_modelIdHasBeenSet = true;
87 m_modelId = std::forward<ModelIdT>(value);
88 }
89 template <typename ModelIdT = Aws::String>
91 SetModelId(std::forward<ModelIdT>(value));
92 return *this;
93 }
95
97
101 inline Trace GetTrace() const { return m_trace; }
102 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
103 inline void SetTrace(Trace value) {
104 m_traceHasBeenSet = true;
105 m_trace = value;
106 }
108 SetTrace(value);
109 return *this;
110 }
112
114
124 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
125 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
126 template <typename GuardrailIdentifierT = Aws::String>
128 m_guardrailIdentifierHasBeenSet = true;
129 m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value);
130 }
131 template <typename GuardrailIdentifierT = Aws::String>
133 SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetGuardrailVersion() const { return m_guardrailVersion; }
144 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
145 template <typename GuardrailVersionT = Aws::String>
147 m_guardrailVersionHasBeenSet = true;
148 m_guardrailVersion = std::forward<GuardrailVersionT>(value);
149 }
150 template <typename GuardrailVersionT = Aws::String>
152 SetGuardrailVersion(std::forward<GuardrailVersionT>(value));
153 return *this;
154 }
156
158
161 inline PerformanceConfigLatency GetPerformanceConfigLatency() const { return m_performanceConfigLatency; }
162 inline bool PerformanceConfigLatencyHasBeenSet() const { return m_performanceConfigLatencyHasBeenSet; }
164 m_performanceConfigLatencyHasBeenSet = true;
165 m_performanceConfigLatency = value;
166 }
169 return *this;
170 }
172
174
177 inline ServiceTierType GetServiceTier() const { return m_serviceTier; }
178 inline bool ServiceTierHasBeenSet() const { return m_serviceTierHasBeenSet; }
179 inline void SetServiceTier(ServiceTierType value) {
180 m_serviceTierHasBeenSet = true;
181 m_serviceTier = value;
182 }
184 SetServiceTier(value);
185 return *this;
186 }
188 private:
189 Aws::String m_accept;
190
191 Aws::String m_modelId;
192
193 Trace m_trace{Trace::NOT_SET};
194
195 Aws::String m_guardrailIdentifier;
196
197 Aws::String m_guardrailVersion;
198
200
202 bool m_acceptHasBeenSet = false;
203 bool m_modelIdHasBeenSet = false;
204 bool m_traceHasBeenSet = false;
205 bool m_guardrailIdentifierHasBeenSet = false;
206 bool m_guardrailVersionHasBeenSet = false;
207 bool m_performanceConfigLatencyHasBeenSet = false;
208 bool m_serviceTierHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace BedrockRuntime
213} // namespace Aws
InvokeModelRequest & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
InvokeModelRequest & WithServiceTier(ServiceTierType value)
void SetGuardrailVersion(GuardrailVersionT &&value)
InvokeModelRequest & WithModelId(ModelIdT &&value)
InvokeModelRequest & WithTrace(Trace value)
PerformanceConfigLatency GetPerformanceConfigLatency() const
void SetGuardrailIdentifier(GuardrailIdentifierT &&value)
AWS_BEDROCKRUNTIME_API InvokeModelRequest()=default
InvokeModelRequest & WithAccept(AcceptT &&value)
void SetPerformanceConfigLatency(PerformanceConfigLatency value)
InvokeModelRequest & WithPerformanceConfigLatency(PerformanceConfigLatency value)
InvokeModelRequest & WithGuardrailVersion(GuardrailVersionT &&value)
AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String