AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeEndpointWithResponseStreamRequest.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/sagemaker-runtime/SageMakerRuntimeRequest.h>
9#include <aws/sagemaker-runtime/model/InvokeEndpointWithResponseStreamHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/Array.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMakerRuntime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKERRUNTIME_API InvokeEndpointWithResponseStreamRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "InvokeEndpointWithResponseStream"; }
34
35 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
41
45 inline const InvokeEndpointWithResponseStreamHandler& GetEventStreamHandler() const { return m_handler; }
46
50 inline void SetEventStreamHandler(const InvokeEndpointWithResponseStreamHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
51
56
57
59
65 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
66 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
67 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
68 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
69 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
71 inline InvokeEndpointWithResponseStreamRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
72 inline InvokeEndpointWithResponseStreamRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
74
76
79 inline const Aws::String& GetAccept() const{ return m_accept; }
80 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
81 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
82 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
83 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
84 inline InvokeEndpointWithResponseStreamRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
85 inline InvokeEndpointWithResponseStreamRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
86 inline InvokeEndpointWithResponseStreamRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
88
90
107 inline const Aws::String& GetCustomAttributes() const{ return m_customAttributes; }
108 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
109 inline void SetCustomAttributes(const Aws::String& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
110 inline void SetCustomAttributes(Aws::String&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); }
111 inline void SetCustomAttributes(const char* value) { m_customAttributesHasBeenSet = true; m_customAttributes.assign(value); }
114 inline InvokeEndpointWithResponseStreamRequest& WithCustomAttributes(const char* value) { SetCustomAttributes(value); return *this;}
116
118
127 inline const Aws::String& GetTargetVariant() const{ return m_targetVariant; }
128 inline bool TargetVariantHasBeenSet() const { return m_targetVariantHasBeenSet; }
129 inline void SetTargetVariant(const Aws::String& value) { m_targetVariantHasBeenSet = true; m_targetVariant = value; }
130 inline void SetTargetVariant(Aws::String&& value) { m_targetVariantHasBeenSet = true; m_targetVariant = std::move(value); }
131 inline void SetTargetVariant(const char* value) { m_targetVariantHasBeenSet = true; m_targetVariant.assign(value); }
134 inline InvokeEndpointWithResponseStreamRequest& WithTargetVariant(const char* value) { SetTargetVariant(value); return *this;}
136
138
143 inline const Aws::String& GetTargetContainerHostname() const{ return m_targetContainerHostname; }
144 inline bool TargetContainerHostnameHasBeenSet() const { return m_targetContainerHostnameHasBeenSet; }
145 inline void SetTargetContainerHostname(const Aws::String& value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname = value; }
146 inline void SetTargetContainerHostname(Aws::String&& value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname = std::move(value); }
147 inline void SetTargetContainerHostname(const char* value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname.assign(value); }
152
154
157 inline const Aws::String& GetInferenceId() const{ return m_inferenceId; }
158 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
159 inline void SetInferenceId(const Aws::String& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = value; }
160 inline void SetInferenceId(Aws::String&& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = std::move(value); }
161 inline void SetInferenceId(const char* value) { m_inferenceIdHasBeenSet = true; m_inferenceId.assign(value); }
163 inline InvokeEndpointWithResponseStreamRequest& WithInferenceId(Aws::String&& value) { SetInferenceId(std::move(value)); return *this;}
164 inline InvokeEndpointWithResponseStreamRequest& WithInferenceId(const char* value) { SetInferenceId(value); return *this;}
166
168
173 inline const Aws::String& GetInferenceComponentName() const{ return m_inferenceComponentName; }
174 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
175 inline void SetInferenceComponentName(const Aws::String& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = value; }
176 inline void SetInferenceComponentName(Aws::String&& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = std::move(value); }
177 inline void SetInferenceComponentName(const char* value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName.assign(value); }
182
184
192 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
193 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
194 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
195 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
196 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
198 inline InvokeEndpointWithResponseStreamRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
199 inline InvokeEndpointWithResponseStreamRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
201 private:
202
203 Aws::String m_endpointName;
204 bool m_endpointNameHasBeenSet = false;
205
206
207 Aws::String m_accept;
208 bool m_acceptHasBeenSet = false;
209
210 Aws::String m_customAttributes;
211 bool m_customAttributesHasBeenSet = 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_inferenceComponentName;
223 bool m_inferenceComponentNameHasBeenSet = false;
224
225 Aws::String m_sessionId;
226 bool m_sessionIdHasBeenSet = false;
229
230 };
231
232} // namespace Model
233} // namespace SageMakerRuntime
234} // namespace Aws
InvokeEndpointWithResponseStreamRequest & WithTargetContainerHostname(const char *value)
InvokeEndpointWithResponseStreamRequest & WithTargetContainerHostname(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithTargetContainerHostname(const Aws::String &value)
InvokeEndpointWithResponseStreamRequest & WithSessionId(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithInferenceComponentName(const char *value)
InvokeEndpointWithResponseStreamRequest & WithEndpointName(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithAccept(const Aws::String &value)
void SetEventStreamHandler(const InvokeEndpointWithResponseStreamHandler &value)
InvokeEndpointWithResponseStreamRequest & WithTargetVariant(const Aws::String &value)
InvokeEndpointWithResponseStreamRequest & WithCustomAttributes(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithEndpointName(const char *value)
InvokeEndpointWithResponseStreamRequest & WithInferenceId(const Aws::String &value)
InvokeEndpointWithResponseStreamRequest & WithCustomAttributes(const char *value)
InvokeEndpointWithResponseStreamRequest & WithTargetVariant(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithCustomAttributes(const Aws::String &value)
InvokeEndpointWithResponseStreamRequest & WithInferenceId(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithInferenceComponentName(const Aws::String &value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeEndpointWithResponseStreamRequest & WithEndpointName(const Aws::String &value)
InvokeEndpointWithResponseStreamRequest & WithAccept(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithInferenceComponentName(Aws::String &&value)
InvokeEndpointWithResponseStreamRequest & WithTargetVariant(const char *value)
InvokeEndpointWithResponseStreamRequest & WithSessionId(const Aws::String &value)
InvokeEndpointWithResponseStreamRequest & WithEventStreamHandler(const InvokeEndpointWithResponseStreamHandler &value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String