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/ecr/ECR_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 ECR
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECR_API AwsEcrContainerImageDetails() = default;
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
97 inline const Aws::String& GetPlatform() const { return m_platform; }
98 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
99 template<typename PlatformT = Aws::String>
100 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
101 template<typename PlatformT = Aws::String>
102 AwsEcrContainerImageDetails& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetPushedAt() const { return m_pushedAt; }
110 inline bool PushedAtHasBeenSet() const { return m_pushedAtHasBeenSet; }
111 template<typename PushedAtT = Aws::Utils::DateTime>
112 void SetPushedAt(PushedAtT&& value) { m_pushedAtHasBeenSet = true; m_pushedAt = std::forward<PushedAtT>(value); }
113 template<typename PushedAtT = Aws::Utils::DateTime>
114 AwsEcrContainerImageDetails& WithPushedAt(PushedAtT&& value) { SetPushedAt(std::forward<PushedAtT>(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
122 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
123 template<typename LastInUseAtT = Aws::Utils::DateTime>
124 void SetLastInUseAt(LastInUseAtT&& value) { m_lastInUseAtHasBeenSet = true; m_lastInUseAt = std::forward<LastInUseAtT>(value); }
125 template<typename LastInUseAtT = Aws::Utils::DateTime>
126 AwsEcrContainerImageDetails& WithLastInUseAt(LastInUseAtT&& value) { SetLastInUseAt(std::forward<LastInUseAtT>(value)); return *this;}
128
130
134 inline long long GetInUseCount() const { return m_inUseCount; }
135 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
136 inline void SetInUseCount(long long value) { m_inUseCountHasBeenSet = true; m_inUseCount = value; }
137 inline AwsEcrContainerImageDetails& WithInUseCount(long long value) { SetInUseCount(value); return *this;}
139
141
144 inline const Aws::String& GetRegistry() const { return m_registry; }
145 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
146 template<typename RegistryT = Aws::String>
147 void SetRegistry(RegistryT&& value) { m_registryHasBeenSet = true; m_registry = std::forward<RegistryT>(value); }
148 template<typename RegistryT = Aws::String>
149 AwsEcrContainerImageDetails& WithRegistry(RegistryT&& value) { SetRegistry(std::forward<RegistryT>(value)); return *this;}
151
153
156 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
157 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
158 template<typename RepositoryNameT = Aws::String>
159 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
160 template<typename RepositoryNameT = Aws::String>
161 AwsEcrContainerImageDetails& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
163 private:
164
165 Aws::String m_architecture;
166 bool m_architectureHasBeenSet = false;
167
168 Aws::String m_author;
169 bool m_authorHasBeenSet = false;
170
171 Aws::String m_imageHash;
172 bool m_imageHashHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_imageTags;
175 bool m_imageTagsHasBeenSet = false;
176
177 Aws::String m_platform;
178 bool m_platformHasBeenSet = false;
179
180 Aws::Utils::DateTime m_pushedAt{};
181 bool m_pushedAtHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastInUseAt{};
184 bool m_lastInUseAtHasBeenSet = false;
185
186 long long m_inUseCount{0};
187 bool m_inUseCountHasBeenSet = false;
188
189 Aws::String m_registry;
190 bool m_registryHasBeenSet = false;
191
192 Aws::String m_repositoryName;
193 bool m_repositoryNameHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace ECR
198} // 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