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-public/ECRPublic_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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECRPublic
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECRPUBLIC_API ImageDetail();
38 AWS_ECRPUBLIC_API ImageDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ECRPUBLIC_API ImageDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
49 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
50 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
51 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
52 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
53 inline ImageDetail& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
54 inline ImageDetail& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
55 inline ImageDetail& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
57
59
62 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
63 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
64 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
65 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
66 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
67 inline ImageDetail& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
68 inline ImageDetail& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
69 inline ImageDetail& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
71
73
76 inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
77 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
78 inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
79 inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
80 inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
81 inline ImageDetail& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
82 inline ImageDetail& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
83 inline ImageDetail& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
85
87
90 inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
91 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
92 inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
93 inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
94 inline ImageDetail& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}
95 inline ImageDetail& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
96 inline ImageDetail& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
97 inline ImageDetail& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
98 inline ImageDetail& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
100
102
111 inline long long GetImageSizeInBytes() const{ return m_imageSizeInBytes; }
112 inline bool ImageSizeInBytesHasBeenSet() const { return m_imageSizeInBytesHasBeenSet; }
113 inline void SetImageSizeInBytes(long long value) { m_imageSizeInBytesHasBeenSet = true; m_imageSizeInBytes = value; }
114 inline ImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;}
116
118
122 inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; }
123 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
124 inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; }
125 inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); }
126 inline ImageDetail& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;}
127 inline ImageDetail& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;}
129
131
134 inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
135 inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
136 inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
137 inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
138 inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
140 inline ImageDetail& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
141 inline ImageDetail& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
143
145
148 inline const Aws::String& GetArtifactMediaType() const{ return m_artifactMediaType; }
149 inline bool ArtifactMediaTypeHasBeenSet() const { return m_artifactMediaTypeHasBeenSet; }
150 inline void SetArtifactMediaType(const Aws::String& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = value; }
151 inline void SetArtifactMediaType(Aws::String&& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = std::move(value); }
152 inline void SetArtifactMediaType(const char* value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType.assign(value); }
153 inline ImageDetail& WithArtifactMediaType(const Aws::String& value) { SetArtifactMediaType(value); return *this;}
154 inline ImageDetail& WithArtifactMediaType(Aws::String&& value) { SetArtifactMediaType(std::move(value)); return *this;}
155 inline ImageDetail& WithArtifactMediaType(const char* value) { SetArtifactMediaType(value); return *this;}
157 private:
158
159 Aws::String m_registryId;
160 bool m_registryIdHasBeenSet = false;
161
162 Aws::String m_repositoryName;
163 bool m_repositoryNameHasBeenSet = false;
164
165 Aws::String m_imageDigest;
166 bool m_imageDigestHasBeenSet = false;
167
168 Aws::Vector<Aws::String> m_imageTags;
169 bool m_imageTagsHasBeenSet = false;
170
171 long long m_imageSizeInBytes;
172 bool m_imageSizeInBytesHasBeenSet = false;
173
174 Aws::Utils::DateTime m_imagePushedAt;
175 bool m_imagePushedAtHasBeenSet = false;
176
177 Aws::String m_imageManifestMediaType;
178 bool m_imageManifestMediaTypeHasBeenSet = false;
179
180 Aws::String m_artifactMediaType;
181 bool m_artifactMediaTypeHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace ECRPublic
186} // namespace Aws
ImageDetail & WithImageDigest(Aws::String &&value)
Definition ImageDetail.h:82
const Aws::String & GetRepositoryName() const
Definition ImageDetail.h:62
ImageDetail & AddImageTags(const Aws::String &value)
Definition ImageDetail.h:96
void SetRepositoryName(const Aws::String &value)
Definition ImageDetail.h:64
void SetImagePushedAt(const Aws::Utils::DateTime &value)
ImageDetail & WithImageManifestMediaType(const char *value)
void SetImageManifestMediaType(const char *value)
void SetImagePushedAt(Aws::Utils::DateTime &&value)
void SetImageManifestMediaType(Aws::String &&value)
void SetRegistryId(const char *value)
Definition ImageDetail.h:52
ImageDetail & WithImageDigest(const Aws::String &value)
Definition ImageDetail.h:81
ImageDetail & WithImageTags(const Aws::Vector< Aws::String > &value)
Definition ImageDetail.h:94
ImageDetail & AddImageTags(const char *value)
Definition ImageDetail.h:98
const Aws::String & GetImageManifestMediaType() const
void SetRegistryId(Aws::String &&value)
Definition ImageDetail.h:51
const Aws::String & GetImageDigest() const
Definition ImageDetail.h:76
const Aws::Utils::DateTime & GetImagePushedAt() const
void SetRegistryId(const Aws::String &value)
Definition ImageDetail.h:50
void SetRepositoryName(const char *value)
Definition ImageDetail.h:66
ImageDetail & AddImageTags(Aws::String &&value)
Definition ImageDetail.h:97
ImageDetail & WithRepositoryName(const char *value)
Definition ImageDetail.h:69
const Aws::String & GetRegistryId() const
Definition ImageDetail.h:48
ImageDetail & WithImageTags(Aws::Vector< Aws::String > &&value)
Definition ImageDetail.h:95
ImageDetail & WithImagePushedAt(const Aws::Utils::DateTime &value)
void SetImageSizeInBytes(long long value)
long long GetImageSizeInBytes() const
ImageDetail & WithRepositoryName(Aws::String &&value)
Definition ImageDetail.h:68
const Aws::Vector< Aws::String > & GetImageTags() const
Definition ImageDetail.h:90
void SetImageTags(const Aws::Vector< Aws::String > &value)
Definition ImageDetail.h:92
ImageDetail & WithArtifactMediaType(Aws::String &&value)
void SetImageManifestMediaType(const Aws::String &value)
void SetRepositoryName(Aws::String &&value)
Definition ImageDetail.h:65
ImageDetail & WithArtifactMediaType(const Aws::String &value)
ImageDetail & WithImagePushedAt(Aws::Utils::DateTime &&value)
ImageDetail & WithImageManifestMediaType(Aws::String &&value)
ImageDetail & WithImageDigest(const char *value)
Definition ImageDetail.h:83
ImageDetail & WithArtifactMediaType(const char *value)
void SetArtifactMediaType(Aws::String &&value)
ImageDetail & WithRegistryId(const char *value)
Definition ImageDetail.h:55
AWS_ECRPUBLIC_API ImageDetail(Aws::Utils::Json::JsonView jsonValue)
ImageDetail & WithRepositoryName(const Aws::String &value)
Definition ImageDetail.h:67
const Aws::String & GetArtifactMediaType() const
ImageDetail & WithRegistryId(Aws::String &&value)
Definition ImageDetail.h:54
void SetImageDigest(const Aws::String &value)
Definition ImageDetail.h:78
ImageDetail & WithImageManifestMediaType(const Aws::String &value)
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImageDigest(Aws::String &&value)
Definition ImageDetail.h:79
ImageDetail & WithImageSizeInBytes(long long value)
AWS_ECRPUBLIC_API ImageDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageDetail & WithRegistryId(const Aws::String &value)
Definition ImageDetail.h:53
void SetImageDigest(const char *value)
Definition ImageDetail.h:80
void SetArtifactMediaType(const char *value)
void SetArtifactMediaType(const Aws::String &value)
void SetImageTags(Aws::Vector< Aws::String > &&value)
Definition ImageDetail.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue