AWS SDK for C++  1.9.160
AWS SDK for C++
ImageVersion.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SageMaker
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
47 
51  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
52 
56  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
57 
61  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
62 
66  inline ImageVersion& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
67 
71  inline ImageVersion& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
78 
82  inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
83 
87  inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
88 
92  inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
93 
97  inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
98 
102  inline ImageVersion& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
103 
107  inline ImageVersion& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
108 
112  inline ImageVersion& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
113 
114 
118  inline const Aws::String& GetImageArn() const{ return m_imageArn; }
119 
123  inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
124 
128  inline void SetImageArn(const Aws::String& value) { m_imageArnHasBeenSet = true; m_imageArn = value; }
129 
133  inline void SetImageArn(Aws::String&& value) { m_imageArnHasBeenSet = true; m_imageArn = std::move(value); }
134 
138  inline void SetImageArn(const char* value) { m_imageArnHasBeenSet = true; m_imageArn.assign(value); }
139 
143  inline ImageVersion& WithImageArn(const Aws::String& value) { SetImageArn(value); return *this;}
144 
148  inline ImageVersion& WithImageArn(Aws::String&& value) { SetImageArn(std::move(value)); return *this;}
149 
153  inline ImageVersion& WithImageArn(const char* value) { SetImageArn(value); return *this;}
154 
155 
159  inline const Aws::String& GetImageVersionArn() const{ return m_imageVersionArn; }
160 
164  inline bool ImageVersionArnHasBeenSet() const { return m_imageVersionArnHasBeenSet; }
165 
169  inline void SetImageVersionArn(const Aws::String& value) { m_imageVersionArnHasBeenSet = true; m_imageVersionArn = value; }
170 
174  inline void SetImageVersionArn(Aws::String&& value) { m_imageVersionArnHasBeenSet = true; m_imageVersionArn = std::move(value); }
175 
179  inline void SetImageVersionArn(const char* value) { m_imageVersionArnHasBeenSet = true; m_imageVersionArn.assign(value); }
180 
184  inline ImageVersion& WithImageVersionArn(const Aws::String& value) { SetImageVersionArn(value); return *this;}
185 
189  inline ImageVersion& WithImageVersionArn(Aws::String&& value) { SetImageVersionArn(std::move(value)); return *this;}
190 
194  inline ImageVersion& WithImageVersionArn(const char* value) { SetImageVersionArn(value); return *this;}
195 
196 
200  inline const ImageVersionStatus& GetImageVersionStatus() const{ return m_imageVersionStatus; }
201 
205  inline bool ImageVersionStatusHasBeenSet() const { return m_imageVersionStatusHasBeenSet; }
206 
210  inline void SetImageVersionStatus(const ImageVersionStatus& value) { m_imageVersionStatusHasBeenSet = true; m_imageVersionStatus = value; }
211 
215  inline void SetImageVersionStatus(ImageVersionStatus&& value) { m_imageVersionStatusHasBeenSet = true; m_imageVersionStatus = std::move(value); }
216 
220  inline ImageVersion& WithImageVersionStatus(const ImageVersionStatus& value) { SetImageVersionStatus(value); return *this;}
221 
225  inline ImageVersion& WithImageVersionStatus(ImageVersionStatus&& value) { SetImageVersionStatus(std::move(value)); return *this;}
226 
227 
231  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
232 
236  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
237 
241  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
242 
246  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
247 
251  inline ImageVersion& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
252 
256  inline ImageVersion& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
257 
258 
262  inline int GetVersion() const{ return m_version; }
263 
267  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
268 
272  inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
273 
277  inline ImageVersion& WithVersion(int value) { SetVersion(value); return *this;}
278 
279  private:
280 
281  Aws::Utils::DateTime m_creationTime;
282  bool m_creationTimeHasBeenSet;
283 
284  Aws::String m_failureReason;
285  bool m_failureReasonHasBeenSet;
286 
287  Aws::String m_imageArn;
288  bool m_imageArnHasBeenSet;
289 
290  Aws::String m_imageVersionArn;
291  bool m_imageVersionArnHasBeenSet;
292 
293  ImageVersionStatus m_imageVersionStatus;
294  bool m_imageVersionStatusHasBeenSet;
295 
296  Aws::Utils::DateTime m_lastModifiedTime;
297  bool m_lastModifiedTimeHasBeenSet;
298 
299  int m_version;
300  bool m_versionHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace SageMaker
305 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SageMaker::Model::ImageVersion::SetFailureReason
void SetFailureReason(const char *value)
Definition: ImageVersion.h:97
Aws::SageMaker::Model::ImageVersion::ImageVersionArnHasBeenSet
bool ImageVersionArnHasBeenSet() const
Definition: ImageVersion.h:164
Aws::SageMaker::Model::ImageVersion::WithImageArn
ImageVersion & WithImageArn(const char *value)
Definition: ImageVersion.h:153
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ImageVersion::GetImageVersionArn
const Aws::String & GetImageVersionArn() const
Definition: ImageVersion.h:159
Aws::SageMaker::Model::ImageVersion::SetLastModifiedTime
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: ImageVersion.h:246
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ImageVersion::WithImageVersionArn
ImageVersion & WithImageVersionArn(const Aws::String &value)
Definition: ImageVersion.h:184
Aws::SageMaker::Model::ImageVersion::SetImageVersionStatus
void SetImageVersionStatus(const ImageVersionStatus &value)
Definition: ImageVersion.h:210
Aws::SageMaker::Model::ImageVersion::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ImageVersion.h:267
Aws::SageMaker::Model::ImageVersion::WithVersion
ImageVersion & WithVersion(int value)
Definition: ImageVersion.h:277
Aws::SageMaker::Model::ImageVersion::WithImageArn
ImageVersion & WithImageArn(Aws::String &&value)
Definition: ImageVersion.h:148
Aws::SageMaker::Model::ImageVersion::WithCreationTime
ImageVersion & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: ImageVersion.h:71
Aws::SageMaker::Model::ImageVersion::SetImageVersionArn
void SetImageVersionArn(Aws::String &&value)
Definition: ImageVersion.h:174
DateTime.h
Aws::SageMaker::Model::ImageVersion::LastModifiedTimeHasBeenSet
bool LastModifiedTimeHasBeenSet() const
Definition: ImageVersion.h:236
Aws::SageMaker::Model::ImageVersion::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: ImageVersion.h:61
Aws::SageMaker::Model::ImageVersion::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: ImageVersion.h:51
Aws::SageMaker::Model::ImageVersion::operator=
ImageVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ImageVersion::WithFailureReason
ImageVersion & WithFailureReason(const char *value)
Definition: ImageVersion.h:112
Aws::SageMaker::Model::ImageVersion::SetImageVersionStatus
void SetImageVersionStatus(ImageVersionStatus &&value)
Definition: ImageVersion.h:215
Aws::SageMaker::Model::ImageVersion::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::ImageVersion::SetLastModifiedTime
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: ImageVersion.h:241
Aws::SageMaker::Model::ImageVersion::SetFailureReason
void SetFailureReason(Aws::String &&value)
Definition: ImageVersion.h:92
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ImageVersion::ImageVersion
ImageVersion(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ImageVersion::SetImageArn
void SetImageArn(const char *value)
Definition: ImageVersion.h:138
Aws::SageMaker::Model::ImageVersion::WithLastModifiedTime
ImageVersion & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: ImageVersion.h:251
Aws::SageMaker::Model::ImageVersion::SetImageArn
void SetImageArn(Aws::String &&value)
Definition: ImageVersion.h:133
Aws::SageMaker::Model::ImageVersionStatus
ImageVersionStatus
Definition: ImageVersionStatus.h:17
Aws::SageMaker::Model::ImageVersion::SetFailureReason
void SetFailureReason(const Aws::String &value)
Definition: ImageVersion.h:87
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::ImageVersion::WithImageVersionArn
ImageVersion & WithImageVersionArn(Aws::String &&value)
Definition: ImageVersion.h:189
Aws::SageMaker::Model::ImageVersion::GetImageVersionStatus
const ImageVersionStatus & GetImageVersionStatus() const
Definition: ImageVersion.h:200
Aws::SageMaker::Model::ImageVersion::ImageArnHasBeenSet
bool ImageArnHasBeenSet() const
Definition: ImageVersion.h:123
Aws::SageMaker::Model::ImageVersion::WithImageVersionStatus
ImageVersion & WithImageVersionStatus(ImageVersionStatus &&value)
Definition: ImageVersion.h:225
Aws::SageMaker::Model::ImageVersion::SetVersion
void SetVersion(int value)
Definition: ImageVersion.h:272
Aws::SageMaker::Model::ImageVersion::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: ImageVersion.h:46
Aws::SageMaker::Model::ImageVersion::GetVersion
int GetVersion() const
Definition: ImageVersion.h:262
Aws::SageMaker::Model::ImageVersion::WithImageVersionArn
ImageVersion & WithImageVersionArn(const char *value)
Definition: ImageVersion.h:194
Aws::SageMaker::Model::ImageVersion::SetImageArn
void SetImageArn(const Aws::String &value)
Definition: ImageVersion.h:128
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ImageVersion::GetImageArn
const Aws::String & GetImageArn() const
Definition: ImageVersion.h:118
Aws::SageMaker::Model::ImageVersion::WithFailureReason
ImageVersion & WithFailureReason(Aws::String &&value)
Definition: ImageVersion.h:107
Aws::SageMaker::Model::ImageVersion::WithLastModifiedTime
ImageVersion & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: ImageVersion.h:256
Aws::SageMaker::Model::ImageVersion::ImageVersion
ImageVersion()
Aws::SageMaker::Model::ImageVersion
Definition: ImageVersion.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ImageVersion::WithCreationTime
ImageVersion & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: ImageVersion.h:66
Aws::SageMaker::Model::ImageVersion::WithImageArn
ImageVersion & WithImageArn(const Aws::String &value)
Definition: ImageVersion.h:143
Aws::SageMaker::Model::ImageVersion::WithFailureReason
ImageVersion & WithFailureReason(const Aws::String &value)
Definition: ImageVersion.h:102
Aws::SageMaker::Model::ImageVersion::SetImageVersionArn
void SetImageVersionArn(const char *value)
Definition: ImageVersion.h:179
Aws::SageMaker::Model::ImageVersion::ImageVersionStatusHasBeenSet
bool ImageVersionStatusHasBeenSet() const
Definition: ImageVersion.h:205
Aws::SageMaker::Model::ImageVersion::GetFailureReason
const Aws::String & GetFailureReason() const
Definition: ImageVersion.h:77
Aws::SageMaker::Model::ImageVersion::SetImageVersionArn
void SetImageVersionArn(const Aws::String &value)
Definition: ImageVersion.h:169
Aws::SageMaker::Model::ImageVersion::FailureReasonHasBeenSet
bool FailureReasonHasBeenSet() const
Definition: ImageVersion.h:82
Aws::SageMaker::Model::ImageVersion::WithImageVersionStatus
ImageVersion & WithImageVersionStatus(const ImageVersionStatus &value)
Definition: ImageVersion.h:220
ImageVersionStatus.h
Aws::SageMaker::Model::ImageVersion::GetLastModifiedTime
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: ImageVersion.h:231
Aws::SageMaker::Model::ImageVersion::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: ImageVersion.h:56