AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
InvokeEndpointResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace SageMakerRuntime {
20namespace Model {
22 public:
23 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult() = default;
24 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(InvokeEndpointResult&&) = default;
25 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult& operator=(InvokeEndpointResult&&) = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
33
35
45 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
46 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
47
49
51
54 inline const Aws::String& GetContentType() const { return m_contentType; }
55 template <typename ContentTypeT = Aws::String>
56 void SetContentType(ContentTypeT&& value) {
57 m_contentTypeHasBeenSet = true;
58 m_contentType = std::forward<ContentTypeT>(value);
59 }
60 template <typename ContentTypeT = Aws::String>
61 InvokeEndpointResult& WithContentType(ContentTypeT&& value) {
62 SetContentType(std::forward<ContentTypeT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetInvokedProductionVariant() const { return m_invokedProductionVariant; }
72 template <typename InvokedProductionVariantT = Aws::String>
73 void SetInvokedProductionVariant(InvokedProductionVariantT&& value) {
74 m_invokedProductionVariantHasBeenSet = true;
75 m_invokedProductionVariant = std::forward<InvokedProductionVariantT>(value);
76 }
77 template <typename InvokedProductionVariantT = Aws::String>
78 InvokeEndpointResult& WithInvokedProductionVariant(InvokedProductionVariantT&& value) {
79 SetInvokedProductionVariant(std::forward<InvokedProductionVariantT>(value));
80 return *this;
81 }
83
85
103 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
104 template <typename CustomAttributesT = Aws::String>
105 void SetCustomAttributes(CustomAttributesT&& value) {
106 m_customAttributesHasBeenSet = true;
107 m_customAttributes = std::forward<CustomAttributesT>(value);
108 }
109 template <typename CustomAttributesT = Aws::String>
110 InvokeEndpointResult& WithCustomAttributes(CustomAttributesT&& value) {
111 SetCustomAttributes(std::forward<CustomAttributesT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetNewSessionId() const { return m_newSessionId; }
122 template <typename NewSessionIdT = Aws::String>
123 void SetNewSessionId(NewSessionIdT&& value) {
124 m_newSessionIdHasBeenSet = true;
125 m_newSessionId = std::forward<NewSessionIdT>(value);
126 }
127 template <typename NewSessionIdT = Aws::String>
128 InvokeEndpointResult& WithNewSessionId(NewSessionIdT&& value) {
129 SetNewSessionId(std::forward<NewSessionIdT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetClosedSessionId() const { return m_closedSessionId; }
140 template <typename ClosedSessionIdT = Aws::String>
141 void SetClosedSessionId(ClosedSessionIdT&& value) {
142 m_closedSessionIdHasBeenSet = true;
143 m_closedSessionId = std::forward<ClosedSessionIdT>(value);
144 }
145 template <typename ClosedSessionIdT = Aws::String>
146 InvokeEndpointResult& WithClosedSessionId(ClosedSessionIdT&& value) {
147 SetClosedSessionId(std::forward<ClosedSessionIdT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
161 InvokeEndpointResult& WithRequestId(RequestIdT&& value) {
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
170
171 Aws::String m_contentType;
172
173 Aws::String m_invokedProductionVariant;
174
175 Aws::String m_customAttributes;
176
177 Aws::String m_newSessionId;
178
179 Aws::String m_closedSessionId;
180
181 Aws::String m_requestId;
182 Aws::Http::HttpResponseCode m_HttpResponseCode;
183 bool m_bodyHasBeenSet = false;
184 bool m_contentTypeHasBeenSet = false;
185 bool m_invokedProductionVariantHasBeenSet = false;
186 bool m_customAttributesHasBeenSet = false;
187 bool m_newSessionIdHasBeenSet = false;
188 bool m_closedSessionIdHasBeenSet = false;
189 bool m_requestIdHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace SageMakerRuntime
194} // namespace Aws
void SetInvokedProductionVariant(InvokedProductionVariantT &&value)
InvokeEndpointResult & WithCustomAttributes(CustomAttributesT &&value)
InvokeEndpointResult & WithInvokedProductionVariant(InvokedProductionVariantT &&value)
InvokeEndpointResult & WithRequestId(RequestIdT &&value)
InvokeEndpointResult & WithClosedSessionId(ClosedSessionIdT &&value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(InvokeEndpointResult &&)=default
InvokeEndpointResult & operator=(const InvokeEndpointResult &)=delete
InvokeEndpointResult & WithNewSessionId(NewSessionIdT &&value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
InvokeEndpointResult & WithContentType(ContentTypeT &&value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult & operator=(InvokeEndpointResult &&)=default
InvokeEndpointResult(const InvokeEndpointResult &)=delete
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String