AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
InvokeEndpointAsyncRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker-runtime/SageMakerRuntimeRequest.h>
9#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SageMakerRuntime {
15namespace Model {
16
20 public:
21 AWS_SAGEMAKERRUNTIME_API InvokeEndpointAsyncRequest() = 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 "InvokeEndpointAsync"; }
28
29 AWS_SAGEMAKERRUNTIME_API Aws::String SerializePayload() const override;
30
31 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
40 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
41 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
42 template <typename EndpointNameT = Aws::String>
43 void SetEndpointName(EndpointNameT&& value) {
44 m_endpointNameHasBeenSet = true;
45 m_endpointName = std::forward<EndpointNameT>(value);
46 }
47 template <typename EndpointNameT = Aws::String>
49 SetEndpointName(std::forward<EndpointNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContentType() const { return m_contentType; }
59 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
60 template <typename ContentTypeT = Aws::String>
61 void SetContentType(ContentTypeT&& value) {
62 m_contentTypeHasBeenSet = true;
63 m_contentType = std::forward<ContentTypeT>(value);
64 }
65 template <typename ContentTypeT = Aws::String>
67 SetContentType(std::forward<ContentTypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAccept() const { return m_accept; }
77 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
78 template <typename AcceptT = Aws::String>
79 void SetAccept(AcceptT&& value) {
80 m_acceptHasBeenSet = true;
81 m_accept = std::forward<AcceptT>(value);
82 }
83 template <typename AcceptT = Aws::String>
85 SetAccept(std::forward<AcceptT>(value));
86 return *this;
87 }
89
91
108 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
109 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
110 template <typename CustomAttributesT = Aws::String>
111 void SetCustomAttributes(CustomAttributesT&& value) {
112 m_customAttributesHasBeenSet = true;
113 m_customAttributes = std::forward<CustomAttributesT>(value);
114 }
115 template <typename CustomAttributesT = Aws::String>
117 SetCustomAttributes(std::forward<CustomAttributesT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
128 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
129 template <typename InferenceIdT = Aws::String>
130 void SetInferenceId(InferenceIdT&& value) {
131 m_inferenceIdHasBeenSet = true;
132 m_inferenceId = std::forward<InferenceIdT>(value);
133 }
134 template <typename InferenceIdT = Aws::String>
136 SetInferenceId(std::forward<InferenceIdT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetInputLocation() const { return m_inputLocation; }
146 inline bool InputLocationHasBeenSet() const { return m_inputLocationHasBeenSet; }
147 template <typename InputLocationT = Aws::String>
148 void SetInputLocation(InputLocationT&& value) {
149 m_inputLocationHasBeenSet = true;
150 m_inputLocation = std::forward<InputLocationT>(value);
151 }
152 template <typename InputLocationT = Aws::String>
154 SetInputLocation(std::forward<InputLocationT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetS3OutputPathExtension() const { return m_s3OutputPathExtension; }
165 inline bool S3OutputPathExtensionHasBeenSet() const { return m_s3OutputPathExtensionHasBeenSet; }
166 template <typename S3OutputPathExtensionT = Aws::String>
167 void SetS3OutputPathExtension(S3OutputPathExtensionT&& value) {
168 m_s3OutputPathExtensionHasBeenSet = true;
169 m_s3OutputPathExtension = std::forward<S3OutputPathExtensionT>(value);
170 }
171 template <typename S3OutputPathExtensionT = Aws::String>
172 InvokeEndpointAsyncRequest& WithS3OutputPathExtension(S3OutputPathExtensionT&& value) {
173 SetS3OutputPathExtension(std::forward<S3OutputPathExtensionT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::String& GetFilename() const { return m_filename; }
185 inline bool FilenameHasBeenSet() const { return m_filenameHasBeenSet; }
186 template <typename FilenameT = Aws::String>
187 void SetFilename(FilenameT&& value) {
188 m_filenameHasBeenSet = true;
189 m_filename = std::forward<FilenameT>(value);
190 }
191 template <typename FilenameT = Aws::String>
193 SetFilename(std::forward<FilenameT>(value));
194 return *this;
195 }
197
199
203 inline int GetRequestTTLSeconds() const { return m_requestTTLSeconds; }
204 inline bool RequestTTLSecondsHasBeenSet() const { return m_requestTTLSecondsHasBeenSet; }
205 inline void SetRequestTTLSeconds(int value) {
206 m_requestTTLSecondsHasBeenSet = true;
207 m_requestTTLSeconds = value;
208 }
211 return *this;
212 }
214
216
220 inline int GetInvocationTimeoutSeconds() const { return m_invocationTimeoutSeconds; }
221 inline bool InvocationTimeoutSecondsHasBeenSet() const { return m_invocationTimeoutSecondsHasBeenSet; }
222 inline void SetInvocationTimeoutSeconds(int value) {
223 m_invocationTimeoutSecondsHasBeenSet = true;
224 m_invocationTimeoutSeconds = value;
225 }
228 return *this;
229 }
231 private:
232 Aws::String m_endpointName;
233
234 Aws::String m_contentType;
235
236 Aws::String m_accept;
237
238 Aws::String m_customAttributes;
239
240 Aws::String m_inferenceId;
241
242 Aws::String m_inputLocation;
243
244 Aws::String m_s3OutputPathExtension;
245
246 Aws::String m_filename;
247
248 int m_requestTTLSeconds{0};
249
250 int m_invocationTimeoutSeconds{0};
251 bool m_endpointNameHasBeenSet = false;
252 bool m_contentTypeHasBeenSet = false;
253 bool m_acceptHasBeenSet = false;
254 bool m_customAttributesHasBeenSet = false;
255 bool m_inferenceIdHasBeenSet = false;
256 bool m_inputLocationHasBeenSet = false;
257 bool m_s3OutputPathExtensionHasBeenSet = false;
258 bool m_filenameHasBeenSet = false;
259 bool m_requestTTLSecondsHasBeenSet = false;
260 bool m_invocationTimeoutSecondsHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace SageMakerRuntime
265} // namespace Aws
InvokeEndpointAsyncRequest & WithContentType(ContentTypeT &&value)
InvokeEndpointAsyncRequest & WithCustomAttributes(CustomAttributesT &&value)
InvokeEndpointAsyncRequest & WithS3OutputPathExtension(S3OutputPathExtensionT &&value)
InvokeEndpointAsyncRequest & WithAccept(AcceptT &&value)
InvokeEndpointAsyncRequest & WithFilename(FilenameT &&value)
AWS_SAGEMAKERRUNTIME_API Aws::String SerializePayload() const override
InvokeEndpointAsyncRequest & WithEndpointName(EndpointNameT &&value)
InvokeEndpointAsyncRequest & WithInputLocation(InputLocationT &&value)
InvokeEndpointAsyncRequest & WithInvocationTimeoutSeconds(int value)
InvokeEndpointAsyncRequest & WithInferenceId(InferenceIdT &&value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKERRUNTIME_API InvokeEndpointAsyncRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String