AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InvokeEndpointResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace SageMakerRuntime {
19namespace Model {
21 public:
22 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult() = default;
23 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(InvokeEndpointResult&&) = default;
24 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult& operator=(InvokeEndpointResult&&) = default;
25 // we delete these because Microsoft doesn't handle move generation correctly
26 // and we therefore don't trust them to get it right here either.
29
32
34
44 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
45 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
46
48
50
53 inline const Aws::String& GetContentType() const { return m_contentType; }
54 template <typename ContentTypeT = Aws::String>
55 void SetContentType(ContentTypeT&& value) {
56 m_contentTypeHasBeenSet = true;
57 m_contentType = std::forward<ContentTypeT>(value);
58 }
59 template <typename ContentTypeT = Aws::String>
60 InvokeEndpointResult& WithContentType(ContentTypeT&& value) {
61 SetContentType(std::forward<ContentTypeT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetInvokedProductionVariant() const { return m_invokedProductionVariant; }
71 template <typename InvokedProductionVariantT = Aws::String>
72 void SetInvokedProductionVariant(InvokedProductionVariantT&& value) {
73 m_invokedProductionVariantHasBeenSet = true;
74 m_invokedProductionVariant = std::forward<InvokedProductionVariantT>(value);
75 }
76 template <typename InvokedProductionVariantT = Aws::String>
77 InvokeEndpointResult& WithInvokedProductionVariant(InvokedProductionVariantT&& value) {
78 SetInvokedProductionVariant(std::forward<InvokedProductionVariantT>(value));
79 return *this;
80 }
82
84
102 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
103 template <typename CustomAttributesT = Aws::String>
104 void SetCustomAttributes(CustomAttributesT&& value) {
105 m_customAttributesHasBeenSet = true;
106 m_customAttributes = std::forward<CustomAttributesT>(value);
107 }
108 template <typename CustomAttributesT = Aws::String>
109 InvokeEndpointResult& WithCustomAttributes(CustomAttributesT&& value) {
110 SetCustomAttributes(std::forward<CustomAttributesT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetNewSessionId() const { return m_newSessionId; }
121 template <typename NewSessionIdT = Aws::String>
122 void SetNewSessionId(NewSessionIdT&& value) {
123 m_newSessionIdHasBeenSet = true;
124 m_newSessionId = std::forward<NewSessionIdT>(value);
125 }
126 template <typename NewSessionIdT = Aws::String>
127 InvokeEndpointResult& WithNewSessionId(NewSessionIdT&& value) {
128 SetNewSessionId(std::forward<NewSessionIdT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetClosedSessionId() const { return m_closedSessionId; }
139 template <typename ClosedSessionIdT = Aws::String>
140 void SetClosedSessionId(ClosedSessionIdT&& value) {
141 m_closedSessionIdHasBeenSet = true;
142 m_closedSessionId = std::forward<ClosedSessionIdT>(value);
143 }
144 template <typename ClosedSessionIdT = Aws::String>
145 InvokeEndpointResult& WithClosedSessionId(ClosedSessionIdT&& value) {
146 SetClosedSessionId(std::forward<ClosedSessionIdT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
160 InvokeEndpointResult& WithRequestId(RequestIdT&& value) {
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 private:
167
168 Aws::String m_contentType;
169
170 Aws::String m_invokedProductionVariant;
171
172 Aws::String m_customAttributes;
173
174 Aws::String m_newSessionId;
175
176 Aws::String m_closedSessionId;
177
178 Aws::String m_requestId;
179 bool m_bodyHasBeenSet = false;
180 bool m_contentTypeHasBeenSet = false;
181 bool m_invokedProductionVariantHasBeenSet = false;
182 bool m_customAttributesHasBeenSet = false;
183 bool m_newSessionIdHasBeenSet = false;
184 bool m_closedSessionIdHasBeenSet = false;
185 bool m_requestIdHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace SageMakerRuntime
190} // 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_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