AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace BedrockRuntime {
25namespace Model {
27 public:
28 AWS_BEDROCKRUNTIME_API GetAsyncInvokeResult() = default;
31
33
36 inline const Aws::String& GetInvocationArn() const { return m_invocationArn; }
37 template <typename InvocationArnT = Aws::String>
39 m_invocationArnHasBeenSet = true;
40 m_invocationArn = std::forward<InvocationArnT>(value);
41 }
42 template <typename InvocationArnT = Aws::String>
44 SetInvocationArn(std::forward<InvocationArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetModelArn() const { return m_modelArn; }
54 template <typename ModelArnT = Aws::String>
55 void SetModelArn(ModelArnT&& value) {
56 m_modelArnHasBeenSet = true;
57 m_modelArn = std::forward<ModelArnT>(value);
58 }
59 template <typename ModelArnT = Aws::String>
61 SetModelArn(std::forward<ModelArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
71 template <typename ClientRequestTokenT = Aws::String>
73 m_clientRequestTokenHasBeenSet = true;
74 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
75 }
76 template <typename ClientRequestTokenT = Aws::String>
78 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
79 return *this;
80 }
82
84
87 inline AsyncInvokeStatus GetStatus() const { return m_status; }
88 inline void SetStatus(AsyncInvokeStatus value) {
89 m_statusHasBeenSet = true;
90 m_status = value;
91 }
93 SetStatus(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
103 template <typename FailureMessageT = Aws::String>
105 m_failureMessageHasBeenSet = true;
106 m_failureMessage = std::forward<FailureMessageT>(value);
107 }
108 template <typename FailureMessageT = Aws::String>
110 SetFailureMessage(std::forward<FailureMessageT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
120 template <typename SubmitTimeT = Aws::Utils::DateTime>
122 m_submitTimeHasBeenSet = true;
123 m_submitTime = std::forward<SubmitTimeT>(value);
124 }
125 template <typename SubmitTimeT = Aws::Utils::DateTime>
127 SetSubmitTime(std::forward<SubmitTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
137 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 m_lastModifiedTimeHasBeenSet = true;
140 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
141 }
142 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
144 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
154 template <typename EndTimeT = Aws::Utils::DateTime>
155 void SetEndTime(EndTimeT&& value) {
156 m_endTimeHasBeenSet = true;
157 m_endTime = std::forward<EndTimeT>(value);
158 }
159 template <typename EndTimeT = Aws::Utils::DateTime>
161 SetEndTime(std::forward<EndTimeT>(value));
162 return *this;
163 }
165
167
170 inline const AsyncInvokeOutputDataConfig& GetOutputDataConfig() const { return m_outputDataConfig; }
171 template <typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
173 m_outputDataConfigHasBeenSet = true;
174 m_outputDataConfig = std::forward<OutputDataConfigT>(value);
175 }
176 template <typename OutputDataConfigT = AsyncInvokeOutputDataConfig>
178 SetOutputDataConfig(std::forward<OutputDataConfigT>(value));
179 return *this;
180 }
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template <typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) {
188 m_requestIdHasBeenSet = true;
189 m_requestId = std::forward<RequestIdT>(value);
190 }
191 template <typename RequestIdT = Aws::String>
193 SetRequestId(std::forward<RequestIdT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_invocationArn;
199
200 Aws::String m_modelArn;
201
202 Aws::String m_clientRequestToken;
203
205
206 Aws::String m_failureMessage;
207
208 Aws::Utils::DateTime m_submitTime{};
209
210 Aws::Utils::DateTime m_lastModifiedTime{};
211
212 Aws::Utils::DateTime m_endTime{};
213
214 AsyncInvokeOutputDataConfig m_outputDataConfig;
215
216 Aws::String m_requestId;
217 bool m_invocationArnHasBeenSet = false;
218 bool m_modelArnHasBeenSet = false;
219 bool m_clientRequestTokenHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221 bool m_failureMessageHasBeenSet = false;
222 bool m_submitTimeHasBeenSet = false;
223 bool m_lastModifiedTimeHasBeenSet = false;
224 bool m_endTimeHasBeenSet = false;
225 bool m_outputDataConfigHasBeenSet = false;
226 bool m_requestIdHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace BedrockRuntime
231} // 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)
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