AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InvokeEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker-runtime/SageMakerRuntimeRequest.h>
10#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMakerRuntime {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKERRUNTIME_API InvokeEndpointRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "InvokeEndpoint"; }
29
30 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
31
33
39 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
40 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
41 template <typename EndpointNameT = Aws::String>
42 void SetEndpointName(EndpointNameT&& value) {
43 m_endpointNameHasBeenSet = true;
44 m_endpointName = std::forward<EndpointNameT>(value);
45 }
46 template <typename EndpointNameT = Aws::String>
47 InvokeEndpointRequest& WithEndpointName(EndpointNameT&& value) {
48 SetEndpointName(std::forward<EndpointNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAccept() const { return m_accept; }
58 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
59 template <typename AcceptT = Aws::String>
60 void SetAccept(AcceptT&& value) {
61 m_acceptHasBeenSet = true;
62 m_accept = std::forward<AcceptT>(value);
63 }
64 template <typename AcceptT = Aws::String>
66 SetAccept(std::forward<AcceptT>(value));
67 return *this;
68 }
70
72
89 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
90 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
91 template <typename CustomAttributesT = Aws::String>
92 void SetCustomAttributes(CustomAttributesT&& value) {
93 m_customAttributesHasBeenSet = true;
94 m_customAttributes = std::forward<CustomAttributesT>(value);
95 }
96 template <typename CustomAttributesT = Aws::String>
97 InvokeEndpointRequest& WithCustomAttributes(CustomAttributesT&& value) {
98 SetCustomAttributes(std::forward<CustomAttributesT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetTargetModel() const { return m_targetModel; }
108 inline bool TargetModelHasBeenSet() const { return m_targetModelHasBeenSet; }
109 template <typename TargetModelT = Aws::String>
110 void SetTargetModel(TargetModelT&& value) {
111 m_targetModelHasBeenSet = true;
112 m_targetModel = std::forward<TargetModelT>(value);
113 }
114 template <typename TargetModelT = Aws::String>
115 InvokeEndpointRequest& WithTargetModel(TargetModelT&& value) {
116 SetTargetModel(std::forward<TargetModelT>(value));
117 return *this;
118 }
120
122
131 inline const Aws::String& GetTargetVariant() const { return m_targetVariant; }
132 inline bool TargetVariantHasBeenSet() const { return m_targetVariantHasBeenSet; }
133 template <typename TargetVariantT = Aws::String>
134 void SetTargetVariant(TargetVariantT&& value) {
135 m_targetVariantHasBeenSet = true;
136 m_targetVariant = std::forward<TargetVariantT>(value);
137 }
138 template <typename TargetVariantT = Aws::String>
139 InvokeEndpointRequest& WithTargetVariant(TargetVariantT&& value) {
140 SetTargetVariant(std::forward<TargetVariantT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::String& GetTargetContainerHostname() const { return m_targetContainerHostname; }
152 inline bool TargetContainerHostnameHasBeenSet() const { return m_targetContainerHostnameHasBeenSet; }
153 template <typename TargetContainerHostnameT = Aws::String>
154 void SetTargetContainerHostname(TargetContainerHostnameT&& value) {
155 m_targetContainerHostnameHasBeenSet = true;
156 m_targetContainerHostname = std::forward<TargetContainerHostnameT>(value);
157 }
158 template <typename TargetContainerHostnameT = Aws::String>
159 InvokeEndpointRequest& WithTargetContainerHostname(TargetContainerHostnameT&& value) {
160 SetTargetContainerHostname(std::forward<TargetContainerHostnameT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
173 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
174 template <typename InferenceIdT = Aws::String>
175 void SetInferenceId(InferenceIdT&& value) {
176 m_inferenceIdHasBeenSet = true;
177 m_inferenceId = std::forward<InferenceIdT>(value);
178 }
179 template <typename InferenceIdT = Aws::String>
180 InvokeEndpointRequest& WithInferenceId(InferenceIdT&& value) {
181 SetInferenceId(std::forward<InferenceIdT>(value));
182 return *this;
183 }
185
187
194 inline const Aws::String& GetEnableExplanations() const { return m_enableExplanations; }
195 inline bool EnableExplanationsHasBeenSet() const { return m_enableExplanationsHasBeenSet; }
196 template <typename EnableExplanationsT = Aws::String>
197 void SetEnableExplanations(EnableExplanationsT&& value) {
198 m_enableExplanationsHasBeenSet = true;
199 m_enableExplanations = std::forward<EnableExplanationsT>(value);
200 }
201 template <typename EnableExplanationsT = Aws::String>
202 InvokeEndpointRequest& WithEnableExplanations(EnableExplanationsT&& value) {
203 SetEnableExplanations(std::forward<EnableExplanationsT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::String& GetInferenceComponentName() const { return m_inferenceComponentName; }
214 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
215 template <typename InferenceComponentNameT = Aws::String>
216 void SetInferenceComponentName(InferenceComponentNameT&& value) {
217 m_inferenceComponentNameHasBeenSet = true;
218 m_inferenceComponentName = std::forward<InferenceComponentNameT>(value);
219 }
220 template <typename InferenceComponentNameT = Aws::String>
221 InvokeEndpointRequest& WithInferenceComponentName(InferenceComponentNameT&& value) {
222 SetInferenceComponentName(std::forward<InferenceComponentNameT>(value));
223 return *this;
224 }
226
228
241 inline const Aws::String& GetSessionId() const { return m_sessionId; }
242 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
243 template <typename SessionIdT = Aws::String>
244 void SetSessionId(SessionIdT&& value) {
245 m_sessionIdHasBeenSet = true;
246 m_sessionId = std::forward<SessionIdT>(value);
247 }
248 template <typename SessionIdT = Aws::String>
250 SetSessionId(std::forward<SessionIdT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_endpointName;
256
257 Aws::String m_accept;
258
259 Aws::String m_customAttributes;
260
261 Aws::String m_targetModel;
262
263 Aws::String m_targetVariant;
264
265 Aws::String m_targetContainerHostname;
266
267 Aws::String m_inferenceId;
268
269 Aws::String m_enableExplanations;
270
271 Aws::String m_inferenceComponentName;
272
273 Aws::String m_sessionId;
274 bool m_endpointNameHasBeenSet = false;
275 bool m_acceptHasBeenSet = false;
276 bool m_customAttributesHasBeenSet = false;
277 bool m_targetModelHasBeenSet = false;
278 bool m_targetVariantHasBeenSet = false;
279 bool m_targetContainerHostnameHasBeenSet = false;
280 bool m_inferenceIdHasBeenSet = false;
281 bool m_enableExplanationsHasBeenSet = false;
282 bool m_inferenceComponentNameHasBeenSet = false;
283 bool m_sessionIdHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace SageMakerRuntime
288} // namespace Aws
InvokeEndpointRequest & WithEndpointName(EndpointNameT &&value)
InvokeEndpointRequest & WithTargetVariant(TargetVariantT &&value)
InvokeEndpointRequest & WithInferenceId(InferenceIdT &&value)
void SetInferenceComponentName(InferenceComponentNameT &&value)
InvokeEndpointRequest & WithAccept(AcceptT &&value)
InvokeEndpointRequest & WithCustomAttributes(CustomAttributesT &&value)
InvokeEndpointRequest & WithEnableExplanations(EnableExplanationsT &&value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKERRUNTIME_API InvokeEndpointRequest()=default
InvokeEndpointRequest & WithSessionId(SessionIdT &&value)
virtual const char * GetServiceRequestName() const override
InvokeEndpointRequest & WithTargetModel(TargetModelT &&value)
InvokeEndpointRequest & WithTargetContainerHostname(TargetContainerHostnameT &&value)
void SetTargetContainerHostname(TargetContainerHostnameT &&value)
InvokeEndpointRequest & WithInferenceComponentName(InferenceComponentNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String