AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModelCopyJobSummary.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/ModelCopyJobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Bedrock
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_BEDROCK_API ModelCopyJobSummary();
44 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetJobArn() const{ return m_jobArn; }
52 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
53 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
54 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
55 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
56 inline ModelCopyJobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
57 inline ModelCopyJobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
58 inline ModelCopyJobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;}
60
62
65 inline const ModelCopyJobStatus& GetStatus() const{ return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(const ModelCopyJobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
68 inline void SetStatus(ModelCopyJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
69 inline ModelCopyJobSummary& WithStatus(const ModelCopyJobStatus& value) { SetStatus(value); return *this;}
70 inline ModelCopyJobSummary& WithStatus(ModelCopyJobStatus&& value) { SetStatus(std::move(value)); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
78 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
79 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
80 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
81 inline ModelCopyJobSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
82 inline ModelCopyJobSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetTargetModelArn() const{ return m_targetModelArn; }
90 inline bool TargetModelArnHasBeenSet() const { return m_targetModelArnHasBeenSet; }
91 inline void SetTargetModelArn(const Aws::String& value) { m_targetModelArnHasBeenSet = true; m_targetModelArn = value; }
92 inline void SetTargetModelArn(Aws::String&& value) { m_targetModelArnHasBeenSet = true; m_targetModelArn = std::move(value); }
93 inline void SetTargetModelArn(const char* value) { m_targetModelArnHasBeenSet = true; m_targetModelArn.assign(value); }
94 inline ModelCopyJobSummary& WithTargetModelArn(const Aws::String& value) { SetTargetModelArn(value); return *this;}
95 inline ModelCopyJobSummary& WithTargetModelArn(Aws::String&& value) { SetTargetModelArn(std::move(value)); return *this;}
96 inline ModelCopyJobSummary& WithTargetModelArn(const char* value) { SetTargetModelArn(value); return *this;}
98
100
103 inline const Aws::String& GetTargetModelName() const{ return m_targetModelName; }
104 inline bool TargetModelNameHasBeenSet() const { return m_targetModelNameHasBeenSet; }
105 inline void SetTargetModelName(const Aws::String& value) { m_targetModelNameHasBeenSet = true; m_targetModelName = value; }
106 inline void SetTargetModelName(Aws::String&& value) { m_targetModelNameHasBeenSet = true; m_targetModelName = std::move(value); }
107 inline void SetTargetModelName(const char* value) { m_targetModelNameHasBeenSet = true; m_targetModelName.assign(value); }
108 inline ModelCopyJobSummary& WithTargetModelName(const Aws::String& value) { SetTargetModelName(value); return *this;}
109 inline ModelCopyJobSummary& WithTargetModelName(Aws::String&& value) { SetTargetModelName(std::move(value)); return *this;}
110 inline ModelCopyJobSummary& WithTargetModelName(const char* value) { SetTargetModelName(value); return *this;}
112
114
118 inline const Aws::String& GetSourceAccountId() const{ return m_sourceAccountId; }
119 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
120 inline void SetSourceAccountId(const Aws::String& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = value; }
121 inline void SetSourceAccountId(Aws::String&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::move(value); }
122 inline void SetSourceAccountId(const char* value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId.assign(value); }
123 inline ModelCopyJobSummary& WithSourceAccountId(const Aws::String& value) { SetSourceAccountId(value); return *this;}
124 inline ModelCopyJobSummary& WithSourceAccountId(Aws::String&& value) { SetSourceAccountId(std::move(value)); return *this;}
125 inline ModelCopyJobSummary& WithSourceAccountId(const char* value) { SetSourceAccountId(value); return *this;}
127
129
132 inline const Aws::String& GetSourceModelArn() const{ return m_sourceModelArn; }
133 inline bool SourceModelArnHasBeenSet() const { return m_sourceModelArnHasBeenSet; }
134 inline void SetSourceModelArn(const Aws::String& value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn = value; }
135 inline void SetSourceModelArn(Aws::String&& value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn = std::move(value); }
136 inline void SetSourceModelArn(const char* value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn.assign(value); }
137 inline ModelCopyJobSummary& WithSourceModelArn(const Aws::String& value) { SetSourceModelArn(value); return *this;}
138 inline ModelCopyJobSummary& WithSourceModelArn(Aws::String&& value) { SetSourceModelArn(std::move(value)); return *this;}
139 inline ModelCopyJobSummary& WithSourceModelArn(const char* value) { SetSourceModelArn(value); return *this;}
141
143
147 inline const Aws::String& GetTargetModelKmsKeyArn() const{ return m_targetModelKmsKeyArn; }
148 inline bool TargetModelKmsKeyArnHasBeenSet() const { return m_targetModelKmsKeyArnHasBeenSet; }
149 inline void SetTargetModelKmsKeyArn(const Aws::String& value) { m_targetModelKmsKeyArnHasBeenSet = true; m_targetModelKmsKeyArn = value; }
150 inline void SetTargetModelKmsKeyArn(Aws::String&& value) { m_targetModelKmsKeyArnHasBeenSet = true; m_targetModelKmsKeyArn = std::move(value); }
151 inline void SetTargetModelKmsKeyArn(const char* value) { m_targetModelKmsKeyArnHasBeenSet = true; m_targetModelKmsKeyArn.assign(value); }
153 inline ModelCopyJobSummary& WithTargetModelKmsKeyArn(Aws::String&& value) { SetTargetModelKmsKeyArn(std::move(value)); return *this;}
154 inline ModelCopyJobSummary& WithTargetModelKmsKeyArn(const char* value) { SetTargetModelKmsKeyArn(value); return *this;}
156
158
161 inline const Aws::Vector<Tag>& GetTargetModelTags() const{ return m_targetModelTags; }
162 inline bool TargetModelTagsHasBeenSet() const { return m_targetModelTagsHasBeenSet; }
163 inline void SetTargetModelTags(const Aws::Vector<Tag>& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags = value; }
164 inline void SetTargetModelTags(Aws::Vector<Tag>&& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags = std::move(value); }
165 inline ModelCopyJobSummary& WithTargetModelTags(const Aws::Vector<Tag>& value) { SetTargetModelTags(value); return *this;}
166 inline ModelCopyJobSummary& WithTargetModelTags(Aws::Vector<Tag>&& value) { SetTargetModelTags(std::move(value)); return *this;}
167 inline ModelCopyJobSummary& AddTargetModelTags(const Tag& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags.push_back(value); return *this; }
168 inline ModelCopyJobSummary& AddTargetModelTags(Tag&& value) { m_targetModelTagsHasBeenSet = true; m_targetModelTags.push_back(std::move(value)); return *this; }
170
172
176 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
177 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
178 inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
179 inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); }
180 inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
181 inline ModelCopyJobSummary& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
182 inline ModelCopyJobSummary& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
183 inline ModelCopyJobSummary& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
185
187
190 inline const Aws::String& GetSourceModelName() const{ return m_sourceModelName; }
191 inline bool SourceModelNameHasBeenSet() const { return m_sourceModelNameHasBeenSet; }
192 inline void SetSourceModelName(const Aws::String& value) { m_sourceModelNameHasBeenSet = true; m_sourceModelName = value; }
193 inline void SetSourceModelName(Aws::String&& value) { m_sourceModelNameHasBeenSet = true; m_sourceModelName = std::move(value); }
194 inline void SetSourceModelName(const char* value) { m_sourceModelNameHasBeenSet = true; m_sourceModelName.assign(value); }
195 inline ModelCopyJobSummary& WithSourceModelName(const Aws::String& value) { SetSourceModelName(value); return *this;}
196 inline ModelCopyJobSummary& WithSourceModelName(Aws::String&& value) { SetSourceModelName(std::move(value)); return *this;}
197 inline ModelCopyJobSummary& WithSourceModelName(const char* value) { SetSourceModelName(value); return *this;}
199 private:
200
201 Aws::String m_jobArn;
202 bool m_jobArnHasBeenSet = false;
203
204 ModelCopyJobStatus m_status;
205 bool m_statusHasBeenSet = false;
206
207 Aws::Utils::DateTime m_creationTime;
208 bool m_creationTimeHasBeenSet = false;
209
210 Aws::String m_targetModelArn;
211 bool m_targetModelArnHasBeenSet = false;
212
213 Aws::String m_targetModelName;
214 bool m_targetModelNameHasBeenSet = false;
215
216 Aws::String m_sourceAccountId;
217 bool m_sourceAccountIdHasBeenSet = false;
218
219 Aws::String m_sourceModelArn;
220 bool m_sourceModelArnHasBeenSet = false;
221
222 Aws::String m_targetModelKmsKeyArn;
223 bool m_targetModelKmsKeyArnHasBeenSet = false;
224
225 Aws::Vector<Tag> m_targetModelTags;
226 bool m_targetModelTagsHasBeenSet = false;
227
228 Aws::String m_failureMessage;
229 bool m_failureMessageHasBeenSet = false;
230
231 Aws::String m_sourceModelName;
232 bool m_sourceModelNameHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Bedrock
237} // namespace Aws
ModelCopyJobSummary & WithJobArn(Aws::String &&value)
ModelCopyJobSummary & WithSourceAccountId(const Aws::String &value)
const Aws::String & GetTargetModelName() const
const Aws::String & GetTargetModelArn() const
ModelCopyJobSummary & WithCreationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
ModelCopyJobSummary & WithTargetModelKmsKeyArn(const Aws::String &value)
const Aws::String & GetSourceAccountId() const
void SetTargetModelArn(const Aws::String &value)
void SetSourceModelName(const Aws::String &value)
ModelCopyJobSummary & WithTargetModelName(const char *value)
ModelCopyJobSummary & AddTargetModelTags(Tag &&value)
const Aws::String & GetSourceModelName() const
void SetTargetModelKmsKeyArn(const Aws::String &value)
ModelCopyJobSummary & WithTargetModelTags(const Aws::Vector< Tag > &value)
void SetStatus(const ModelCopyJobStatus &value)
const Aws::Vector< Tag > & GetTargetModelTags() const
ModelCopyJobSummary & WithTargetModelName(const Aws::String &value)
void SetTargetModelKmsKeyArn(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetSourceModelArn() const
ModelCopyJobSummary & WithSourceModelArn(const Aws::String &value)
void SetJobArn(const Aws::String &value)
const ModelCopyJobStatus & GetStatus() const
AWS_BEDROCK_API ModelCopyJobSummary(Aws::Utils::Json::JsonView jsonValue)
ModelCopyJobSummary & WithSourceModelName(const Aws::String &value)
ModelCopyJobSummary & WithTargetModelKmsKeyArn(const char *value)
ModelCopyJobSummary & WithJobArn(const char *value)
ModelCopyJobSummary & WithTargetModelKmsKeyArn(Aws::String &&value)
ModelCopyJobSummary & WithStatus(ModelCopyJobStatus &&value)
ModelCopyJobSummary & WithFailureMessage(const Aws::String &value)
ModelCopyJobSummary & WithStatus(const ModelCopyJobStatus &value)
ModelCopyJobSummary & WithJobArn(const Aws::String &value)
void SetTargetModelTags(const Aws::Vector< Tag > &value)
ModelCopyJobSummary & WithSourceModelArn(Aws::String &&value)
AWS_BEDROCK_API ModelCopyJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelCopyJobSummary & WithTargetModelTags(Aws::Vector< Tag > &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ModelCopyJobSummary & WithSourceAccountId(const char *value)
ModelCopyJobSummary & WithTargetModelArn(Aws::String &&value)
ModelCopyJobSummary & WithSourceModelName(Aws::String &&value)
ModelCopyJobSummary & WithSourceModelArn(const char *value)
const Aws::String & GetFailureMessage() const
void SetTargetModelName(const Aws::String &value)
void SetSourceModelArn(const Aws::String &value)
void SetSourceAccountId(const Aws::String &value)
void SetTargetModelTags(Aws::Vector< Tag > &&value)
ModelCopyJobSummary & WithTargetModelName(Aws::String &&value)
ModelCopyJobSummary & WithCreationTime(Aws::Utils::DateTime &&value)
void SetStatus(ModelCopyJobStatus &&value)
const Aws::String & GetTargetModelKmsKeyArn() const
ModelCopyJobSummary & WithFailureMessage(const char *value)
ModelCopyJobSummary & WithTargetModelArn(const char *value)
ModelCopyJobSummary & WithFailureMessage(Aws::String &&value)
ModelCopyJobSummary & WithSourceModelName(const char *value)
ModelCopyJobSummary & WithTargetModelArn(const Aws::String &value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
ModelCopyJobSummary & WithSourceAccountId(Aws::String &&value)
ModelCopyJobSummary & AddTargetModelTags(const Tag &value)
void SetFailureMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue