AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
InvokeInferenceRouterAsyncRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker-inference-router-runtime/SageMakerInferenceRouterRuntimeRequest.h>
9#include <aws/sagemaker-inference-router-runtime/SageMakerInferenceRouterRuntime_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SageMakerInferenceRouterRuntime {
15namespace Model {
16
20 public:
21 AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API InvokeInferenceRouterAsyncRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "InvokeInferenceRouterAsync"; }
28
29 AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API Aws::String SerializePayload() const override;
30
31 AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetInferenceRouterName() const { return m_inferenceRouterName; }
38 inline bool InferenceRouterNameHasBeenSet() const { return m_inferenceRouterNameHasBeenSet; }
39 template <typename InferenceRouterNameT = Aws::String>
40 void SetInferenceRouterName(InferenceRouterNameT&& value) {
41 m_inferenceRouterNameHasBeenSet = true;
42 m_inferenceRouterName = std::forward<InferenceRouterNameT>(value);
43 }
44 template <typename InferenceRouterNameT = Aws::String>
46 SetInferenceRouterName(std::forward<InferenceRouterNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetRoutingTargetName() const { return m_routingTargetName; }
57 inline bool RoutingTargetNameHasBeenSet() const { return m_routingTargetNameHasBeenSet; }
58 template <typename RoutingTargetNameT = Aws::String>
59 void SetRoutingTargetName(RoutingTargetNameT&& value) {
60 m_routingTargetNameHasBeenSet = true;
61 m_routingTargetName = std::forward<RoutingTargetNameT>(value);
62 }
63 template <typename RoutingTargetNameT = Aws::String>
65 SetRoutingTargetName(std::forward<RoutingTargetNameT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetContentType() const { return m_contentType; }
76 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
77 template <typename ContentTypeT = Aws::String>
78 void SetContentType(ContentTypeT&& value) {
79 m_contentTypeHasBeenSet = true;
80 m_contentType = std::forward<ContentTypeT>(value);
81 }
82 template <typename ContentTypeT = Aws::String>
84 SetContentType(std::forward<ContentTypeT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetAccept() const { return m_accept; }
95 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
96 template <typename AcceptT = Aws::String>
97 void SetAccept(AcceptT&& value) {
98 m_acceptHasBeenSet = true;
99 m_accept = std::forward<AcceptT>(value);
100 }
101 template <typename AcceptT = Aws::String>
103 SetAccept(std::forward<AcceptT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
116 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
117 template <typename CustomAttributesT = Aws::String>
118 void SetCustomAttributes(CustomAttributesT&& value) {
119 m_customAttributesHasBeenSet = true;
120 m_customAttributes = std::forward<CustomAttributesT>(value);
121 }
122 template <typename CustomAttributesT = Aws::String>
124 SetCustomAttributes(std::forward<CustomAttributesT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
135 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
136 template <typename InferenceIdT = Aws::String>
137 void SetInferenceId(InferenceIdT&& value) {
138 m_inferenceIdHasBeenSet = true;
139 m_inferenceId = std::forward<InferenceIdT>(value);
140 }
141 template <typename InferenceIdT = Aws::String>
143 SetInferenceId(std::forward<InferenceIdT>(value));
144 return *this;
145 }
147
149
156 inline const Aws::String& GetInputLocation() const { return m_inputLocation; }
157 inline bool InputLocationHasBeenSet() const { return m_inputLocationHasBeenSet; }
158 template <typename InputLocationT = Aws::String>
159 void SetInputLocation(InputLocationT&& value) {
160 m_inputLocationHasBeenSet = true;
161 m_inputLocation = std::forward<InputLocationT>(value);
162 }
163 template <typename InputLocationT = Aws::String>
165 SetInputLocation(std::forward<InputLocationT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetS3OutputPathExtension() const { return m_s3OutputPathExtension; }
176 inline bool S3OutputPathExtensionHasBeenSet() const { return m_s3OutputPathExtensionHasBeenSet; }
177 template <typename S3OutputPathExtensionT = Aws::String>
178 void SetS3OutputPathExtension(S3OutputPathExtensionT&& value) {
179 m_s3OutputPathExtensionHasBeenSet = true;
180 m_s3OutputPathExtension = std::forward<S3OutputPathExtensionT>(value);
181 }
182 template <typename S3OutputPathExtensionT = Aws::String>
184 SetS3OutputPathExtension(std::forward<S3OutputPathExtensionT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::String& GetFilename() const { return m_filename; }
195 inline bool FilenameHasBeenSet() const { return m_filenameHasBeenSet; }
196 template <typename FilenameT = Aws::String>
197 void SetFilename(FilenameT&& value) {
198 m_filenameHasBeenSet = true;
199 m_filename = std::forward<FilenameT>(value);
200 }
201 template <typename FilenameT = Aws::String>
203 SetFilename(std::forward<FilenameT>(value));
204 return *this;
205 }
207
209
214 inline int GetRequestTTLSeconds() const { return m_requestTTLSeconds; }
215 inline bool RequestTTLSecondsHasBeenSet() const { return m_requestTTLSecondsHasBeenSet; }
216 inline void SetRequestTTLSeconds(int value) {
217 m_requestTTLSecondsHasBeenSet = true;
218 m_requestTTLSeconds = value;
219 }
222 return *this;
223 }
225
227
232 inline int GetInvocationTimeoutSeconds() const { return m_invocationTimeoutSeconds; }
233 inline bool InvocationTimeoutSecondsHasBeenSet() const { return m_invocationTimeoutSecondsHasBeenSet; }
234 inline void SetInvocationTimeoutSeconds(int value) {
235 m_invocationTimeoutSecondsHasBeenSet = true;
236 m_invocationTimeoutSeconds = value;
237 }
243 private:
244 Aws::String m_inferenceRouterName;
245
246 Aws::String m_routingTargetName;
247
248 Aws::String m_contentType;
249
250 Aws::String m_accept;
251
252 Aws::String m_customAttributes;
253
254 Aws::String m_inferenceId;
255
256 Aws::String m_inputLocation;
257
258 Aws::String m_s3OutputPathExtension;
259
260 Aws::String m_filename;
261
262 int m_requestTTLSeconds{0};
263
264 int m_invocationTimeoutSeconds{0};
265 bool m_inferenceRouterNameHasBeenSet = false;
266 bool m_routingTargetNameHasBeenSet = false;
267 bool m_contentTypeHasBeenSet = false;
268 bool m_acceptHasBeenSet = false;
269 bool m_customAttributesHasBeenSet = false;
270 bool m_inferenceIdHasBeenSet = false;
271 bool m_inputLocationHasBeenSet = false;
272 bool m_s3OutputPathExtensionHasBeenSet = false;
273 bool m_filenameHasBeenSet = false;
274 bool m_requestTTLSecondsHasBeenSet = false;
275 bool m_invocationTimeoutSecondsHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace SageMakerInferenceRouterRuntime
280} // namespace Aws
InvokeInferenceRouterAsyncRequest & WithRoutingTargetName(RoutingTargetNameT &&value)
InvokeInferenceRouterAsyncRequest & WithCustomAttributes(CustomAttributesT &&value)
AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API Aws::String SerializePayload() const override
AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeInferenceRouterAsyncRequest & WithS3OutputPathExtension(S3OutputPathExtensionT &&value)
InvokeInferenceRouterAsyncRequest & WithInferenceRouterName(InferenceRouterNameT &&value)
AWS_SAGEMAKERINFERENCEROUTERRUNTIME_API InvokeInferenceRouterAsyncRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String