AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RepositoryCreationTemplate.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#include <aws/ecr/model/EncryptionConfigurationForRepositoryCreationTemplate.h>
12#include <aws/ecr/model/ImageTagMutability.h>
13#include <aws/ecr/model/ImageTagMutabilityExclusionFilter.h>
14#include <aws/ecr/model/RCTAppliedFor.h>
15#include <aws/ecr/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ECR {
27namespace Model {
28
36 public:
37 AWS_ECR_API RepositoryCreationTemplate() = default;
41
43
47 inline const Aws::String& GetPrefix() const { return m_prefix; }
48 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
49 template <typename PrefixT = Aws::String>
50 void SetPrefix(PrefixT&& value) {
51 m_prefixHasBeenSet = true;
52 m_prefix = std::forward<PrefixT>(value);
53 }
54 template <typename PrefixT = Aws::String>
56 SetPrefix(std::forward<PrefixT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
85 return m_encryptionConfiguration;
86 }
87 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
88 template <typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
89 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
90 m_encryptionConfigurationHasBeenSet = true;
91 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
92 }
93 template <typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
94 RepositoryCreationTemplate& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
95 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
96 return *this;
97 }
99
101
107 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
108 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
109 template <typename ResourceTagsT = Aws::Vector<Tag>>
110 void SetResourceTags(ResourceTagsT&& value) {
111 m_resourceTagsHasBeenSet = true;
112 m_resourceTags = std::forward<ResourceTagsT>(value);
113 }
114 template <typename ResourceTagsT = Aws::Vector<Tag>>
116 SetResourceTags(std::forward<ResourceTagsT>(value));
117 return *this;
118 }
119 template <typename ResourceTagsT = Tag>
121 m_resourceTagsHasBeenSet = true;
122 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
123 return *this;
124 }
126
128
135 inline ImageTagMutability GetImageTagMutability() const { return m_imageTagMutability; }
136 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
138 m_imageTagMutabilityHasBeenSet = true;
139 m_imageTagMutability = value;
140 }
143 return *this;
144 }
146
148
153 return m_imageTagMutabilityExclusionFilters;
154 }
155 inline bool ImageTagMutabilityExclusionFiltersHasBeenSet() const { return m_imageTagMutabilityExclusionFiltersHasBeenSet; }
156 template <typename ImageTagMutabilityExclusionFiltersT = Aws::Vector<ImageTagMutabilityExclusionFilter>>
157 void SetImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT&& value) {
158 m_imageTagMutabilityExclusionFiltersHasBeenSet = true;
159 m_imageTagMutabilityExclusionFilters = std::forward<ImageTagMutabilityExclusionFiltersT>(value);
160 }
161 template <typename ImageTagMutabilityExclusionFiltersT = Aws::Vector<ImageTagMutabilityExclusionFilter>>
162 RepositoryCreationTemplate& WithImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT&& value) {
163 SetImageTagMutabilityExclusionFilters(std::forward<ImageTagMutabilityExclusionFiltersT>(value));
164 return *this;
165 }
166 template <typename ImageTagMutabilityExclusionFiltersT = ImageTagMutabilityExclusionFilter>
167 RepositoryCreationTemplate& AddImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT&& value) {
168 m_imageTagMutabilityExclusionFiltersHasBeenSet = true;
169 m_imageTagMutabilityExclusionFilters.emplace_back(std::forward<ImageTagMutabilityExclusionFiltersT>(value));
170 return *this;
171 }
173
175
180 inline const Aws::String& GetRepositoryPolicy() const { return m_repositoryPolicy; }
181 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
182 template <typename RepositoryPolicyT = Aws::String>
183 void SetRepositoryPolicy(RepositoryPolicyT&& value) {
184 m_repositoryPolicyHasBeenSet = true;
185 m_repositoryPolicy = std::forward<RepositoryPolicyT>(value);
186 }
187 template <typename RepositoryPolicyT = Aws::String>
189 SetRepositoryPolicy(std::forward<RepositoryPolicyT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetLifecyclePolicy() const { return m_lifecyclePolicy; }
199 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
200 template <typename LifecyclePolicyT = Aws::String>
201 void SetLifecyclePolicy(LifecyclePolicyT&& value) {
202 m_lifecyclePolicyHasBeenSet = true;
203 m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value);
204 }
205 template <typename LifecyclePolicyT = Aws::String>
207 SetLifecyclePolicy(std::forward<LifecyclePolicyT>(value));
208 return *this;
209 }
211
213
218 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const { return m_appliedFor; }
219 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
220 template <typename AppliedForT = Aws::Vector<RCTAppliedFor>>
221 void SetAppliedFor(AppliedForT&& value) {
222 m_appliedForHasBeenSet = true;
223 m_appliedFor = std::forward<AppliedForT>(value);
224 }
225 template <typename AppliedForT = Aws::Vector<RCTAppliedFor>>
227 SetAppliedFor(std::forward<AppliedForT>(value));
228 return *this;
229 }
231 m_appliedForHasBeenSet = true;
232 m_appliedFor.push_back(value);
233 return *this;
234 }
236
238
244 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
245 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
246 template <typename CustomRoleArnT = Aws::String>
247 void SetCustomRoleArn(CustomRoleArnT&& value) {
248 m_customRoleArnHasBeenSet = true;
249 m_customRoleArn = std::forward<CustomRoleArnT>(value);
250 }
251 template <typename CustomRoleArnT = Aws::String>
253 SetCustomRoleArn(std::forward<CustomRoleArnT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
264 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
265 template <typename CreatedAtT = Aws::Utils::DateTime>
266 void SetCreatedAt(CreatedAtT&& value) {
267 m_createdAtHasBeenSet = true;
268 m_createdAt = std::forward<CreatedAtT>(value);
269 }
270 template <typename CreatedAtT = Aws::Utils::DateTime>
272 SetCreatedAt(std::forward<CreatedAtT>(value));
273 return *this;
274 }
276
278
282 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
283 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
284 template <typename UpdatedAtT = Aws::Utils::DateTime>
285 void SetUpdatedAt(UpdatedAtT&& value) {
286 m_updatedAtHasBeenSet = true;
287 m_updatedAt = std::forward<UpdatedAtT>(value);
288 }
289 template <typename UpdatedAtT = Aws::Utils::DateTime>
291 SetUpdatedAt(std::forward<UpdatedAtT>(value));
292 return *this;
293 }
295 private:
296 Aws::String m_prefix;
297
298 Aws::String m_description;
299
301
302 Aws::Vector<Tag> m_resourceTags;
303
305
306 Aws::Vector<ImageTagMutabilityExclusionFilter> m_imageTagMutabilityExclusionFilters;
307
308 Aws::String m_repositoryPolicy;
309
310 Aws::String m_lifecyclePolicy;
311
312 Aws::Vector<RCTAppliedFor> m_appliedFor;
313
314 Aws::String m_customRoleArn;
315
316 Aws::Utils::DateTime m_createdAt{};
317
318 Aws::Utils::DateTime m_updatedAt{};
319 bool m_prefixHasBeenSet = false;
320 bool m_descriptionHasBeenSet = false;
321 bool m_encryptionConfigurationHasBeenSet = false;
322 bool m_resourceTagsHasBeenSet = false;
323 bool m_imageTagMutabilityHasBeenSet = false;
324 bool m_imageTagMutabilityExclusionFiltersHasBeenSet = false;
325 bool m_repositoryPolicyHasBeenSet = false;
326 bool m_lifecyclePolicyHasBeenSet = false;
327 bool m_appliedForHasBeenSet = false;
328 bool m_customRoleArnHasBeenSet = false;
329 bool m_createdAtHasBeenSet = false;
330 bool m_updatedAtHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace ECR
335} // namespace Aws
RepositoryCreationTemplate & WithResourceTags(ResourceTagsT &&value)
RepositoryCreationTemplate & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< RCTAppliedFor > & GetAppliedFor() const
RepositoryCreationTemplate & WithPrefix(PrefixT &&value)
RepositoryCreationTemplate & WithAppliedFor(AppliedForT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
RepositoryCreationTemplate & WithRepositoryPolicy(RepositoryPolicyT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
RepositoryCreationTemplate & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
RepositoryCreationTemplate & AddImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT &&value)
RepositoryCreationTemplate & WithCustomRoleArn(CustomRoleArnT &&value)
AWS_ECR_API RepositoryCreationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryCreationTemplate & WithImageTagMutability(ImageTagMutability value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RepositoryCreationTemplate & WithLifecyclePolicy(LifecyclePolicyT &&value)
RepositoryCreationTemplate & AddAppliedFor(RCTAppliedFor value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT &&value)
RepositoryCreationTemplate & WithUpdatedAt(UpdatedAtT &&value)
AWS_ECR_API RepositoryCreationTemplate(Aws::Utils::Json::JsonView jsonValue)
RepositoryCreationTemplate & WithImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
RepositoryCreationTemplate & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< ImageTagMutabilityExclusionFilter > & GetImageTagMutabilityExclusionFilters() const
AWS_ECR_API RepositoryCreationTemplate()=default
RepositoryCreationTemplate & WithDescription(DescriptionT &&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