AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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 int GetRequestTTLSeconds() const { return m_requestTTLSeconds; }
165 inline bool RequestTTLSecondsHasBeenSet() const { return m_requestTTLSecondsHasBeenSet; }
166 inline void SetRequestTTLSeconds(int value) {
167 m_requestTTLSecondsHasBeenSet = true;
168 m_requestTTLSeconds = value;
169 }
172 return *this;
173 }
175
177
181 inline int GetInvocationTimeoutSeconds() const { return m_invocationTimeoutSeconds; }
182 inline bool InvocationTimeoutSecondsHasBeenSet() const { return m_invocationTimeoutSecondsHasBeenSet; }
183 inline void SetInvocationTimeoutSeconds(int value) {
184 m_invocationTimeoutSecondsHasBeenSet = true;
185 m_invocationTimeoutSeconds = value;
186 }
189 return *this;
190 }
192 private:
193 Aws::String m_endpointName;
194
195 Aws::String m_contentType;
196
197 Aws::String m_accept;
198
199 Aws::String m_customAttributes;
200
201 Aws::String m_inferenceId;
202
203 Aws::String m_inputLocation;
204
205 int m_requestTTLSeconds{0};
206
207 int m_invocationTimeoutSeconds{0};
208 bool m_endpointNameHasBeenSet = false;
209 bool m_contentTypeHasBeenSet = false;
210 bool m_acceptHasBeenSet = false;
211 bool m_customAttributesHasBeenSet = false;
212 bool m_inferenceIdHasBeenSet = false;
213 bool m_inputLocationHasBeenSet = false;
214 bool m_requestTTLSecondsHasBeenSet = false;
215 bool m_invocationTimeoutSecondsHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace SageMakerRuntime
220} // namespace Aws
InvokeEndpointAsyncRequest & WithContentType(ContentTypeT &&value)
InvokeEndpointAsyncRequest & WithCustomAttributes(CustomAttributesT &&value)
InvokeEndpointAsyncRequest & WithAccept(AcceptT &&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