AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RepositoryCreationTemplate.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/EncryptionConfigurationForRepositoryCreationTemplate.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/ImageTagMutability.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ecr/model/Tag.h>
14#include <aws/ecr/model/ImageTagMutabilityExclusionFilter.h>
15#include <aws/ecr/model/RCTAppliedFor.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ECR
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_ECR_API RepositoryCreationTemplate() = default;
46
47
49
53 inline const Aws::String& GetPrefix() const { return m_prefix; }
54 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
55 template<typename PrefixT = Aws::String>
56 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
57 template<typename PrefixT = Aws::String>
58 RepositoryCreationTemplate& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 RepositoryCreationTemplate& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
78 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
79 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
80 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
81 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
82 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
83 RepositoryCreationTemplate& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
85
87
93 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
94 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
95 template<typename ResourceTagsT = Aws::Vector<Tag>>
96 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
97 template<typename ResourceTagsT = Aws::Vector<Tag>>
98 RepositoryCreationTemplate& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
99 template<typename ResourceTagsT = Tag>
100 RepositoryCreationTemplate& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
102
104
111 inline ImageTagMutability GetImageTagMutability() const { return m_imageTagMutability; }
112 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
113 inline void SetImageTagMutability(ImageTagMutability value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
116
118
123 inline const Aws::Vector<ImageTagMutabilityExclusionFilter>& GetImageTagMutabilityExclusionFilters() const { return m_imageTagMutabilityExclusionFilters; }
124 inline bool ImageTagMutabilityExclusionFiltersHasBeenSet() const { return m_imageTagMutabilityExclusionFiltersHasBeenSet; }
125 template<typename ImageTagMutabilityExclusionFiltersT = Aws::Vector<ImageTagMutabilityExclusionFilter>>
126 void SetImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT&& value) { m_imageTagMutabilityExclusionFiltersHasBeenSet = true; m_imageTagMutabilityExclusionFilters = std::forward<ImageTagMutabilityExclusionFiltersT>(value); }
127 template<typename ImageTagMutabilityExclusionFiltersT = Aws::Vector<ImageTagMutabilityExclusionFilter>>
128 RepositoryCreationTemplate& WithImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT&& value) { SetImageTagMutabilityExclusionFilters(std::forward<ImageTagMutabilityExclusionFiltersT>(value)); return *this;}
129 template<typename ImageTagMutabilityExclusionFiltersT = ImageTagMutabilityExclusionFilter>
130 RepositoryCreationTemplate& AddImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT&& value) { m_imageTagMutabilityExclusionFiltersHasBeenSet = true; m_imageTagMutabilityExclusionFilters.emplace_back(std::forward<ImageTagMutabilityExclusionFiltersT>(value)); return *this; }
132
134
139 inline const Aws::String& GetRepositoryPolicy() const { return m_repositoryPolicy; }
140 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
141 template<typename RepositoryPolicyT = Aws::String>
142 void SetRepositoryPolicy(RepositoryPolicyT&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::forward<RepositoryPolicyT>(value); }
143 template<typename RepositoryPolicyT = Aws::String>
144 RepositoryCreationTemplate& WithRepositoryPolicy(RepositoryPolicyT&& value) { SetRepositoryPolicy(std::forward<RepositoryPolicyT>(value)); return *this;}
146
148
151 inline const Aws::String& GetLifecyclePolicy() const { return m_lifecyclePolicy; }
152 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
153 template<typename LifecyclePolicyT = Aws::String>
154 void SetLifecyclePolicy(LifecyclePolicyT&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value); }
155 template<typename LifecyclePolicyT = Aws::String>
156 RepositoryCreationTemplate& WithLifecyclePolicy(LifecyclePolicyT&& value) { SetLifecyclePolicy(std::forward<LifecyclePolicyT>(value)); return *this;}
158
160
165 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const { return m_appliedFor; }
166 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
167 template<typename AppliedForT = Aws::Vector<RCTAppliedFor>>
168 void SetAppliedFor(AppliedForT&& value) { m_appliedForHasBeenSet = true; m_appliedFor = std::forward<AppliedForT>(value); }
169 template<typename AppliedForT = Aws::Vector<RCTAppliedFor>>
170 RepositoryCreationTemplate& WithAppliedFor(AppliedForT&& value) { SetAppliedFor(std::forward<AppliedForT>(value)); return *this;}
171 inline RepositoryCreationTemplate& AddAppliedFor(RCTAppliedFor value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
173
175
181 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
182 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
183 template<typename CustomRoleArnT = Aws::String>
184 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
185 template<typename CustomRoleArnT = Aws::String>
186 RepositoryCreationTemplate& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
188
190
194 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
195 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
196 template<typename CreatedAtT = Aws::Utils::DateTime>
197 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
198 template<typename CreatedAtT = Aws::Utils::DateTime>
199 RepositoryCreationTemplate& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
201
203
207 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
208 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
209 template<typename UpdatedAtT = Aws::Utils::DateTime>
210 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
211 template<typename UpdatedAtT = Aws::Utils::DateTime>
212 RepositoryCreationTemplate& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
214 private:
215
216 Aws::String m_prefix;
217 bool m_prefixHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
223 bool m_encryptionConfigurationHasBeenSet = false;
224
225 Aws::Vector<Tag> m_resourceTags;
226 bool m_resourceTagsHasBeenSet = false;
227
229 bool m_imageTagMutabilityHasBeenSet = false;
230
231 Aws::Vector<ImageTagMutabilityExclusionFilter> m_imageTagMutabilityExclusionFilters;
232 bool m_imageTagMutabilityExclusionFiltersHasBeenSet = false;
233
234 Aws::String m_repositoryPolicy;
235 bool m_repositoryPolicyHasBeenSet = false;
236
237 Aws::String m_lifecyclePolicy;
238 bool m_lifecyclePolicyHasBeenSet = false;
239
240 Aws::Vector<RCTAppliedFor> m_appliedFor;
241 bool m_appliedForHasBeenSet = false;
242
243 Aws::String m_customRoleArn;
244 bool m_customRoleArnHasBeenSet = false;
245
246 Aws::Utils::DateTime m_createdAt{};
247 bool m_createdAtHasBeenSet = false;
248
249 Aws::Utils::DateTime m_updatedAt{};
250 bool m_updatedAtHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace ECR
255} // 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
const Aws::Vector< Tag > & GetResourceTags() 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