AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
Image.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/inspector2/Inspector2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30class Image {
31 public:
32 AWS_INSPECTOR2_API Image() = default;
33 AWS_INSPECTOR2_API Image(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Image& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
42 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
43 template <typename RepositoryNameT = Aws::String>
44 void SetRepositoryName(RepositoryNameT&& value) {
45 m_repositoryNameHasBeenSet = true;
46 m_repositoryName = std::forward<RepositoryNameT>(value);
47 }
48 template <typename RepositoryNameT = Aws::String>
49 Image& WithRepositoryName(RepositoryNameT&& value) {
50 SetRepositoryName(std::forward<RepositoryNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRegistry() const { return m_registry; }
60 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
61 template <typename RegistryT = Aws::String>
62 void SetRegistry(RegistryT&& value) {
63 m_registryHasBeenSet = true;
64 m_registry = std::forward<RegistryT>(value);
65 }
66 template <typename RegistryT = Aws::String>
67 Image& WithRegistry(RegistryT&& value) {
68 SetRegistry(std::forward<RegistryT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
78 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
79 template <typename ImageTagsT = Aws::Vector<Aws::String>>
80 void SetImageTags(ImageTagsT&& value) {
81 m_imageTagsHasBeenSet = true;
82 m_imageTags = std::forward<ImageTagsT>(value);
83 }
84 template <typename ImageTagsT = Aws::Vector<Aws::String>>
85 Image& WithImageTags(ImageTagsT&& value) {
86 SetImageTags(std::forward<ImageTagsT>(value));
87 return *this;
88 }
89 template <typename ImageTagsT = Aws::String>
90 Image& AddImageTags(ImageTagsT&& value) {
91 m_imageTagsHasBeenSet = true;
92 m_imageTags.emplace_back(std::forward<ImageTagsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
102 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
103 template <typename ImageDigestT = Aws::String>
104 void SetImageDigest(ImageDigestT&& value) {
105 m_imageDigestHasBeenSet = true;
106 m_imageDigest = std::forward<ImageDigestT>(value);
107 }
108 template <typename ImageDigestT = Aws::String>
109 Image& WithImageDigest(ImageDigestT&& value) {
110 SetImageDigest(std::forward<ImageDigestT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetPushedAt() const { return m_pushedAt; }
120 inline bool PushedAtHasBeenSet() const { return m_pushedAtHasBeenSet; }
121 template <typename PushedAtT = Aws::Utils::DateTime>
122 void SetPushedAt(PushedAtT&& value) {
123 m_pushedAtHasBeenSet = true;
124 m_pushedAt = std::forward<PushedAtT>(value);
125 }
126 template <typename PushedAtT = Aws::Utils::DateTime>
127 Image& WithPushedAt(PushedAtT&& value) {
128 SetPushedAt(std::forward<PushedAtT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetArchitecture() const { return m_architecture; }
138 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
139 template <typename ArchitectureT = Aws::String>
140 void SetArchitecture(ArchitectureT&& value) {
141 m_architectureHasBeenSet = true;
142 m_architecture = std::forward<ArchitectureT>(value);
143 }
144 template <typename ArchitectureT = Aws::String>
145 Image& WithArchitecture(ArchitectureT&& value) {
146 SetArchitecture(std::forward<ArchitectureT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetAuthor() const { return m_author; }
156 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
157 template <typename AuthorT = Aws::String>
158 void SetAuthor(AuthorT&& value) {
159 m_authorHasBeenSet = true;
160 m_author = std::forward<AuthorT>(value);
161 }
162 template <typename AuthorT = Aws::String>
163 Image& WithAuthor(AuthorT&& value) {
164 SetAuthor(std::forward<AuthorT>(value));
165 return *this;
166 }
168
170
173 inline long long GetInUseCount() const { return m_inUseCount; }
174 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
175 inline void SetInUseCount(long long value) {
176 m_inUseCountHasBeenSet = true;
177 m_inUseCount = value;
178 }
179 inline Image& WithInUseCount(long long value) {
180 SetInUseCount(value);
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
190 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
191 template <typename LastInUseAtT = Aws::Utils::DateTime>
192 void SetLastInUseAt(LastInUseAtT&& value) {
193 m_lastInUseAtHasBeenSet = true;
194 m_lastInUseAt = std::forward<LastInUseAtT>(value);
195 }
196 template <typename LastInUseAtT = Aws::Utils::DateTime>
197 Image& WithLastInUseAt(LastInUseAtT&& value) {
198 SetLastInUseAt(std::forward<LastInUseAtT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetPlatform() const { return m_platform; }
208 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
209 template <typename PlatformT = Aws::String>
210 void SetPlatform(PlatformT&& value) {
211 m_platformHasBeenSet = true;
212 m_platform = std::forward<PlatformT>(value);
213 }
214 template <typename PlatformT = Aws::String>
215 Image& WithPlatform(PlatformT&& value) {
216 SetPlatform(std::forward<PlatformT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_repositoryName;
222
223 Aws::String m_registry;
224
225 Aws::Vector<Aws::String> m_imageTags;
226
227 Aws::String m_imageDigest;
228
229 Aws::Utils::DateTime m_pushedAt{};
230
231 Aws::String m_architecture;
232
233 Aws::String m_author;
234
235 long long m_inUseCount{0};
236
237 Aws::Utils::DateTime m_lastInUseAt{};
238
239 Aws::String m_platform;
240 bool m_repositoryNameHasBeenSet = false;
241 bool m_registryHasBeenSet = false;
242 bool m_imageTagsHasBeenSet = false;
243 bool m_imageDigestHasBeenSet = false;
244 bool m_pushedAtHasBeenSet = false;
245 bool m_architectureHasBeenSet = false;
246 bool m_authorHasBeenSet = false;
247 bool m_inUseCountHasBeenSet = false;
248 bool m_lastInUseAtHasBeenSet = false;
249 bool m_platformHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace Inspector2
254} // namespace Aws
AWS_INSPECTOR2_API Image(Aws::Utils::Json::JsonView jsonValue)
Image & WithImageTags(ImageTagsT &&value)
Definition Image.h:85
Image & AddImageTags(ImageTagsT &&value)
Definition Image.h:90
Image & WithRegistry(RegistryT &&value)
Definition Image.h:67
Image & WithAuthor(AuthorT &&value)
Definition Image.h:163
void SetPushedAt(PushedAtT &&value)
Definition Image.h:122
bool ImageTagsHasBeenSet() const
Definition Image.h:78
const Aws::String & GetAuthor() const
Definition Image.h:155
long long GetInUseCount() const
Definition Image.h:173
Image & WithPlatform(PlatformT &&value)
Definition Image.h:215
bool ImageDigestHasBeenSet() const
Definition Image.h:102
const Aws::String & GetImageDigest() const
Definition Image.h:101
AWS_INSPECTOR2_API Image()=default
const Aws::String & GetArchitecture() const
Definition Image.h:137
const Aws::String & GetRepositoryName() const
Definition Image.h:41
const Aws::Vector< Aws::String > & GetImageTags() const
Definition Image.h:77
const Aws::Utils::DateTime & GetPushedAt() const
Definition Image.h:119
bool InUseCountHasBeenSet() const
Definition Image.h:174
bool RegistryHasBeenSet() const
Definition Image.h:60
bool RepositoryNameHasBeenSet() const
Definition Image.h:42
void SetImageDigest(ImageDigestT &&value)
Definition Image.h:104
void SetRegistry(RegistryT &&value)
Definition Image.h:62
Image & WithRepositoryName(RepositoryNameT &&value)
Definition Image.h:49
void SetInUseCount(long long value)
Definition Image.h:175
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Image & WithImageDigest(ImageDigestT &&value)
Definition Image.h:109
void SetLastInUseAt(LastInUseAtT &&value)
Definition Image.h:192
void SetImageTags(ImageTagsT &&value)
Definition Image.h:80
AWS_INSPECTOR2_API Image & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastInUseAtHasBeenSet() const
Definition Image.h:190
void SetArchitecture(ArchitectureT &&value)
Definition Image.h:140
void SetRepositoryName(RepositoryNameT &&value)
Definition Image.h:44
void SetAuthor(AuthorT &&value)
Definition Image.h:158
bool PushedAtHasBeenSet() const
Definition Image.h:120
void SetPlatform(PlatformT &&value)
Definition Image.h:210
Image & WithLastInUseAt(LastInUseAtT &&value)
Definition Image.h:197
const Aws::String & GetRegistry() const
Definition Image.h:59
Image & WithArchitecture(ArchitectureT &&value)
Definition Image.h:145
const Aws::String & GetPlatform() const
Definition Image.h:207
Image & WithInUseCount(long long value)
Definition Image.h:179
bool ArchitectureHasBeenSet() const
Definition Image.h:138
bool AuthorHasBeenSet() const
Definition Image.h:156
const Aws::Utils::DateTime & GetLastInUseAt() const
Definition Image.h:189
Image & WithPushedAt(PushedAtT &&value)
Definition Image.h:127
bool PlatformHasBeenSet() const
Definition Image.h:208
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue