AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
InvokeEndpointAsyncRequest.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 InvokeEndpointAsyncRequest() = 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 "InvokeEndpointAsync"; }
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>
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>
98 SetCustomAttributes(std::forward<CustomAttributesT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
109 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
110 template <typename InferenceIdT = Aws::String>
111 void SetInferenceId(InferenceIdT&& value) {
112 m_inferenceIdHasBeenSet = true;
113 m_inferenceId = std::forward<InferenceIdT>(value);
114 }
115 template <typename InferenceIdT = Aws::String>
117 SetInferenceId(std::forward<InferenceIdT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetInputLocation() const { return m_inputLocation; }
127 inline bool InputLocationHasBeenSet() const { return m_inputLocationHasBeenSet; }
128 template <typename InputLocationT = Aws::String>
129 void SetInputLocation(InputLocationT&& value) {
130 m_inputLocationHasBeenSet = true;
131 m_inputLocation = std::forward<InputLocationT>(value);
132 }
133 template <typename InputLocationT = Aws::String>
135 SetInputLocation(std::forward<InputLocationT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetS3OutputPathExtension() const { return m_s3OutputPathExtension; }
146 inline bool S3OutputPathExtensionHasBeenSet() const { return m_s3OutputPathExtensionHasBeenSet; }
147 template <typename S3OutputPathExtensionT = Aws::String>
148 void SetS3OutputPathExtension(S3OutputPathExtensionT&& value) {
149 m_s3OutputPathExtensionHasBeenSet = true;
150 m_s3OutputPathExtension = std::forward<S3OutputPathExtensionT>(value);
151 }
152 template <typename S3OutputPathExtensionT = Aws::String>
153 InvokeEndpointAsyncRequest& WithS3OutputPathExtension(S3OutputPathExtensionT&& value) {
154 SetS3OutputPathExtension(std::forward<S3OutputPathExtensionT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::String& GetFilename() const { return m_filename; }
166 inline bool FilenameHasBeenSet() const { return m_filenameHasBeenSet; }
167 template <typename FilenameT = Aws::String>
168 void SetFilename(FilenameT&& value) {
169 m_filenameHasBeenSet = true;
170 m_filename = std::forward<FilenameT>(value);
171 }
172 template <typename FilenameT = Aws::String>
174 SetFilename(std::forward<FilenameT>(value));
175 return *this;
176 }
178
180
184 inline int GetRequestTTLSeconds() const { return m_requestTTLSeconds; }
185 inline bool RequestTTLSecondsHasBeenSet() const { return m_requestTTLSecondsHasBeenSet; }
186 inline void SetRequestTTLSeconds(int value) {
187 m_requestTTLSecondsHasBeenSet = true;
188 m_requestTTLSeconds = value;
189 }
192 return *this;
193 }
195
197
201 inline int GetInvocationTimeoutSeconds() const { return m_invocationTimeoutSeconds; }
202 inline bool InvocationTimeoutSecondsHasBeenSet() const { return m_invocationTimeoutSecondsHasBeenSet; }
203 inline void SetInvocationTimeoutSeconds(int value) {
204 m_invocationTimeoutSecondsHasBeenSet = true;
205 m_invocationTimeoutSeconds = value;
206 }
209 return *this;
210 }
212 private:
213 Aws::String m_endpointName;
214
215 Aws::String m_accept;
216
217 Aws::String m_customAttributes;
218
219 Aws::String m_inferenceId;
220
221 Aws::String m_inputLocation;
222
223 Aws::String m_s3OutputPathExtension;
224
225 Aws::String m_filename;
226
227 int m_requestTTLSeconds{0};
228
229 int m_invocationTimeoutSeconds{0};
230
231 bool m_endpointNameHasBeenSet = false;
232 bool m_acceptHasBeenSet = false;
233 bool m_customAttributesHasBeenSet = false;
234 bool m_inferenceIdHasBeenSet = false;
235 bool m_inputLocationHasBeenSet = false;
236 bool m_s3OutputPathExtensionHasBeenSet = false;
237 bool m_filenameHasBeenSet = false;
238 bool m_requestTTLSecondsHasBeenSet = false;
239 bool m_invocationTimeoutSecondsHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace SageMakerRuntime
244} // namespace Aws
InvokeEndpointAsyncRequest & WithCustomAttributes(CustomAttributesT &&value)
InvokeEndpointAsyncRequest & WithS3OutputPathExtension(S3OutputPathExtensionT &&value)
InvokeEndpointAsyncRequest & WithAccept(AcceptT &&value)
InvokeEndpointAsyncRequest & WithFilename(FilenameT &&value)
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