AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageDetail.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ecr/model/ImageScanStatus.h>
12#include <aws/ecr/model/ImageScanFindingsSummary.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 ECR
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_ECR_API ImageDetail();
43
44
46
50 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
51 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
52 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
53 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
54 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
55 inline ImageDetail& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
56 inline ImageDetail& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
57 inline ImageDetail& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
59
61
64 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
65 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
66 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
67 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
68 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
69 inline ImageDetail& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
70 inline ImageDetail& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
71 inline ImageDetail& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
73
75
78 inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
79 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
80 inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
81 inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
82 inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
83 inline ImageDetail& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
84 inline ImageDetail& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
85 inline ImageDetail& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
87
89
92 inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
93 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
94 inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
95 inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
96 inline ImageDetail& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}
97 inline ImageDetail& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
98 inline ImageDetail& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
99 inline ImageDetail& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
100 inline ImageDetail& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
102
104
113 inline long long GetImageSizeInBytes() const{ return m_imageSizeInBytes; }
114 inline bool ImageSizeInBytesHasBeenSet() const { return m_imageSizeInBytesHasBeenSet; }
115 inline void SetImageSizeInBytes(long long value) { m_imageSizeInBytesHasBeenSet = true; m_imageSizeInBytes = value; }
116 inline ImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;}
118
120
124 inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; }
125 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
126 inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; }
127 inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); }
128 inline ImageDetail& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;}
129 inline ImageDetail& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;}
131
133
136 inline const ImageScanStatus& GetImageScanStatus() const{ return m_imageScanStatus; }
137 inline bool ImageScanStatusHasBeenSet() const { return m_imageScanStatusHasBeenSet; }
138 inline void SetImageScanStatus(const ImageScanStatus& value) { m_imageScanStatusHasBeenSet = true; m_imageScanStatus = value; }
139 inline void SetImageScanStatus(ImageScanStatus&& value) { m_imageScanStatusHasBeenSet = true; m_imageScanStatus = std::move(value); }
140 inline ImageDetail& WithImageScanStatus(const ImageScanStatus& value) { SetImageScanStatus(value); return *this;}
141 inline ImageDetail& WithImageScanStatus(ImageScanStatus&& value) { SetImageScanStatus(std::move(value)); return *this;}
143
145
148 inline const ImageScanFindingsSummary& GetImageScanFindingsSummary() const{ return m_imageScanFindingsSummary; }
149 inline bool ImageScanFindingsSummaryHasBeenSet() const { return m_imageScanFindingsSummaryHasBeenSet; }
150 inline void SetImageScanFindingsSummary(const ImageScanFindingsSummary& value) { m_imageScanFindingsSummaryHasBeenSet = true; m_imageScanFindingsSummary = value; }
151 inline void SetImageScanFindingsSummary(ImageScanFindingsSummary&& value) { m_imageScanFindingsSummaryHasBeenSet = true; m_imageScanFindingsSummary = std::move(value); }
155
157
160 inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
161 inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
162 inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
163 inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
164 inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
166 inline ImageDetail& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
167 inline ImageDetail& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
169
171
174 inline const Aws::String& GetArtifactMediaType() const{ return m_artifactMediaType; }
175 inline bool ArtifactMediaTypeHasBeenSet() const { return m_artifactMediaTypeHasBeenSet; }
176 inline void SetArtifactMediaType(const Aws::String& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = value; }
177 inline void SetArtifactMediaType(Aws::String&& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = std::move(value); }
178 inline void SetArtifactMediaType(const char* value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType.assign(value); }
179 inline ImageDetail& WithArtifactMediaType(const Aws::String& value) { SetArtifactMediaType(value); return *this;}
180 inline ImageDetail& WithArtifactMediaType(Aws::String&& value) { SetArtifactMediaType(std::move(value)); return *this;}
181 inline ImageDetail& WithArtifactMediaType(const char* value) { SetArtifactMediaType(value); return *this;}
183
185
195 inline const Aws::Utils::DateTime& GetLastRecordedPullTime() const{ return m_lastRecordedPullTime; }
196 inline bool LastRecordedPullTimeHasBeenSet() const { return m_lastRecordedPullTimeHasBeenSet; }
197 inline void SetLastRecordedPullTime(const Aws::Utils::DateTime& value) { m_lastRecordedPullTimeHasBeenSet = true; m_lastRecordedPullTime = value; }
198 inline void SetLastRecordedPullTime(Aws::Utils::DateTime&& value) { m_lastRecordedPullTimeHasBeenSet = true; m_lastRecordedPullTime = std::move(value); }
200 inline ImageDetail& WithLastRecordedPullTime(Aws::Utils::DateTime&& value) { SetLastRecordedPullTime(std::move(value)); return *this;}
202 private:
203
204 Aws::String m_registryId;
205 bool m_registryIdHasBeenSet = false;
206
207 Aws::String m_repositoryName;
208 bool m_repositoryNameHasBeenSet = false;
209
210 Aws::String m_imageDigest;
211 bool m_imageDigestHasBeenSet = false;
212
213 Aws::Vector<Aws::String> m_imageTags;
214 bool m_imageTagsHasBeenSet = false;
215
216 long long m_imageSizeInBytes;
217 bool m_imageSizeInBytesHasBeenSet = false;
218
219 Aws::Utils::DateTime m_imagePushedAt;
220 bool m_imagePushedAtHasBeenSet = false;
221
222 ImageScanStatus m_imageScanStatus;
223 bool m_imageScanStatusHasBeenSet = false;
224
225 ImageScanFindingsSummary m_imageScanFindingsSummary;
226 bool m_imageScanFindingsSummaryHasBeenSet = false;
227
228 Aws::String m_imageManifestMediaType;
229 bool m_imageManifestMediaTypeHasBeenSet = false;
230
231 Aws::String m_artifactMediaType;
232 bool m_artifactMediaTypeHasBeenSet = false;
233
234 Aws::Utils::DateTime m_lastRecordedPullTime;
235 bool m_lastRecordedPullTimeHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace ECR
240} // namespace Aws
bool LastRecordedPullTimeHasBeenSet() const
ImageDetail & WithImagePushedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetImageDigest() const
Definition ImageDetail.h:78
ImageDetail & WithImageTags(Aws::Vector< Aws::String > &&value)
Definition ImageDetail.h:97
const Aws::Vector< Aws::String > & GetImageTags() const
Definition ImageDetail.h:92
bool RepositoryNameHasBeenSet() const
Definition ImageDetail.h:65
const ImageScanStatus & GetImageScanStatus() const
bool ImageSizeInBytesHasBeenSet() const
void SetImageTags(const Aws::Vector< Aws::String > &value)
Definition ImageDetail.h:94
ImageDetail & WithRepositoryName(const char *value)
Definition ImageDetail.h:71
ImageDetail & WithRepositoryName(Aws::String &&value)
Definition ImageDetail.h:70
long long GetImageSizeInBytes() const
void SetRegistryId(Aws::String &&value)
Definition ImageDetail.h:53
ImageDetail & WithImageScanFindingsSummary(const ImageScanFindingsSummary &value)
bool ImageScanStatusHasBeenSet() const
ImageDetail & WithImageSizeInBytes(long long value)
void SetArtifactMediaType(const char *value)
bool ArtifactMediaTypeHasBeenSet() const
const Aws::Utils::DateTime & GetImagePushedAt() const
ImageDetail & WithImageManifestMediaType(const Aws::String &value)
ImageDetail & WithArtifactMediaType(const Aws::String &value)
void SetImageDigest(const Aws::String &value)
Definition ImageDetail.h:80
bool ImageManifestMediaTypeHasBeenSet() const
ImageDetail & WithImagePushedAt(Aws::Utils::DateTime &&value)
void SetImageDigest(const char *value)
Definition ImageDetail.h:82
void SetImageScanFindingsSummary(ImageScanFindingsSummary &&value)
ImageDetail & WithImageScanStatus(ImageScanStatus &&value)
ImageDetail & WithImageDigest(const Aws::String &value)
Definition ImageDetail.h:83
ImageDetail & WithArtifactMediaType(const char *value)
const Aws::String & GetImageManifestMediaType() const
void SetLastRecordedPullTime(const Aws::Utils::DateTime &value)
ImageDetail & WithRepositoryName(const Aws::String &value)
Definition ImageDetail.h:69
ImageDetail & WithImageDigest(Aws::String &&value)
Definition ImageDetail.h:84
ImageDetail & WithImageDigest(const char *value)
Definition ImageDetail.h:85
const Aws::String & GetRepositoryName() const
Definition ImageDetail.h:64
ImageDetail & WithArtifactMediaType(Aws::String &&value)
void SetImageManifestMediaType(Aws::String &&value)
const Aws::Utils::DateTime & GetLastRecordedPullTime() const
void SetArtifactMediaType(const Aws::String &value)
bool ImageScanFindingsSummaryHasBeenSet() const
const Aws::String & GetRegistryId() const
Definition ImageDetail.h:50
ImageDetail & WithLastRecordedPullTime(Aws::Utils::DateTime &&value)
bool RegistryIdHasBeenSet() const
Definition ImageDetail.h:51
void SetImageDigest(Aws::String &&value)
Definition ImageDetail.h:81
ImageDetail & WithImageScanStatus(const ImageScanStatus &value)
AWS_ECR_API ImageDetail(Aws::Utils::Json::JsonView jsonValue)
ImageDetail & WithRegistryId(Aws::String &&value)
Definition ImageDetail.h:56
void SetImageTags(Aws::Vector< Aws::String > &&value)
Definition ImageDetail.h:95
void SetLastRecordedPullTime(Aws::Utils::DateTime &&value)
ImageDetail & WithImageScanFindingsSummary(ImageScanFindingsSummary &&value)
void SetImagePushedAt(const Aws::Utils::DateTime &value)
ImageDetail & WithImageTags(const Aws::Vector< Aws::String > &value)
Definition ImageDetail.h:96
void SetImageManifestMediaType(const char *value)
void SetRegistryId(const Aws::String &value)
Definition ImageDetail.h:52
ImageDetail & WithRegistryId(const char *value)
Definition ImageDetail.h:57
ImageDetail & AddImageTags(const Aws::String &value)
Definition ImageDetail.h:98
ImageDetail & WithLastRecordedPullTime(const Aws::Utils::DateTime &value)
void SetImageScanStatus(ImageScanStatus &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ImageDetail & WithImageManifestMediaType(const char *value)
void SetRepositoryName(Aws::String &&value)
Definition ImageDetail.h:67
void SetImageManifestMediaType(const Aws::String &value)
void SetImageSizeInBytes(long long value)
ImageDetail & WithRegistryId(const Aws::String &value)
Definition ImageDetail.h:55
void SetArtifactMediaType(Aws::String &&value)
ImageDetail & AddImageTags(Aws::String &&value)
Definition ImageDetail.h:99
void SetImageScanStatus(const ImageScanStatus &value)
const Aws::String & GetArtifactMediaType() const
bool ImageDigestHasBeenSet() const
Definition ImageDetail.h:79
const ImageScanFindingsSummary & GetImageScanFindingsSummary() const
void SetRepositoryName(const Aws::String &value)
Definition ImageDetail.h:66
bool ImagePushedAtHasBeenSet() const
void SetRepositoryName(const char *value)
Definition ImageDetail.h:68
ImageDetail & AddImageTags(const char *value)
void SetImageScanFindingsSummary(const ImageScanFindingsSummary &value)
void SetImagePushedAt(Aws::Utils::DateTime &&value)
AWS_ECR_API ImageDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageDetail & WithImageManifestMediaType(Aws::String &&value)
void SetRegistryId(const char *value)
Definition ImageDetail.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue