AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
46 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
47 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
48 inline InvokeEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
49 inline InvokeEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
50 inline InvokeEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
52
54
57 inline const Aws::String& GetAccept() const{ return m_accept; }
58 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
59 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
60 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
61 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
62 inline InvokeEndpointRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
63 inline InvokeEndpointRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
64 inline InvokeEndpointRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
66
68
85 inline const Aws::String& GetCustomAttributes() const{ return m_customAttributes; }
86 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
87 inline void SetCustomAttributes(const Aws::String& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
88 inline void SetCustomAttributes(Aws::String&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); }
89 inline void SetCustomAttributes(const char* value) { m_customAttributesHasBeenSet = true; m_customAttributes.assign(value); }
90 inline InvokeEndpointRequest& WithCustomAttributes(const Aws::String& value) { SetCustomAttributes(value); return *this;}
91 inline InvokeEndpointRequest& WithCustomAttributes(Aws::String&& value) { SetCustomAttributes(std::move(value)); return *this;}
92 inline InvokeEndpointRequest& WithCustomAttributes(const char* value) { SetCustomAttributes(value); return *this;}
94
96
99 inline const Aws::String& GetTargetModel() const{ return m_targetModel; }
100 inline bool TargetModelHasBeenSet() const { return m_targetModelHasBeenSet; }
101 inline void SetTargetModel(const Aws::String& value) { m_targetModelHasBeenSet = true; m_targetModel = value; }
102 inline void SetTargetModel(Aws::String&& value) { m_targetModelHasBeenSet = true; m_targetModel = std::move(value); }
103 inline void SetTargetModel(const char* value) { m_targetModelHasBeenSet = true; m_targetModel.assign(value); }
104 inline InvokeEndpointRequest& WithTargetModel(const Aws::String& value) { SetTargetModel(value); return *this;}
105 inline InvokeEndpointRequest& WithTargetModel(Aws::String&& value) { SetTargetModel(std::move(value)); return *this;}
106 inline InvokeEndpointRequest& WithTargetModel(const char* value) { SetTargetModel(value); return *this;}
108
110
119 inline const Aws::String& GetTargetVariant() const{ return m_targetVariant; }
120 inline bool TargetVariantHasBeenSet() const { return m_targetVariantHasBeenSet; }
121 inline void SetTargetVariant(const Aws::String& value) { m_targetVariantHasBeenSet = true; m_targetVariant = value; }
122 inline void SetTargetVariant(Aws::String&& value) { m_targetVariantHasBeenSet = true; m_targetVariant = std::move(value); }
123 inline void SetTargetVariant(const char* value) { m_targetVariantHasBeenSet = true; m_targetVariant.assign(value); }
124 inline InvokeEndpointRequest& WithTargetVariant(const Aws::String& value) { SetTargetVariant(value); return *this;}
125 inline InvokeEndpointRequest& WithTargetVariant(Aws::String&& value) { SetTargetVariant(std::move(value)); return *this;}
126 inline InvokeEndpointRequest& WithTargetVariant(const char* value) { SetTargetVariant(value); return *this;}
128
130
135 inline const Aws::String& GetTargetContainerHostname() const{ return m_targetContainerHostname; }
136 inline bool TargetContainerHostnameHasBeenSet() const { return m_targetContainerHostnameHasBeenSet; }
137 inline void SetTargetContainerHostname(const Aws::String& value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname = value; }
138 inline void SetTargetContainerHostname(Aws::String&& value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname = std::move(value); }
139 inline void SetTargetContainerHostname(const char* value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname.assign(value); }
142 inline InvokeEndpointRequest& WithTargetContainerHostname(const char* value) { SetTargetContainerHostname(value); return *this;}
144
146
152 inline const Aws::String& GetInferenceId() const{ return m_inferenceId; }
153 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
154 inline void SetInferenceId(const Aws::String& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = value; }
155 inline void SetInferenceId(Aws::String&& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = std::move(value); }
156 inline void SetInferenceId(const char* value) { m_inferenceIdHasBeenSet = true; m_inferenceId.assign(value); }
157 inline InvokeEndpointRequest& WithInferenceId(const Aws::String& value) { SetInferenceId(value); return *this;}
158 inline InvokeEndpointRequest& WithInferenceId(Aws::String&& value) { SetInferenceId(std::move(value)); return *this;}
159 inline InvokeEndpointRequest& WithInferenceId(const char* value) { SetInferenceId(value); return *this;}
161
163
170 inline const Aws::String& GetEnableExplanations() const{ return m_enableExplanations; }
171 inline bool EnableExplanationsHasBeenSet() const { return m_enableExplanationsHasBeenSet; }
172 inline void SetEnableExplanations(const Aws::String& value) { m_enableExplanationsHasBeenSet = true; m_enableExplanations = value; }
173 inline void SetEnableExplanations(Aws::String&& value) { m_enableExplanationsHasBeenSet = true; m_enableExplanations = std::move(value); }
174 inline void SetEnableExplanations(const char* value) { m_enableExplanationsHasBeenSet = true; m_enableExplanations.assign(value); }
176 inline InvokeEndpointRequest& WithEnableExplanations(Aws::String&& value) { SetEnableExplanations(std::move(value)); return *this;}
177 inline InvokeEndpointRequest& WithEnableExplanations(const char* value) { SetEnableExplanations(value); return *this;}
179
181
185 inline const Aws::String& GetInferenceComponentName() const{ return m_inferenceComponentName; }
186 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
187 inline void SetInferenceComponentName(const Aws::String& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = value; }
188 inline void SetInferenceComponentName(Aws::String&& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = std::move(value); }
189 inline void SetInferenceComponentName(const char* value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName.assign(value); }
192 inline InvokeEndpointRequest& WithInferenceComponentName(const char* value) { SetInferenceComponentName(value); return *this;}
194
196
209 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
210 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
211 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
212 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
213 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
214 inline InvokeEndpointRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
215 inline InvokeEndpointRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
216 inline InvokeEndpointRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
218 private:
219
220 Aws::String m_endpointName;
221 bool m_endpointNameHasBeenSet = false;
222
223
224 Aws::String m_accept;
225 bool m_acceptHasBeenSet = false;
226
227 Aws::String m_customAttributes;
228 bool m_customAttributesHasBeenSet = false;
229
230 Aws::String m_targetModel;
231 bool m_targetModelHasBeenSet = false;
232
233 Aws::String m_targetVariant;
234 bool m_targetVariantHasBeenSet = false;
235
236 Aws::String m_targetContainerHostname;
237 bool m_targetContainerHostnameHasBeenSet = false;
238
239 Aws::String m_inferenceId;
240 bool m_inferenceIdHasBeenSet = false;
241
242 Aws::String m_enableExplanations;
243 bool m_enableExplanationsHasBeenSet = false;
244
245 Aws::String m_inferenceComponentName;
246 bool m_inferenceComponentNameHasBeenSet = false;
247
248 Aws::String m_sessionId;
249 bool m_sessionIdHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace SageMakerRuntime
254} // namespace Aws
InvokeEndpointRequest & WithTargetModel(Aws::String &&value)
InvokeEndpointRequest & WithTargetModel(const char *value)
InvokeEndpointRequest & WithEndpointName(Aws::String &&value)
InvokeEndpointRequest & WithSessionId(Aws::String &&value)
InvokeEndpointRequest & WithSessionId(const Aws::String &value)
InvokeEndpointRequest & WithCustomAttributes(const Aws::String &value)
InvokeEndpointRequest & WithInferenceComponentName(const char *value)
InvokeEndpointRequest & WithTargetVariant(const Aws::String &value)
InvokeEndpointRequest & WithTargetVariant(const char *value)
InvokeEndpointRequest & WithAccept(const char *value)
InvokeEndpointRequest & WithAccept(Aws::String &&value)
InvokeEndpointRequest & WithEnableExplanations(const Aws::String &value)
InvokeEndpointRequest & WithInferenceComponentName(const Aws::String &value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeEndpointRequest & WithEnableExplanations(const char *value)
InvokeEndpointRequest & WithEndpointName(const char *value)
InvokeEndpointRequest & WithAccept(const Aws::String &value)
InvokeEndpointRequest & WithEnableExplanations(Aws::String &&value)
InvokeEndpointRequest & WithInferenceId(Aws::String &&value)
InvokeEndpointRequest & WithCustomAttributes(Aws::String &&value)
InvokeEndpointRequest & WithTargetVariant(Aws::String &&value)
InvokeEndpointRequest & WithTargetModel(const Aws::String &value)
InvokeEndpointRequest & WithTargetContainerHostname(const char *value)
virtual const char * GetServiceRequestName() const override
InvokeEndpointRequest & WithEndpointName(const Aws::String &value)
InvokeEndpointRequest & WithInferenceComponentName(Aws::String &&value)
InvokeEndpointRequest & WithSessionId(const char *value)
InvokeEndpointRequest & WithInferenceId(const Aws::String &value)
InvokeEndpointRequest & WithCustomAttributes(const char *value)
InvokeEndpointRequest & WithTargetContainerHostname(const Aws::String &value)
InvokeEndpointRequest & WithTargetContainerHostname(Aws::String &&value)
InvokeEndpointRequest & WithInferenceId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String