AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
26 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult(InvokeEndpointResult&&) = default;
27 AWS_SAGEMAKERRUNTIME_API InvokeEndpointResult& operator=(InvokeEndpointResult&&) = default;
28 //we delete these because Microsoft doesn't handle move generation correctly
29 //and we therefore don't trust them to get it right here either.
32
33
36
37
38
40
50 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
51 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
52
54
56
59 inline const Aws::String& GetContentType() const { return m_contentType; }
60 template<typename ContentTypeT = Aws::String>
61 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
62 template<typename ContentTypeT = Aws::String>
63 InvokeEndpointResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetInvokedProductionVariant() const { return m_invokedProductionVariant; }
71 template<typename InvokedProductionVariantT = Aws::String>
72 void SetInvokedProductionVariant(InvokedProductionVariantT&& value) { m_invokedProductionVariantHasBeenSet = true; m_invokedProductionVariant = std::forward<InvokedProductionVariantT>(value); }
73 template<typename InvokedProductionVariantT = Aws::String>
74 InvokeEndpointResult& WithInvokedProductionVariant(InvokedProductionVariantT&& value) { SetInvokedProductionVariant(std::forward<InvokedProductionVariantT>(value)); return *this;}
76
78
96 inline const Aws::String& GetCustomAttributes() const { return m_customAttributes; }
97 template<typename CustomAttributesT = Aws::String>
98 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
99 template<typename CustomAttributesT = Aws::String>
100 InvokeEndpointResult& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
102
104
108 inline const Aws::String& GetNewSessionId() const { return m_newSessionId; }
109 template<typename NewSessionIdT = Aws::String>
110 void SetNewSessionId(NewSessionIdT&& value) { m_newSessionIdHasBeenSet = true; m_newSessionId = std::forward<NewSessionIdT>(value); }
111 template<typename NewSessionIdT = Aws::String>
112 InvokeEndpointResult& WithNewSessionId(NewSessionIdT&& value) { SetNewSessionId(std::forward<NewSessionIdT>(value)); return *this;}
114
116
120 inline const Aws::String& GetClosedSessionId() const { return m_closedSessionId; }
121 template<typename ClosedSessionIdT = Aws::String>
122 void SetClosedSessionId(ClosedSessionIdT&& value) { m_closedSessionIdHasBeenSet = true; m_closedSessionId = std::forward<ClosedSessionIdT>(value); }
123 template<typename ClosedSessionIdT = Aws::String>
124 InvokeEndpointResult& WithClosedSessionId(ClosedSessionIdT&& value) { SetClosedSessionId(std::forward<ClosedSessionIdT>(value)); return *this;}
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template<typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
132 template<typename RequestIdT = Aws::String>
133 InvokeEndpointResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
135 private:
136
138 bool m_bodyHasBeenSet = false;
139
140 Aws::String m_contentType;
141 bool m_contentTypeHasBeenSet = false;
142
143 Aws::String m_invokedProductionVariant;
144 bool m_invokedProductionVariantHasBeenSet = false;
145
146 Aws::String m_customAttributes;
147 bool m_customAttributesHasBeenSet = false;
148
149 Aws::String m_newSessionId;
150 bool m_newSessionIdHasBeenSet = false;
151
152 Aws::String m_closedSessionId;
153 bool m_closedSessionIdHasBeenSet = false;
154
155 Aws::String m_requestId;
156 bool m_requestIdHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SageMakerRuntime
161} // 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