AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvokeEndpointResult.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace SageMakerRuntime
19{
20namespace Model
21{
23 {
24 public:
25 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult();
26 //We have to define these because Microsoft doesn't auto generate them
27 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(InvokeEndpointResult&&);
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
51 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
52 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
53
55
57
60 inline const Aws::String& GetContentType() const{ return m_contentType; }
61 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
62 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
63 inline void SetContentType(const char* value) { m_contentType.assign(value); }
64 inline InvokeEndpointResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
65 inline InvokeEndpointResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
66 inline InvokeEndpointResult& WithContentType(const char* value) { SetContentType(value); return *this;}
68
70
73 inline const Aws::String& GetInvokedProductionVariant() const{ return m_invokedProductionVariant; }
74 inline void SetInvokedProductionVariant(const Aws::String& value) { m_invokedProductionVariant = value; }
75 inline void SetInvokedProductionVariant(Aws::String&& value) { m_invokedProductionVariant = std::move(value); }
76 inline void SetInvokedProductionVariant(const char* value) { m_invokedProductionVariant.assign(value); }
79 inline InvokeEndpointResult& WithInvokedProductionVariant(const char* value) { SetInvokedProductionVariant(value); return *this;}
81
83
101 inline const Aws::String& GetCustomAttributes() const{ return m_customAttributes; }
102 inline void SetCustomAttributes(const Aws::String& value) { m_customAttributes = value; }
103 inline void SetCustomAttributes(Aws::String&& value) { m_customAttributes = std::move(value); }
104 inline void SetCustomAttributes(const char* value) { m_customAttributes.assign(value); }
105 inline InvokeEndpointResult& WithCustomAttributes(const Aws::String& value) { SetCustomAttributes(value); return *this;}
106 inline InvokeEndpointResult& WithCustomAttributes(Aws::String&& value) { SetCustomAttributes(std::move(value)); return *this;}
107 inline InvokeEndpointResult& WithCustomAttributes(const char* value) { SetCustomAttributes(value); return *this;}
109
111
115 inline const Aws::String& GetNewSessionId() const{ return m_newSessionId; }
116 inline void SetNewSessionId(const Aws::String& value) { m_newSessionId = value; }
117 inline void SetNewSessionId(Aws::String&& value) { m_newSessionId = std::move(value); }
118 inline void SetNewSessionId(const char* value) { m_newSessionId.assign(value); }
119 inline InvokeEndpointResult& WithNewSessionId(const Aws::String& value) { SetNewSessionId(value); return *this;}
120 inline InvokeEndpointResult& WithNewSessionId(Aws::String&& value) { SetNewSessionId(std::move(value)); return *this;}
121 inline InvokeEndpointResult& WithNewSessionId(const char* value) { SetNewSessionId(value); return *this;}
123
125
129 inline const Aws::String& GetClosedSessionId() const{ return m_closedSessionId; }
130 inline void SetClosedSessionId(const Aws::String& value) { m_closedSessionId = value; }
131 inline void SetClosedSessionId(Aws::String&& value) { m_closedSessionId = std::move(value); }
132 inline void SetClosedSessionId(const char* value) { m_closedSessionId.assign(value); }
133 inline InvokeEndpointResult& WithClosedSessionId(const Aws::String& value) { SetClosedSessionId(value); return *this;}
134 inline InvokeEndpointResult& WithClosedSessionId(Aws::String&& value) { SetClosedSessionId(std::move(value)); return *this;}
135 inline InvokeEndpointResult& WithClosedSessionId(const char* value) { SetClosedSessionId(value); return *this;}
137
139
140 inline const Aws::String& GetRequestId() const{ return m_requestId; }
141 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
142 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
143 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
144 inline InvokeEndpointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
145 inline InvokeEndpointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
146 inline InvokeEndpointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
148 private:
149
151
152 Aws::String m_contentType;
153
154 Aws::String m_invokedProductionVariant;
155
156 Aws::String m_customAttributes;
157
158 Aws::String m_newSessionId;
159
160 Aws::String m_closedSessionId;
161
162 Aws::String m_requestId;
163 };
164
165} // namespace Model
166} // namespace SageMakerRuntime
167} // namespace Aws
InvokeEndpointResult & WithRequestId(const Aws::String &value)
InvokeEndpointResult & WithNewSessionId(const Aws::String &value)
InvokeEndpointResult & WithRequestId(const char *value)
InvokeEndpointResult & WithCustomAttributes(const Aws::String &value)
InvokeEndpointResult & WithCustomAttributes(Aws::String &&value)
InvokeEndpointResult & operator=(const InvokeEndpointResult &)=delete
InvokeEndpointResult & WithClosedSessionId(const Aws::String &value)
InvokeEndpointResult & WithInvokedProductionVariant(Aws::String &&value)
InvokeEndpointResult & WithClosedSessionId(const char *value)
InvokeEndpointResult & WithNewSessionId(const char *value)
InvokeEndpointResult & WithClosedSessionId(Aws::String &&value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
InvokeEndpointResult & WithContentType(const char *value)
InvokeEndpointResult & WithCustomAttributes(const char *value)
InvokeEndpointResult & WithNewSessionId(Aws::String &&value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(InvokeEndpointResult &&)
InvokeEndpointResult & WithInvokedProductionVariant(const char *value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
InvokeEndpointResult & WithInvokedProductionVariant(const Aws::String &value)
InvokeEndpointResult & WithRequestId(Aws::String &&value)
InvokeEndpointResult & WithContentType(const Aws::String &value)
AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult & operator=(InvokeEndpointResult &&)
InvokeEndpointResult & WithContentType(Aws::String &&value)
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