AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetModelCopyJobResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/ModelCopyJobStatus.h>
9#include <aws/bedrock/model/Tag.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#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Bedrock {
27namespace Model {
29 public:
30 AWS_BEDROCK_API GetModelCopyJobResult() = default;
33
35
38 inline const Aws::String& GetJobArn() const { return m_jobArn; }
39 template <typename JobArnT = Aws::String>
40 void SetJobArn(JobArnT&& value) {
41 m_jobArnHasBeenSet = true;
42 m_jobArn = std::forward<JobArnT>(value);
43 }
44 template <typename JobArnT = Aws::String>
46 SetJobArn(std::forward<JobArnT>(value));
47 return *this;
48 }
50
52
55 inline ModelCopyJobStatus GetStatus() const { return m_status; }
56 inline void SetStatus(ModelCopyJobStatus value) {
57 m_statusHasBeenSet = true;
58 m_status = value;
59 }
61 SetStatus(value);
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
71 template <typename CreationTimeT = Aws::Utils::DateTime>
73 m_creationTimeHasBeenSet = true;
74 m_creationTime = std::forward<CreationTimeT>(value);
75 }
76 template <typename CreationTimeT = Aws::Utils::DateTime>
78 SetCreationTime(std::forward<CreationTimeT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetTargetModelArn() const { return m_targetModelArn; }
88 template <typename TargetModelArnT = Aws::String>
90 m_targetModelArnHasBeenSet = true;
91 m_targetModelArn = std::forward<TargetModelArnT>(value);
92 }
93 template <typename TargetModelArnT = Aws::String>
95 SetTargetModelArn(std::forward<TargetModelArnT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetTargetModelName() const { return m_targetModelName; }
105 template <typename TargetModelNameT = Aws::String>
107 m_targetModelNameHasBeenSet = true;
108 m_targetModelName = std::forward<TargetModelNameT>(value);
109 }
110 template <typename TargetModelNameT = Aws::String>
112 SetTargetModelName(std::forward<TargetModelNameT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
123 template <typename SourceAccountIdT = Aws::String>
125 m_sourceAccountIdHasBeenSet = true;
126 m_sourceAccountId = std::forward<SourceAccountIdT>(value);
127 }
128 template <typename SourceAccountIdT = Aws::String>
130 SetSourceAccountId(std::forward<SourceAccountIdT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetSourceModelArn() const { return m_sourceModelArn; }
140 template <typename SourceModelArnT = Aws::String>
142 m_sourceModelArnHasBeenSet = true;
143 m_sourceModelArn = std::forward<SourceModelArnT>(value);
144 }
145 template <typename SourceModelArnT = Aws::String>
147 SetSourceModelArn(std::forward<SourceModelArnT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetTargetModelKmsKeyArn() const { return m_targetModelKmsKeyArn; }
158 template <typename TargetModelKmsKeyArnT = Aws::String>
160 m_targetModelKmsKeyArnHasBeenSet = true;
161 m_targetModelKmsKeyArn = std::forward<TargetModelKmsKeyArnT>(value);
162 }
163 template <typename TargetModelKmsKeyArnT = Aws::String>
165 SetTargetModelKmsKeyArn(std::forward<TargetModelKmsKeyArnT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Vector<Tag>& GetTargetModelTags() const { return m_targetModelTags; }
175 template <typename TargetModelTagsT = Aws::Vector<Tag>>
177 m_targetModelTagsHasBeenSet = true;
178 m_targetModelTags = std::forward<TargetModelTagsT>(value);
179 }
180 template <typename TargetModelTagsT = Aws::Vector<Tag>>
182 SetTargetModelTags(std::forward<TargetModelTagsT>(value));
183 return *this;
184 }
185 template <typename TargetModelTagsT = Tag>
187 m_targetModelTagsHasBeenSet = true;
188 m_targetModelTags.emplace_back(std::forward<TargetModelTagsT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
198 template <typename FailureMessageT = Aws::String>
200 m_failureMessageHasBeenSet = true;
201 m_failureMessage = std::forward<FailureMessageT>(value);
202 }
203 template <typename FailureMessageT = Aws::String>
205 SetFailureMessage(std::forward<FailureMessageT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetSourceModelName() const { return m_sourceModelName; }
215 template <typename SourceModelNameT = Aws::String>
217 m_sourceModelNameHasBeenSet = true;
218 m_sourceModelName = std::forward<SourceModelNameT>(value);
219 }
220 template <typename SourceModelNameT = Aws::String>
222 SetSourceModelName(std::forward<SourceModelNameT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_jobArn;
245
247
248 Aws::Utils::DateTime m_creationTime{};
249
250 Aws::String m_targetModelArn;
251
252 Aws::String m_targetModelName;
253
254 Aws::String m_sourceAccountId;
255
256 Aws::String m_sourceModelArn;
257
258 Aws::String m_targetModelKmsKeyArn;
259
260 Aws::Vector<Tag> m_targetModelTags;
261
262 Aws::String m_failureMessage;
263
264 Aws::String m_sourceModelName;
265
266 Aws::String m_requestId;
267 Aws::Http::HttpResponseCode m_HttpResponseCode;
268 bool m_jobArnHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_creationTimeHasBeenSet = false;
271 bool m_targetModelArnHasBeenSet = false;
272 bool m_targetModelNameHasBeenSet = false;
273 bool m_sourceAccountIdHasBeenSet = false;
274 bool m_sourceModelArnHasBeenSet = false;
275 bool m_targetModelKmsKeyArnHasBeenSet = false;
276 bool m_targetModelTagsHasBeenSet = false;
277 bool m_failureMessageHasBeenSet = false;
278 bool m_sourceModelNameHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace Bedrock
284} // namespace Aws
void SetTargetModelName(TargetModelNameT &&value)
void SetTargetModelTags(TargetModelTagsT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetSourceAccountId(SourceAccountIdT &&value)
GetModelCopyJobResult & WithStatus(ModelCopyJobStatus value)
GetModelCopyJobResult & WithCreationTime(CreationTimeT &&value)
GetModelCopyJobResult & WithSourceAccountId(SourceAccountIdT &&value)
GetModelCopyJobResult & WithTargetModelTags(TargetModelTagsT &&value)
AWS_BEDROCK_API GetModelCopyJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetModelCopyJobResult & AddTargetModelTags(TargetModelTagsT &&value)
const Aws::Vector< Tag > & GetTargetModelTags() const
GetModelCopyJobResult & WithSourceModelName(SourceModelNameT &&value)
GetModelCopyJobResult & WithSourceModelArn(SourceModelArnT &&value)
void SetSourceModelName(SourceModelNameT &&value)
AWS_BEDROCK_API GetModelCopyJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetModelCopyJobResult & WithTargetModelKmsKeyArn(TargetModelKmsKeyArnT &&value)
GetModelCopyJobResult & WithTargetModelArn(TargetModelArnT &&value)
GetModelCopyJobResult & WithFailureMessage(FailureMessageT &&value)
AWS_BEDROCK_API GetModelCopyJobResult()=default
void SetTargetModelKmsKeyArn(TargetModelKmsKeyArnT &&value)
GetModelCopyJobResult & WithTargetModelName(TargetModelNameT &&value)
GetModelCopyJobResult & WithJobArn(JobArnT &&value)
GetModelCopyJobResult & WithRequestId(RequestIdT &&value)
void SetTargetModelArn(TargetModelArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue