AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InvokeEndpointAsyncRequest.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/sagemaker-runtime/SageMakerRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SageMakerRuntime
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SAGEMAKERRUNTIME_API InvokeEndpointAsyncRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "InvokeEndpointAsync"; }
31
32 AWS_SAGEMAKERRUNTIME_API Aws::String SerializePayload() const override;
33
34 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
44 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
45 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
46 template<typename EndpointNameT = Aws::String>
47 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
48 template<typename EndpointNameT = Aws::String>
49 InvokeEndpointAsyncRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetContentType() const { return m_contentType; }
57 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
58 template<typename ContentTypeT = Aws::String>
59 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
60 template<typename ContentTypeT = Aws::String>
61 InvokeEndpointAsyncRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
63
65
68 inline const Aws::String& GetAccept() const { return m_accept; }
69 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
70 template<typename AcceptT = Aws::String>
71 void SetAccept(AcceptT&& value) { m_acceptHasBeenSet = true; m_accept = std::forward<AcceptT>(value); }
72 template<typename AcceptT = Aws::String>
73 InvokeEndpointAsyncRequest& WithAccept(AcceptT&& value) { SetAccept(std::forward<AcceptT>(value)); return *this;}
75
77
94 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
95 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
96 template<typename CustomAttributesT = Aws::String>
97 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
98 template<typename CustomAttributesT = Aws::String>
99 InvokeEndpointAsyncRequest& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
101
103
107 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
108 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
109 template<typename InferenceIdT = Aws::String>
110 void SetInferenceId(InferenceIdT&& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = std::forward<InferenceIdT>(value); }
111 template<typename InferenceIdT = Aws::String>
112 InvokeEndpointAsyncRequest& WithInferenceId(InferenceIdT&& value) { SetInferenceId(std::forward<InferenceIdT>(value)); return *this;}
114
116
119 inline const Aws::String& GetInputLocation() const { return m_inputLocation; }
120 inline bool InputLocationHasBeenSet() const { return m_inputLocationHasBeenSet; }
121 template<typename InputLocationT = Aws::String>
122 void SetInputLocation(InputLocationT&& value) { m_inputLocationHasBeenSet = true; m_inputLocation = std::forward<InputLocationT>(value); }
123 template<typename InputLocationT = Aws::String>
124 InvokeEndpointAsyncRequest& WithInputLocation(InputLocationT&& value) { SetInputLocation(std::forward<InputLocationT>(value)); return *this;}
126
128
132 inline int GetRequestTTLSeconds() const { return m_requestTTLSeconds; }
133 inline bool RequestTTLSecondsHasBeenSet() const { return m_requestTTLSecondsHasBeenSet; }
134 inline void SetRequestTTLSeconds(int value) { m_requestTTLSecondsHasBeenSet = true; m_requestTTLSeconds = value; }
137
139
143 inline int GetInvocationTimeoutSeconds() const { return m_invocationTimeoutSeconds; }
144 inline bool InvocationTimeoutSecondsHasBeenSet() const { return m_invocationTimeoutSecondsHasBeenSet; }
145 inline void SetInvocationTimeoutSeconds(int value) { m_invocationTimeoutSecondsHasBeenSet = true; m_invocationTimeoutSeconds = value; }
148 private:
149
150 Aws::String m_endpointName;
151 bool m_endpointNameHasBeenSet = false;
152
153 Aws::String m_contentType;
154 bool m_contentTypeHasBeenSet = false;
155
156 Aws::String m_accept;
157 bool m_acceptHasBeenSet = false;
158
159 Aws::String m_customAttributes;
160 bool m_customAttributesHasBeenSet = false;
161
162 Aws::String m_inferenceId;
163 bool m_inferenceIdHasBeenSet = false;
164
165 Aws::String m_inputLocation;
166 bool m_inputLocationHasBeenSet = false;
167
168 int m_requestTTLSeconds{0};
169 bool m_requestTTLSecondsHasBeenSet = false;
170
171 int m_invocationTimeoutSeconds{0};
172 bool m_invocationTimeoutSecondsHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace SageMakerRuntime
177} // 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