AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ModelCopyJobSummary.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/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock {
24namespace Model {
25
35 public:
36 AWS_BEDROCK_API ModelCopyJobSummary() = default;
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetJobArn() const { return m_jobArn; }
46 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
47 template <typename JobArnT = Aws::String>
48 void SetJobArn(JobArnT&& value) {
49 m_jobArnHasBeenSet = true;
50 m_jobArn = std::forward<JobArnT>(value);
51 }
52 template <typename JobArnT = Aws::String>
54 SetJobArn(std::forward<JobArnT>(value));
55 return *this;
56 }
58
60
63 inline ModelCopyJobStatus GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(ModelCopyJobStatus value) {
66 m_statusHasBeenSet = true;
67 m_status = value;
68 }
70 SetStatus(value);
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
80 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
81 template <typename CreationTimeT = Aws::Utils::DateTime>
83 m_creationTimeHasBeenSet = true;
84 m_creationTime = std::forward<CreationTimeT>(value);
85 }
86 template <typename CreationTimeT = Aws::Utils::DateTime>
88 SetCreationTime(std::forward<CreationTimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetTargetModelArn() const { return m_targetModelArn; }
98 inline bool TargetModelArnHasBeenSet() const { return m_targetModelArnHasBeenSet; }
99 template <typename TargetModelArnT = Aws::String>
101 m_targetModelArnHasBeenSet = true;
102 m_targetModelArn = std::forward<TargetModelArnT>(value);
103 }
104 template <typename TargetModelArnT = Aws::String>
106 SetTargetModelArn(std::forward<TargetModelArnT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTargetModelName() const { return m_targetModelName; }
116 inline bool TargetModelNameHasBeenSet() const { return m_targetModelNameHasBeenSet; }
117 template <typename TargetModelNameT = Aws::String>
119 m_targetModelNameHasBeenSet = true;
120 m_targetModelName = std::forward<TargetModelNameT>(value);
121 }
122 template <typename TargetModelNameT = Aws::String>
124 SetTargetModelName(std::forward<TargetModelNameT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
135 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
136 template <typename SourceAccountIdT = Aws::String>
138 m_sourceAccountIdHasBeenSet = true;
139 m_sourceAccountId = std::forward<SourceAccountIdT>(value);
140 }
141 template <typename SourceAccountIdT = Aws::String>
143 SetSourceAccountId(std::forward<SourceAccountIdT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetSourceModelArn() const { return m_sourceModelArn; }
153 inline bool SourceModelArnHasBeenSet() const { return m_sourceModelArnHasBeenSet; }
154 template <typename SourceModelArnT = Aws::String>
156 m_sourceModelArnHasBeenSet = true;
157 m_sourceModelArn = std::forward<SourceModelArnT>(value);
158 }
159 template <typename SourceModelArnT = Aws::String>
161 SetSourceModelArn(std::forward<SourceModelArnT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetTargetModelKmsKeyArn() const { return m_targetModelKmsKeyArn; }
172 inline bool TargetModelKmsKeyArnHasBeenSet() const { return m_targetModelKmsKeyArnHasBeenSet; }
173 template <typename TargetModelKmsKeyArnT = Aws::String>
175 m_targetModelKmsKeyArnHasBeenSet = true;
176 m_targetModelKmsKeyArn = std::forward<TargetModelKmsKeyArnT>(value);
177 }
178 template <typename TargetModelKmsKeyArnT = Aws::String>
180 SetTargetModelKmsKeyArn(std::forward<TargetModelKmsKeyArnT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Vector<Tag>& GetTargetModelTags() const { return m_targetModelTags; }
190 inline bool TargetModelTagsHasBeenSet() const { return m_targetModelTagsHasBeenSet; }
191 template <typename TargetModelTagsT = Aws::Vector<Tag>>
193 m_targetModelTagsHasBeenSet = true;
194 m_targetModelTags = std::forward<TargetModelTagsT>(value);
195 }
196 template <typename TargetModelTagsT = Aws::Vector<Tag>>
198 SetTargetModelTags(std::forward<TargetModelTagsT>(value));
199 return *this;
200 }
201 template <typename TargetModelTagsT = Tag>
203 m_targetModelTagsHasBeenSet = true;
204 m_targetModelTags.emplace_back(std::forward<TargetModelTagsT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
215 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
216 template <typename FailureMessageT = Aws::String>
218 m_failureMessageHasBeenSet = true;
219 m_failureMessage = std::forward<FailureMessageT>(value);
220 }
221 template <typename FailureMessageT = Aws::String>
223 SetFailureMessage(std::forward<FailureMessageT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetSourceModelName() const { return m_sourceModelName; }
233 inline bool SourceModelNameHasBeenSet() const { return m_sourceModelNameHasBeenSet; }
234 template <typename SourceModelNameT = Aws::String>
236 m_sourceModelNameHasBeenSet = true;
237 m_sourceModelName = std::forward<SourceModelNameT>(value);
238 }
239 template <typename SourceModelNameT = Aws::String>
241 SetSourceModelName(std::forward<SourceModelNameT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_jobArn;
247
249
250 Aws::Utils::DateTime m_creationTime{};
251
252 Aws::String m_targetModelArn;
253
254 Aws::String m_targetModelName;
255
256 Aws::String m_sourceAccountId;
257
258 Aws::String m_sourceModelArn;
259
260 Aws::String m_targetModelKmsKeyArn;
261
262 Aws::Vector<Tag> m_targetModelTags;
263
264 Aws::String m_failureMessage;
265
266 Aws::String m_sourceModelName;
267 bool m_jobArnHasBeenSet = false;
268 bool m_statusHasBeenSet = false;
269 bool m_creationTimeHasBeenSet = false;
270 bool m_targetModelArnHasBeenSet = false;
271 bool m_targetModelNameHasBeenSet = false;
272 bool m_sourceAccountIdHasBeenSet = false;
273 bool m_sourceModelArnHasBeenSet = false;
274 bool m_targetModelKmsKeyArnHasBeenSet = false;
275 bool m_targetModelTagsHasBeenSet = false;
276 bool m_failureMessageHasBeenSet = false;
277 bool m_sourceModelNameHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace Bedrock
282} // namespace Aws
void SetSourceModelArn(SourceModelArnT &&value)
void SetTargetModelKmsKeyArn(TargetModelKmsKeyArnT &&value)
const Aws::String & GetTargetModelName() const
void SetTargetModelName(TargetModelNameT &&value)
const Aws::String & GetTargetModelArn() const
void SetFailureMessage(FailureMessageT &&value)
void SetTargetModelArn(TargetModelArnT &&value)
ModelCopyJobSummary & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetSourceAccountId() const
ModelCopyJobSummary & WithFailureMessage(FailureMessageT &&value)
ModelCopyJobSummary & WithSourceModelName(SourceModelNameT &&value)
ModelCopyJobSummary & WithTargetModelTags(TargetModelTagsT &&value)
void SetSourceAccountId(SourceAccountIdT &&value)
const Aws::String & GetSourceModelName() const
ModelCopyJobSummary & WithSourceAccountId(SourceAccountIdT &&value)
const Aws::Vector< Tag > & GetTargetModelTags() const
ModelCopyJobSummary & WithTargetModelKmsKeyArn(TargetModelKmsKeyArnT &&value)
const Aws::String & GetSourceModelArn() const
AWS_BEDROCK_API ModelCopyJobSummary(Aws::Utils::Json::JsonView jsonValue)
ModelCopyJobSummary & WithJobArn(JobArnT &&value)
ModelCopyJobSummary & WithSourceModelArn(SourceModelArnT &&value)
AWS_BEDROCK_API ModelCopyJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelCopyJobSummary & WithTargetModelName(TargetModelNameT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetSourceModelName(SourceModelNameT &&value)
ModelCopyJobSummary & WithStatus(ModelCopyJobStatus value)
const Aws::String & GetFailureMessage() const
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetTargetModelKmsKeyArn() const
void SetStatus(ModelCopyJobStatus value)
ModelCopyJobSummary & WithTargetModelArn(TargetModelArnT &&value)
void SetTargetModelTags(TargetModelTagsT &&value)
ModelCopyJobSummary & AddTargetModelTags(TargetModelTagsT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API ModelCopyJobSummary()=default
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