AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageVersion.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ImageVersionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API ImageVersion();
38 AWS_SAGEMAKER_API ImageVersion(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API ImageVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
48 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
49 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
50 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
51 inline ImageVersion& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
52 inline ImageVersion& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
60 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
61 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
62 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
63 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
64 inline ImageVersion& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
65 inline ImageVersion& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
66 inline ImageVersion& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
68
70
73 inline const Aws::String& GetImageArn() const{ return m_imageArn; }
74 inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
75 inline void SetImageArn(const Aws::String& value) { m_imageArnHasBeenSet = true; m_imageArn = value; }
76 inline void SetImageArn(Aws::String&& value) { m_imageArnHasBeenSet = true; m_imageArn = std::move(value); }
77 inline void SetImageArn(const char* value) { m_imageArnHasBeenSet = true; m_imageArn.assign(value); }
78 inline ImageVersion& WithImageArn(const Aws::String& value) { SetImageArn(value); return *this;}
79 inline ImageVersion& WithImageArn(Aws::String&& value) { SetImageArn(std::move(value)); return *this;}
80 inline ImageVersion& WithImageArn(const char* value) { SetImageArn(value); return *this;}
82
84
87 inline const Aws::String& GetImageVersionArn() const{ return m_imageVersionArn; }
88 inline bool ImageVersionArnHasBeenSet() const { return m_imageVersionArnHasBeenSet; }
89 inline void SetImageVersionArn(const Aws::String& value) { m_imageVersionArnHasBeenSet = true; m_imageVersionArn = value; }
90 inline void SetImageVersionArn(Aws::String&& value) { m_imageVersionArnHasBeenSet = true; m_imageVersionArn = std::move(value); }
91 inline void SetImageVersionArn(const char* value) { m_imageVersionArnHasBeenSet = true; m_imageVersionArn.assign(value); }
92 inline ImageVersion& WithImageVersionArn(const Aws::String& value) { SetImageVersionArn(value); return *this;}
93 inline ImageVersion& WithImageVersionArn(Aws::String&& value) { SetImageVersionArn(std::move(value)); return *this;}
94 inline ImageVersion& WithImageVersionArn(const char* value) { SetImageVersionArn(value); return *this;}
96
98
101 inline const ImageVersionStatus& GetImageVersionStatus() const{ return m_imageVersionStatus; }
102 inline bool ImageVersionStatusHasBeenSet() const { return m_imageVersionStatusHasBeenSet; }
103 inline void SetImageVersionStatus(const ImageVersionStatus& value) { m_imageVersionStatusHasBeenSet = true; m_imageVersionStatus = value; }
104 inline void SetImageVersionStatus(ImageVersionStatus&& value) { m_imageVersionStatusHasBeenSet = true; m_imageVersionStatus = std::move(value); }
106 inline ImageVersion& WithImageVersionStatus(ImageVersionStatus&& value) { SetImageVersionStatus(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
114 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
115 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
116 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
117 inline ImageVersion& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
118 inline ImageVersion& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
120
122
125 inline int GetVersion() const{ return m_version; }
126 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
127 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
128 inline ImageVersion& WithVersion(int value) { SetVersion(value); return *this;}
130 private:
131
132 Aws::Utils::DateTime m_creationTime;
133 bool m_creationTimeHasBeenSet = false;
134
135 Aws::String m_failureReason;
136 bool m_failureReasonHasBeenSet = false;
137
138 Aws::String m_imageArn;
139 bool m_imageArnHasBeenSet = false;
140
141 Aws::String m_imageVersionArn;
142 bool m_imageVersionArnHasBeenSet = false;
143
144 ImageVersionStatus m_imageVersionStatus;
145 bool m_imageVersionStatusHasBeenSet = false;
146
147 Aws::Utils::DateTime m_lastModifiedTime;
148 bool m_lastModifiedTimeHasBeenSet = false;
149
150 int m_version;
151 bool m_versionHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace SageMaker
156} // namespace Aws
ImageVersion & WithFailureReason(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
ImageVersion & WithImageVersionArn(const Aws::String &value)
ImageVersion & WithCreationTime(const Aws::Utils::DateTime &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFailureReason(Aws::String &&value)
ImageVersion & WithVersion(int value)
ImageVersion & WithLastModifiedTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationTime() const
ImageVersion & WithImageArn(const char *value)
void SetImageArn(Aws::String &&value)
const Aws::String & GetImageVersionArn() const
ImageVersion & WithFailureReason(const char *value)
void SetImageArn(const Aws::String &value)
ImageVersion & WithImageArn(Aws::String &&value)
const ImageVersionStatus & GetImageVersionStatus() const
ImageVersion & WithFailureReason(Aws::String &&value)
ImageVersion & WithImageVersionArn(Aws::String &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ImageVersion & WithImageVersionStatus(ImageVersionStatus &&value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetFailureReason(const Aws::String &value)
const Aws::String & GetFailureReason() const
void SetImageVersionArn(const char *value)
void SetFailureReason(const char *value)
ImageVersion & WithImageArn(const Aws::String &value)
void SetImageVersionStatus(const ImageVersionStatus &value)
AWS_SAGEMAKER_API ImageVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageVersion & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetImageVersionStatus(ImageVersionStatus &&value)
void SetImageVersionArn(Aws::String &&value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
void SetImageArn(const char *value)
AWS_SAGEMAKER_API ImageVersion(Aws::Utils::Json::JsonView jsonValue)
void SetImageVersionArn(const Aws::String &value)
ImageVersion & WithImageVersionStatus(const ImageVersionStatus &value)
ImageVersion & WithCreationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetImageArn() const
ImageVersion & WithImageVersionArn(const char *value)
void SetCreationTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue