AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AwsEcrContainerImageDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECR {
22namespace Model {
23
31 public:
32 AWS_ECR_API AwsEcrContainerImageDetails() = default;
36
38
41 inline const Aws::String& GetArchitecture() const { return m_architecture; }
42 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
43 template <typename ArchitectureT = Aws::String>
44 void SetArchitecture(ArchitectureT&& value) {
45 m_architectureHasBeenSet = true;
46 m_architecture = std::forward<ArchitectureT>(value);
47 }
48 template <typename ArchitectureT = Aws::String>
50 SetArchitecture(std::forward<ArchitectureT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAuthor() const { return m_author; }
60 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
61 template <typename AuthorT = Aws::String>
62 void SetAuthor(AuthorT&& value) {
63 m_authorHasBeenSet = true;
64 m_author = std::forward<AuthorT>(value);
65 }
66 template <typename AuthorT = Aws::String>
68 SetAuthor(std::forward<AuthorT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetImageHash() const { return m_imageHash; }
78 inline bool ImageHashHasBeenSet() const { return m_imageHashHasBeenSet; }
79 template <typename ImageHashT = Aws::String>
80 void SetImageHash(ImageHashT&& value) {
81 m_imageHashHasBeenSet = true;
82 m_imageHash = std::forward<ImageHashT>(value);
83 }
84 template <typename ImageHashT = Aws::String>
86 SetImageHash(std::forward<ImageHashT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
96 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
97 template <typename ImageTagsT = Aws::Vector<Aws::String>>
98 void SetImageTags(ImageTagsT&& value) {
99 m_imageTagsHasBeenSet = true;
100 m_imageTags = std::forward<ImageTagsT>(value);
101 }
102 template <typename ImageTagsT = Aws::Vector<Aws::String>>
104 SetImageTags(std::forward<ImageTagsT>(value));
105 return *this;
106 }
107 template <typename ImageTagsT = Aws::String>
109 m_imageTagsHasBeenSet = true;
110 m_imageTags.emplace_back(std::forward<ImageTagsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetPlatform() const { return m_platform; }
120 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
121 template <typename PlatformT = Aws::String>
122 void SetPlatform(PlatformT&& value) {
123 m_platformHasBeenSet = true;
124 m_platform = std::forward<PlatformT>(value);
125 }
126 template <typename PlatformT = Aws::String>
128 SetPlatform(std::forward<PlatformT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetPushedAt() const { return m_pushedAt; }
138 inline bool PushedAtHasBeenSet() const { return m_pushedAtHasBeenSet; }
139 template <typename PushedAtT = Aws::Utils::DateTime>
140 void SetPushedAt(PushedAtT&& value) {
141 m_pushedAtHasBeenSet = true;
142 m_pushedAt = std::forward<PushedAtT>(value);
143 }
144 template <typename PushedAtT = Aws::Utils::DateTime>
146 SetPushedAt(std::forward<PushedAtT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
156 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
157 template <typename LastInUseAtT = Aws::Utils::DateTime>
158 void SetLastInUseAt(LastInUseAtT&& value) {
159 m_lastInUseAtHasBeenSet = true;
160 m_lastInUseAt = std::forward<LastInUseAtT>(value);
161 }
162 template <typename LastInUseAtT = Aws::Utils::DateTime>
164 SetLastInUseAt(std::forward<LastInUseAtT>(value));
165 return *this;
166 }
168
170
174 inline long long GetInUseCount() const { return m_inUseCount; }
175 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
176 inline void SetInUseCount(long long value) {
177 m_inUseCountHasBeenSet = true;
178 m_inUseCount = value;
179 }
181 SetInUseCount(value);
182 return *this;
183 }
185
187
190 inline const Aws::String& GetRegistry() const { return m_registry; }
191 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
192 template <typename RegistryT = Aws::String>
193 void SetRegistry(RegistryT&& value) {
194 m_registryHasBeenSet = true;
195 m_registry = std::forward<RegistryT>(value);
196 }
197 template <typename RegistryT = Aws::String>
199 SetRegistry(std::forward<RegistryT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
209 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
210 template <typename RepositoryNameT = Aws::String>
211 void SetRepositoryName(RepositoryNameT&& value) {
212 m_repositoryNameHasBeenSet = true;
213 m_repositoryName = std::forward<RepositoryNameT>(value);
214 }
215 template <typename RepositoryNameT = Aws::String>
217 SetRepositoryName(std::forward<RepositoryNameT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_architecture;
223
224 Aws::String m_author;
225
226 Aws::String m_imageHash;
227
228 Aws::Vector<Aws::String> m_imageTags;
229
230 Aws::String m_platform;
231
232 Aws::Utils::DateTime m_pushedAt{};
233
234 Aws::Utils::DateTime m_lastInUseAt{};
235
236 long long m_inUseCount{0};
237
238 Aws::String m_registry;
239
240 Aws::String m_repositoryName;
241 bool m_architectureHasBeenSet = false;
242 bool m_authorHasBeenSet = false;
243 bool m_imageHashHasBeenSet = false;
244 bool m_imageTagsHasBeenSet = false;
245 bool m_platformHasBeenSet = false;
246 bool m_pushedAtHasBeenSet = false;
247 bool m_lastInUseAtHasBeenSet = false;
248 bool m_inUseCountHasBeenSet = false;
249 bool m_registryHasBeenSet = false;
250 bool m_repositoryNameHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace ECR
255} // namespace Aws
AwsEcrContainerImageDetails & WithLastInUseAt(LastInUseAtT &&value)
const Aws::Utils::DateTime & GetLastInUseAt() const
AwsEcrContainerImageDetails & WithArchitecture(ArchitectureT &&value)
AwsEcrContainerImageDetails & WithInUseCount(long long value)
AwsEcrContainerImageDetails & WithImageTags(ImageTagsT &&value)
AWS_ECR_API AwsEcrContainerImageDetails()=default
AwsEcrContainerImageDetails & WithRegistry(RegistryT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEcrContainerImageDetails & WithPushedAt(PushedAtT &&value)
AwsEcrContainerImageDetails & WithRepositoryName(RepositoryNameT &&value)
AWS_ECR_API AwsEcrContainerImageDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API AwsEcrContainerImageDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEcrContainerImageDetails & AddImageTags(ImageTagsT &&value)
AwsEcrContainerImageDetails & WithImageHash(ImageHashT &&value)
AwsEcrContainerImageDetails & WithPlatform(PlatformT &&value)
const Aws::Vector< Aws::String > & GetImageTags() const
AwsEcrContainerImageDetails & WithAuthor(AuthorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue