AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 inline virtual bool HasEventStreamResponse() const override { return true; }
36 AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
42
47
51 inline void SetEventStreamHandler(const InvokeEndpointWithResponseStreamHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
52
57
58
60
66 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
67 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
68 template<typename EndpointNameT = Aws::String>
69 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
70 template<typename EndpointNameT = Aws::String>
71 InvokeEndpointWithResponseStreamRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetAccept() const { return m_accept; }
79 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
80 template<typename AcceptT = Aws::String>
81 void SetAccept(AcceptT&& value) { m_acceptHasBeenSet = true; m_accept = std::forward<AcceptT>(value); }
82 template<typename AcceptT = Aws::String>
83 InvokeEndpointWithResponseStreamRequest& WithAccept(AcceptT&& value) { SetAccept(std::forward<AcceptT>(value)); return *this;}
85
87
104 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
105 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
106 template<typename CustomAttributesT = Aws::String>
107 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
108 template<typename CustomAttributesT = Aws::String>
109 InvokeEndpointWithResponseStreamRequest& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
111
113
122 inline const Aws::String& GetTargetVariant() const { return m_targetVariant; }
123 inline bool TargetVariantHasBeenSet() const { return m_targetVariantHasBeenSet; }
124 template<typename TargetVariantT = Aws::String>
125 void SetTargetVariant(TargetVariantT&& value) { m_targetVariantHasBeenSet = true; m_targetVariant = std::forward<TargetVariantT>(value); }
126 template<typename TargetVariantT = Aws::String>
127 InvokeEndpointWithResponseStreamRequest& WithTargetVariant(TargetVariantT&& value) { SetTargetVariant(std::forward<TargetVariantT>(value)); return *this;}
129
131
136 inline const Aws::String& GetTargetContainerHostname() const { return m_targetContainerHostname; }
137 inline bool TargetContainerHostnameHasBeenSet() const { return m_targetContainerHostnameHasBeenSet; }
138 template<typename TargetContainerHostnameT = Aws::String>
139 void SetTargetContainerHostname(TargetContainerHostnameT&& value) { m_targetContainerHostnameHasBeenSet = true; m_targetContainerHostname = std::forward<TargetContainerHostnameT>(value); }
140 template<typename TargetContainerHostnameT = Aws::String>
141 InvokeEndpointWithResponseStreamRequest& WithTargetContainerHostname(TargetContainerHostnameT&& value) { SetTargetContainerHostname(std::forward<TargetContainerHostnameT>(value)); return *this;}
143
145
148 inline const Aws::String& GetInferenceId() const { return m_inferenceId; }
149 inline bool InferenceIdHasBeenSet() const { return m_inferenceIdHasBeenSet; }
150 template<typename InferenceIdT = Aws::String>
151 void SetInferenceId(InferenceIdT&& value) { m_inferenceIdHasBeenSet = true; m_inferenceId = std::forward<InferenceIdT>(value); }
152 template<typename InferenceIdT = Aws::String>
153 InvokeEndpointWithResponseStreamRequest& WithInferenceId(InferenceIdT&& value) { SetInferenceId(std::forward<InferenceIdT>(value)); return *this;}
155
157
162 inline const Aws::String& GetInferenceComponentName() const { return m_inferenceComponentName; }
163 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
164 template<typename InferenceComponentNameT = Aws::String>
165 void SetInferenceComponentName(InferenceComponentNameT&& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = std::forward<InferenceComponentNameT>(value); }
166 template<typename InferenceComponentNameT = Aws::String>
167 InvokeEndpointWithResponseStreamRequest& WithInferenceComponentName(InferenceComponentNameT&& value) { SetInferenceComponentName(std::forward<InferenceComponentNameT>(value)); return *this;}
169
171
179 inline const Aws::String& GetSessionId() const { return m_sessionId; }
180 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
181 template<typename SessionIdT = Aws::String>
182 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
183 template<typename SessionIdT = Aws::String>
184 InvokeEndpointWithResponseStreamRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
186 private:
187
188 Aws::String m_endpointName;
189 bool m_endpointNameHasBeenSet = false;
190
191
192 Aws::String m_accept;
193 bool m_acceptHasBeenSet = false;
194
195 Aws::String m_customAttributes;
196 bool m_customAttributesHasBeenSet = false;
197
198 Aws::String m_targetVariant;
199 bool m_targetVariantHasBeenSet = false;
200
201 Aws::String m_targetContainerHostname;
202 bool m_targetContainerHostnameHasBeenSet = false;
203
204 Aws::String m_inferenceId;
205 bool m_inferenceIdHasBeenSet = false;
206
207 Aws::String m_inferenceComponentName;
208 bool m_inferenceComponentNameHasBeenSet = false;
209
210 Aws::String m_sessionId;
211 bool m_sessionIdHasBeenSet = false;
214
215 };
216
217} // namespace Model
218} // namespace SageMakerRuntime
219} // namespace Aws
InvokeEndpointWithResponseStreamRequest & WithSessionId(SessionIdT &&value)
InvokeEndpointWithResponseStreamRequest & WithInferenceId(InferenceIdT &&value)
InvokeEndpointWithResponseStreamRequest & WithCustomAttributes(CustomAttributesT &&value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointWithResponseStreamRequest()=default
InvokeEndpointWithResponseStreamRequest & WithTargetContainerHostname(TargetContainerHostnameT &&value)
void SetEventStreamHandler(const InvokeEndpointWithResponseStreamHandler &value)
InvokeEndpointWithResponseStreamRequest & WithInferenceComponentName(InferenceComponentNameT &&value)
InvokeEndpointWithResponseStreamRequest & WithEndpointName(EndpointNameT &&value)
AWS_SAGEMAKERRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeEndpointWithResponseStreamRequest & WithTargetVariant(TargetVariantT &&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