AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RegistryIdT = Aws::String>
51 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
52 template<typename RegistryIdT = Aws::String>
53 ImageDetail& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 template<typename RepositoryNameT = Aws::String>
63 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
64 template<typename RepositoryNameT = Aws::String>
65 ImageDetail& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
73 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
74 template<typename ImageDigestT = Aws::String>
75 void SetImageDigest(ImageDigestT&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::forward<ImageDigestT>(value); }
76 template<typename ImageDigestT = Aws::String>
77 ImageDetail& WithImageDigest(ImageDigestT&& value) { SetImageDigest(std::forward<ImageDigestT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
85 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
86 template<typename ImageTagsT = Aws::Vector<Aws::String>>
87 void SetImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::forward<ImageTagsT>(value); }
88 template<typename ImageTagsT = Aws::Vector<Aws::String>>
89 ImageDetail& WithImageTags(ImageTagsT&& value) { SetImageTags(std::forward<ImageTagsT>(value)); return *this;}
90 template<typename ImageTagsT = Aws::String>
91 ImageDetail& AddImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags.emplace_back(std::forward<ImageTagsT>(value)); return *this; }
93
95
104 inline long long GetImageSizeInBytes() const { return m_imageSizeInBytes; }
105 inline bool ImageSizeInBytesHasBeenSet() const { return m_imageSizeInBytesHasBeenSet; }
106 inline void SetImageSizeInBytes(long long value) { m_imageSizeInBytesHasBeenSet = true; m_imageSizeInBytes = value; }
107 inline ImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;}
109
111
115 inline const Aws::Utils::DateTime& GetImagePushedAt() const { return m_imagePushedAt; }
116 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
117 template<typename ImagePushedAtT = Aws::Utils::DateTime>
118 void SetImagePushedAt(ImagePushedAtT&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::forward<ImagePushedAtT>(value); }
119 template<typename ImagePushedAtT = Aws::Utils::DateTime>
120 ImageDetail& WithImagePushedAt(ImagePushedAtT&& value) { SetImagePushedAt(std::forward<ImagePushedAtT>(value)); return *this;}
122
124
127 inline const Aws::String& GetImageManifestMediaType() const { return m_imageManifestMediaType; }
128 inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
129 template<typename ImageManifestMediaTypeT = Aws::String>
130 void SetImageManifestMediaType(ImageManifestMediaTypeT&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::forward<ImageManifestMediaTypeT>(value); }
131 template<typename ImageManifestMediaTypeT = Aws::String>
132 ImageDetail& WithImageManifestMediaType(ImageManifestMediaTypeT&& value) { SetImageManifestMediaType(std::forward<ImageManifestMediaTypeT>(value)); return *this;}
134
136
139 inline const Aws::String& GetArtifactMediaType() const { return m_artifactMediaType; }
140 inline bool ArtifactMediaTypeHasBeenSet() const { return m_artifactMediaTypeHasBeenSet; }
141 template<typename ArtifactMediaTypeT = Aws::String>
142 void SetArtifactMediaType(ArtifactMediaTypeT&& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = std::forward<ArtifactMediaTypeT>(value); }
143 template<typename ArtifactMediaTypeT = Aws::String>
144 ImageDetail& WithArtifactMediaType(ArtifactMediaTypeT&& value) { SetArtifactMediaType(std::forward<ArtifactMediaTypeT>(value)); return *this;}
146 private:
147
148 Aws::String m_registryId;
149 bool m_registryIdHasBeenSet = false;
150
151 Aws::String m_repositoryName;
152 bool m_repositoryNameHasBeenSet = false;
153
154 Aws::String m_imageDigest;
155 bool m_imageDigestHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_imageTags;
158 bool m_imageTagsHasBeenSet = false;
159
160 long long m_imageSizeInBytes{0};
161 bool m_imageSizeInBytesHasBeenSet = false;
162
163 Aws::Utils::DateTime m_imagePushedAt{};
164 bool m_imagePushedAtHasBeenSet = false;
165
166 Aws::String m_imageManifestMediaType;
167 bool m_imageManifestMediaTypeHasBeenSet = false;
168
169 Aws::String m_artifactMediaType;
170 bool m_artifactMediaTypeHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace ECRPublic
175} // namespace Aws
void SetImageTags(ImageTagsT &&value)
Definition ImageDetail.h:87
void SetRegistryId(RegistryIdT &&value)
Definition ImageDetail.h:51
ImageDetail & WithImageManifestMediaType(ImageManifestMediaTypeT &&value)
void SetRepositoryName(RepositoryNameT &&value)
Definition ImageDetail.h:63
const Aws::String & GetRepositoryName() const
Definition ImageDetail.h:60
void SetImageManifestMediaType(ImageManifestMediaTypeT &&value)
ImageDetail & WithImagePushedAt(ImagePushedAtT &&value)
const Aws::String & GetImageManifestMediaType() const
ImageDetail & WithArtifactMediaType(ArtifactMediaTypeT &&value)
const Aws::String & GetImageDigest() const
Definition ImageDetail.h:72
const Aws::Utils::DateTime & GetImagePushedAt() const
const Aws::String & GetRegistryId() const
Definition ImageDetail.h:48
void SetImageSizeInBytes(long long value)
AWS_ECRPUBLIC_API ImageDetail()=default
long long GetImageSizeInBytes() const
void SetArtifactMediaType(ArtifactMediaTypeT &&value)
const Aws::Vector< Aws::String > & GetImageTags() const
Definition ImageDetail.h:84
ImageDetail & WithRepositoryName(RepositoryNameT &&value)
Definition ImageDetail.h:65
void SetImageDigest(ImageDigestT &&value)
Definition ImageDetail.h:75
AWS_ECRPUBLIC_API ImageDetail(Aws::Utils::Json::JsonView jsonValue)
ImageDetail & WithImageTags(ImageTagsT &&value)
Definition ImageDetail.h:89
void SetImagePushedAt(ImagePushedAtT &&value)
const Aws::String & GetArtifactMediaType() const
AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const
ImageDetail & WithImageSizeInBytes(long long value)
ImageDetail & AddImageTags(ImageTagsT &&value)
Definition ImageDetail.h:91
AWS_ECRPUBLIC_API ImageDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageDetail & WithRegistryId(RegistryIdT &&value)
Definition ImageDetail.h:53
ImageDetail & WithImageDigest(ImageDigestT &&value)
Definition ImageDetail.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue