AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEcrContainerImageDetails.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_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 Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API AwsEcrContainerImageDetails() = default;
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArchitecture() const { return m_architecture; }
48 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
49 template<typename ArchitectureT = Aws::String>
50 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
51 template<typename ArchitectureT = Aws::String>
52 AwsEcrContainerImageDetails& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
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) { m_authorHasBeenSet = true; m_author = std::forward<AuthorT>(value); }
63 template<typename AuthorT = Aws::String>
64 AwsEcrContainerImageDetails& WithAuthor(AuthorT&& value) { SetAuthor(std::forward<AuthorT>(value)); return *this;}
66
68
71 inline const Aws::String& GetImageHash() const { return m_imageHash; }
72 inline bool ImageHashHasBeenSet() const { return m_imageHashHasBeenSet; }
73 template<typename ImageHashT = Aws::String>
74 void SetImageHash(ImageHashT&& value) { m_imageHashHasBeenSet = true; m_imageHash = std::forward<ImageHashT>(value); }
75 template<typename ImageHashT = Aws::String>
76 AwsEcrContainerImageDetails& WithImageHash(ImageHashT&& value) { SetImageHash(std::forward<ImageHashT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
84 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
85 template<typename ImageTagsT = Aws::Vector<Aws::String>>
86 void SetImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::forward<ImageTagsT>(value); }
87 template<typename ImageTagsT = Aws::Vector<Aws::String>>
88 AwsEcrContainerImageDetails& WithImageTags(ImageTagsT&& value) { SetImageTags(std::forward<ImageTagsT>(value)); return *this;}
89 template<typename ImageTagsT = Aws::String>
90 AwsEcrContainerImageDetails& AddImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags.emplace_back(std::forward<ImageTagsT>(value)); return *this; }
92
94
98 inline long long GetInUseCount() const { return m_inUseCount; }
99 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
100 inline void SetInUseCount(long long value) { m_inUseCountHasBeenSet = true; m_inUseCount = value; }
101 inline AwsEcrContainerImageDetails& WithInUseCount(long long value) { SetInUseCount(value); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
110 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
111 template<typename LastInUseAtT = Aws::Utils::DateTime>
112 void SetLastInUseAt(LastInUseAtT&& value) { m_lastInUseAtHasBeenSet = true; m_lastInUseAt = std::forward<LastInUseAtT>(value); }
113 template<typename LastInUseAtT = Aws::Utils::DateTime>
114 AwsEcrContainerImageDetails& WithLastInUseAt(LastInUseAtT&& value) { SetLastInUseAt(std::forward<LastInUseAtT>(value)); return *this;}
116
118
121 inline const Aws::String& GetPlatform() const { return m_platform; }
122 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
123 template<typename PlatformT = Aws::String>
124 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
125 template<typename PlatformT = Aws::String>
126 AwsEcrContainerImageDetails& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetPushedAt() const { return m_pushedAt; }
134 inline bool PushedAtHasBeenSet() const { return m_pushedAtHasBeenSet; }
135 template<typename PushedAtT = Aws::Utils::DateTime>
136 void SetPushedAt(PushedAtT&& value) { m_pushedAtHasBeenSet = true; m_pushedAt = std::forward<PushedAtT>(value); }
137 template<typename PushedAtT = Aws::Utils::DateTime>
138 AwsEcrContainerImageDetails& WithPushedAt(PushedAtT&& value) { SetPushedAt(std::forward<PushedAtT>(value)); return *this;}
140
142
145 inline const Aws::String& GetRegistry() const { return m_registry; }
146 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
147 template<typename RegistryT = Aws::String>
148 void SetRegistry(RegistryT&& value) { m_registryHasBeenSet = true; m_registry = std::forward<RegistryT>(value); }
149 template<typename RegistryT = Aws::String>
150 AwsEcrContainerImageDetails& WithRegistry(RegistryT&& value) { SetRegistry(std::forward<RegistryT>(value)); return *this;}
152
154
157 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
158 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
159 template<typename RepositoryNameT = Aws::String>
160 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
161 template<typename RepositoryNameT = Aws::String>
162 AwsEcrContainerImageDetails& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
164 private:
165
166 Aws::String m_architecture;
167 bool m_architectureHasBeenSet = false;
168
169 Aws::String m_author;
170 bool m_authorHasBeenSet = false;
171
172 Aws::String m_imageHash;
173 bool m_imageHashHasBeenSet = false;
174
175 Aws::Vector<Aws::String> m_imageTags;
176 bool m_imageTagsHasBeenSet = false;
177
178 long long m_inUseCount{0};
179 bool m_inUseCountHasBeenSet = false;
180
181 Aws::Utils::DateTime m_lastInUseAt{};
182 bool m_lastInUseAtHasBeenSet = false;
183
184 Aws::String m_platform;
185 bool m_platformHasBeenSet = false;
186
187 Aws::Utils::DateTime m_pushedAt{};
188 bool m_pushedAtHasBeenSet = false;
189
190 Aws::String m_registry;
191 bool m_registryHasBeenSet = false;
192
193 Aws::String m_repositoryName;
194 bool m_repositoryNameHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace Inspector2
199} // namespace Aws
AWS_INSPECTOR2_API AwsEcrContainerImageDetails()=default
AwsEcrContainerImageDetails & WithImageTags(ImageTagsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEcrContainerImageDetails & AddImageTags(ImageTagsT &&value)
AwsEcrContainerImageDetails & WithAuthor(AuthorT &&value)
AwsEcrContainerImageDetails & WithInUseCount(long long value)
AwsEcrContainerImageDetails & WithImageHash(ImageHashT &&value)
AwsEcrContainerImageDetails & WithPlatform(PlatformT &&value)
AwsEcrContainerImageDetails & WithPushedAt(PushedAtT &&value)
AwsEcrContainerImageDetails & WithRepositoryName(RepositoryNameT &&value)
AwsEcrContainerImageDetails & WithArchitecture(ArchitectureT &&value)
AwsEcrContainerImageDetails & WithRegistry(RegistryT &&value)
AwsEcrContainerImageDetails & WithLastInUseAt(LastInUseAtT &&value)
AWS_INSPECTOR2_API AwsEcrContainerImageDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API AwsEcrContainerImageDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetImageTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue