AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
GetAsyncInvokeResult.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/AsyncInvokeOutputDataConfig.h>
9#include <aws/bedrock-runtime/model/AsyncInvokeStatus.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace BedrockRuntime {
26namespace Model {
28 public:
29 AWS_BEDROCKRUNTIME_API GetAsyncInvokeResult() = default;
32
34
37 inline const Aws::String& GetInvocationArn() const { return m_invocationArn; }
38 template <typename InvocationArnT = Aws::String>
40 m_invocationArnHasBeenSet = true;
41 m_invocationArn = std::forward<InvocationArnT>(value);
42 }
43 template <typename InvocationArnT = Aws::String>
45 SetInvocationArn(std::forward<InvocationArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetModelArn() const { return m_modelArn; }
55 template <typename ModelArnT = Aws::String>
56 void SetModelArn(ModelArnT&& value) {
57 m_modelArnHasBeenSet = true;
58 m_modelArn = std::forward<ModelArnT>(value);
59 }
60 template <typename ModelArnT = Aws::String>
62 SetModelArn(std::forward<ModelArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
72 template <typename ClientRequestTokenT = Aws::String>
74 m_clientRequestTokenHasBeenSet = true;
75 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
76 }
77 template <typename ClientRequestTokenT = Aws::String>
79 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
80 return *this;
81 }
83
85
88 inline AsyncInvokeStatus GetStatus() const { return m_status; }
89 inline void SetStatus(AsyncInvokeStatus value) {
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
104 template <typename FailureMessageT = Aws::String>
106 m_failureMessageHasBeenSet = true;
107 m_failureMessage = std::forward<FailureMessageT>(value);
108 }
109 template <typename FailureMessageT = Aws::String>
111 SetFailureMessage(std::forward<FailureMessageT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
121 template <typename SubmitTimeT = Aws::Utils::DateTime>
123 m_submitTimeHasBeenSet = true;
124 m_submitTime = std::forward<SubmitTimeT>(value);
125 }
126 template <typename SubmitTimeT = Aws::Utils::DateTime>
128 SetSubmitTime(std::forward<SubmitTimeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 m_lastModifiedTimeHasBeenSet = true;
141 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
142 }
143 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
145 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
155 template <typename EndTimeT = Aws::Utils::DateTime>
156 void SetEndTime(EndTimeT&& value) {
157 m_endTimeHasBeenSet = true;
158 m_endTime = std::forward<EndTimeT>(value);
159 }
160 template <typename EndTimeT = Aws::Utils::DateTime>
162 SetEndTime(std::forward<EndTimeT>(value));
163 return *this;
164 }
166
168
171 inline const AsyncInvokeOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
172 template <typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
174 m_outputDataConfigHasBeenSet = true;
175 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
176 }
177 template <typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
179 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
180 return *this;
181 }
183
185
186 inline const Aws::String& GetRequestId() const { return m_requestId; }
187 template <typename RequestIdT = Aws::String>
188 void SetRequestId(RequestIdT&& value) {
189 m_requestIdHasBeenSet = true;
190 m_requestId = std::forward<RequestIdT>(value);
191 }
192 template <typename RequestIdT = Aws::String>
194 SetRequestId(std::forward<RequestIdT>(value));
195 return *this;
196 }
198 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
199
200 private:
201 Aws::String m_invocationArn;
202
203 Aws::String m_modelArn;
204
205 Aws::String m_clientRequestToken;
206
208
209 Aws::String m_failureMessage;
210
211 Aws::Utils::DateTime m_submitTime{};
212
213 Aws::Utils::DateTime m_lastModifiedTime{};
214
215 Aws::Utils::DateTime m_endTime{};
216
217 AsyncInvokeOutputDataConfig m_outputDataConfig;
218
219 Aws::String m_requestId;
220 Aws::Http::HttpResponseCode m_HttpResponseCode;
221 bool m_invocationArnHasBeenSet = false;
222 bool m_modelArnHasBeenSet = false;
223 bool m_clientRequestTokenHasBeenSet = false;
224 bool m_statusHasBeenSet = false;
225 bool m_failureMessageHasBeenSet = false;
226 bool m_submitTimeHasBeenSet = false;
227 bool m_lastModifiedTimeHasBeenSet = false;
228 bool m_endTimeHasBeenSet = false;
229 bool m_outputDataConfigHasBeenSet = false;
230 bool m_requestIdHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace BedrockRuntime
235} // namespace Aws
GetAsyncInvokeResult & WithStatus(AsyncInvokeStatus value)
AWS_BEDROCKRUNTIME_API GetAsyncInvokeResult()=default
AWS_BEDROCKRUNTIME_API GetAsyncInvokeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_BEDROCKRUNTIME_API GetAsyncInvokeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAsyncInvokeResult & WithFailureMessage(FailureMessageT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAsyncInvokeResult & WithModelArn(ModelArnT &&value)
GetAsyncInvokeResult & WithRequestId(RequestIdT &&value)
GetAsyncInvokeResult & WithSubmitTime(SubmitTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetAsyncInvokeResult & WithInvocationArn(InvocationArnT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Utils::DateTime & GetSubmitTime() const
GetAsyncInvokeResult & WithClientRequestToken(ClientRequestTokenT &&value)
GetAsyncInvokeResult & WithOutputDataConfig(OutputDataConfigT &&value)
GetAsyncInvokeResult & WithEndTime(EndTimeT &&value)
GetAsyncInvokeResult & WithLastModifiedTime(LastModifiedTimeT &&value)
const AsyncInvokeOutputDataConfig & GetOutputDataConfig() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue