AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InvokeEndpointRequest.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 <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SageMakerRuntime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SAGEMAKERRUNTIME_API InvokeEndpointRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "InvokeEndpoint"; }
32
33 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
35
37
43 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
44 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
45 template<typename EndpointNameT = Aws::String>
46 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
47 template<typename EndpointNameT = Aws::String>
48 InvokeEndpointRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetAccept() const { return m_accept; }
56 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
57 template<typename AcceptT = Aws::String>
58 void SetAccept(AcceptT&& value) { m_acceptHasBeenSet = true; m_accept = std::forward<AcceptT>(value); }
59 template<typename AcceptT = Aws::String>
60 InvokeEndpointRequest& WithAccept(AcceptT&& value) { SetAccept(std::forward<AcceptT>(value)); return *this;}
62
64
81 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
82 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
83 template<typename CustomAttributesT = Aws::String>
84 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
85 template<typename CustomAttributesT = Aws::String>
86 InvokeEndpointRequest& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
88
90
93 inline const Aws::String& GetTargetModel() const { return m_targetModel; }
94 inline bool TargetModelHasBeenSet() const { return m_targetModelHasBeenSet; }
95 template<typename TargetModelT = Aws::String>
96 void SetTargetModel(TargetModelT&& value) { m_targetModelHasBeenSet = true; m_targetModel = std::forward<TargetModelT>(value); }
97 template<typename TargetModelT = Aws::String>
98 InvokeEndpointRequest& WithTargetModel(TargetModelT&& value) { SetTargetModel(std::forward<TargetModelT>(value)); return *this;}
100
102
111 inline const Aws::String& GetTargetVariant() const { return m_targetVariant; }
112 inline bool TargetVariantHasBeenSet() const { return m_targetVariantHasBeenSet; }
113 template<typename TargetVariantT = Aws::String>
114 void SetTargetVariant(TargetVariantT&& value) { m_targetVariantHasBeenSet = true; m_targetVariant = std::forward<TargetVariantT>(value); }
115 template<typename TargetVariantT = Aws::String>
116 InvokeEndpointRequest& WithTargetVariant(TargetVariantT&& value) { SetTargetVariant(std::forward<TargetVariantT>(value)); return *this;}
118
120
125 inline const Aws::String& GetTargetContainerHostname() const { return m_targetContainerHostname; }
126 inline bool TargetContainerHostnameHasBeenSet() const { return m_targetContainerHostnameHasBeenSet; }
127 template<typename TargetContainerHostnameT = Aws::String>
128 void SetTargetContainerHostname(TargetContainerHostnameT&& value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname = std::forward<TargetContainerHostnameT>(value); }
129 template<typename TargetContainerHostnameT = Aws::String>
130 InvokeEndpointRequest& WithTargetContainerHostname(TargetContainerHostnameT&& value) { SetTargetContainerHostname(std::forward<TargetContainerHostnameT>(value)); return *this;}
132
134
140 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
141 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
142 template<typename InferenceIdT = Aws::String>
143 void SetInferenceId(InferenceIdT&& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = std::forward<InferenceIdT>(value); }
144 template<typename InferenceIdT = Aws::String>
145 InvokeEndpointRequest& WithInferenceId(InferenceIdT&& value) { SetInferenceId(std::forward<InferenceIdT>(value)); return *this;}
147
149
156 inline const Aws::String& GetEnableExplanations() const { return m_enableExplanations; }
157 inline bool EnableExplanationsHasBeenSet() const { return m_enableExplanationsHasBeenSet; }
158 template<typename EnableExplanationsT = Aws::String>
159 void SetEnableExplanations(EnableExplanationsT&& value) { m_enableExplanationsHasBeenSet = true; m_enableExplanations = std::forward<EnableExplanationsT>(value); }
160 template<typename EnableExplanationsT = Aws::String>
161 InvokeEndpointRequest& WithEnableExplanations(EnableExplanationsT&& value) { SetEnableExplanations(std::forward<EnableExplanationsT>(value)); return *this;}
163
165
169 inline const Aws::String& GetInferenceComponentName() const { return m_inferenceComponentName; }
170 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
171 template<typename InferenceComponentNameT = Aws::String>
172 void SetInferenceComponentName(InferenceComponentNameT&& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = std::forward<InferenceComponentNameT>(value); }
173 template<typename InferenceComponentNameT = Aws::String>
174 InvokeEndpointRequest& WithInferenceComponentName(InferenceComponentNameT&& value) { SetInferenceComponentName(std::forward<InferenceComponentNameT>(value)); return *this;}
176
178
191 inline const Aws::String& GetSessionId() const { return m_sessionId; }
192 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
193 template<typename SessionIdT = Aws::String>
194 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
195 template<typename SessionIdT = Aws::String>
196 InvokeEndpointRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
198 private:
199
200 Aws::String m_endpointName;
201 bool m_endpointNameHasBeenSet = false;
202
203
204 Aws::String m_accept;
205 bool m_acceptHasBeenSet = false;
206
207 Aws::String m_customAttributes;
208 bool m_customAttributesHasBeenSet = false;
209
210 Aws::String m_targetModel;
211 bool m_targetModelHasBeenSet = false;
212
213 Aws::String m_targetVariant;
214 bool m_targetVariantHasBeenSet = false;
215
216 Aws::String m_targetContainerHostname;
217 bool m_targetContainerHostnameHasBeenSet = false;
218
219 Aws::String m_inferenceId;
220 bool m_inferenceIdHasBeenSet = false;
221
222 Aws::String m_enableExplanations;
223 bool m_enableExplanationsHasBeenSet = false;
224
225 Aws::String m_inferenceComponentName;
226 bool m_inferenceComponentNameHasBeenSet = false;
227
228 Aws::String m_sessionId;
229 bool m_sessionIdHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace SageMakerRuntime
234} // namespace Aws
InvokeEndpointRequest & WithEndpointName(EndpointNameT &&value)
InvokeEndpointRequest & WithTargetVariant(TargetVariantT &&value)
InvokeEndpointRequest & WithInferenceId(InferenceIdT &&value)
void SetInferenceComponentName(InferenceComponentNameT &&value)
InvokeEndpointRequest & WithAccept(AcceptT &&value)
InvokeEndpointRequest & WithCustomAttributes(CustomAttributesT &&value)
InvokeEndpointRequest & WithEnableExplanations(EnableExplanationsT &&value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKERRUNTIME_API InvokeEndpointRequest()=default
InvokeEndpointRequest & WithSessionId(SessionIdT &&value)
virtual const char * GetServiceRequestName() const override
InvokeEndpointRequest & WithTargetModel(TargetModelT &&value)
InvokeEndpointRequest & WithTargetContainerHostname(TargetContainerHostnameT &&value)
void SetTargetContainerHostname(TargetContainerHostnameT &&value)
InvokeEndpointRequest & WithInferenceComponentName(InferenceComponentNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String