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>
49 template <
typename PrefixT = Aws::String>
51 m_prefixHasBeenSet =
true;
52 m_prefix = std::forward<PrefixT>(value);
54 template <
typename PrefixT = Aws::String>
67 template <
typename DescriptionT = Aws::String>
69 m_descriptionHasBeenSet =
true;
70 m_description = std::forward<DescriptionT>(value);
72 template <
typename DescriptionT = Aws::String>
85 return m_encryptionConfiguration;
88 template <
typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
90 m_encryptionConfigurationHasBeenSet =
true;
91 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
93 template <
typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
109 template <
typename ResourceTagsT = Aws::Vector<Tag>>
111 m_resourceTagsHasBeenSet =
true;
112 m_resourceTags = std::forward<ResourceTagsT>(value);
114 template <
typename ResourceTagsT = Aws::Vector<Tag>>
119 template <
typename ResourceTagsT = Tag>
121 m_resourceTagsHasBeenSet =
true;
122 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
138 m_imageTagMutabilityHasBeenSet =
true;
139 m_imageTagMutability = value;
153 return m_imageTagMutabilityExclusionFilters;
156 template <
typename ImageTagMutabilityExclusionFiltersT = Aws::Vector<ImageTagMutabilityExclusionFilter>>
158 m_imageTagMutabilityExclusionFiltersHasBeenSet =
true;
159 m_imageTagMutabilityExclusionFilters = std::forward<ImageTagMutabilityExclusionFiltersT>(value);
161 template <
typename ImageTagMutabilityExclusionFiltersT = Aws::Vector<ImageTagMutabilityExclusionFilter>>
166 template <
typename ImageTagMutabilityExclusionFiltersT = ImageTagMutabilityExclusionFilter>
168 m_imageTagMutabilityExclusionFiltersHasBeenSet =
true;
169 m_imageTagMutabilityExclusionFilters.emplace_back(std::forward<ImageTagMutabilityExclusionFiltersT>(value));
182 template <
typename RepositoryPolicyT = Aws::String>
184 m_repositoryPolicyHasBeenSet =
true;
185 m_repositoryPolicy = std::forward<RepositoryPolicyT>(value);
187 template <
typename RepositoryPolicyT = Aws::String>
200 template <
typename LifecyclePolicyT = Aws::String>
202 m_lifecyclePolicyHasBeenSet =
true;
203 m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value);
205 template <
typename LifecyclePolicyT = Aws::String>
220 template <
typename AppliedForT = Aws::Vector<RCTAppliedFor>>
222 m_appliedForHasBeenSet =
true;
223 m_appliedFor = std::forward<AppliedForT>(value);
225 template <
typename AppliedForT = Aws::Vector<RCTAppliedFor>>
231 m_appliedForHasBeenSet =
true;
232 m_appliedFor.push_back(value);
246 template <
typename CustomRoleArnT = Aws::String>
248 m_customRoleArnHasBeenSet =
true;
249 m_customRoleArn = std::forward<CustomRoleArnT>(value);
251 template <
typename CustomRoleArnT = Aws::String>
265 template <
typename CreatedAtT = Aws::Utils::DateTime>
267 m_createdAtHasBeenSet =
true;
268 m_createdAt = std::forward<CreatedAtT>(value);
270 template <
typename CreatedAtT = Aws::Utils::DateTime>
284 template <
typename UpdatedAtT = Aws::Utils::DateTime>
286 m_updatedAtHasBeenSet =
true;
287 m_updatedAt = std::forward<UpdatedAtT>(value);
289 template <
typename UpdatedAtT = Aws::Utils::DateTime>
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;
void SetImageTagMutability(ImageTagMutability value)
RepositoryCreationTemplate & WithResourceTags(ResourceTagsT &&value)
const Aws::String & GetDescription() const
RepositoryCreationTemplate & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< RCTAppliedFor > & GetAppliedFor() const
const Aws::String & GetRepositoryPolicy() const
RepositoryCreationTemplate & WithPrefix(PrefixT &&value)
bool EncryptionConfigurationHasBeenSet() const
bool UpdatedAtHasBeenSet() const
RepositoryCreationTemplate & WithAppliedFor(AppliedForT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Tag > & GetResourceTags() const
bool CreatedAtHasBeenSet() const
RepositoryCreationTemplate & WithRepositoryPolicy(RepositoryPolicyT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
RepositoryCreationTemplate & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::String & GetPrefix() const
bool PrefixHasBeenSet() const
bool ResourceTagsHasBeenSet() const
void SetAppliedFor(AppliedForT &&value)
const Aws::String & GetLifecyclePolicy() const
RepositoryCreationTemplate & AddImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT &&value)
const Aws::String & GetCustomRoleArn() const
void SetDescription(DescriptionT &&value)
RepositoryCreationTemplate & WithCustomRoleArn(CustomRoleArnT &&value)
AWS_ECR_API RepositoryCreationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageTagMutability GetImageTagMutability() const
RepositoryCreationTemplate & WithImageTagMutability(ImageTagMutability value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RepositoryCreationTemplate & WithLifecyclePolicy(LifecyclePolicyT &&value)
void SetCreatedAt(CreatedAtT &&value)
bool RepositoryPolicyHasBeenSet() const
RepositoryCreationTemplate & AddAppliedFor(RCTAppliedFor value)
bool DescriptionHasBeenSet() const
bool LifecyclePolicyHasBeenSet() const
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
bool CustomRoleArnHasBeenSet() const
void SetImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT &&value)
RepositoryCreationTemplate & WithUpdatedAt(UpdatedAtT &&value)
bool AppliedForHasBeenSet() const
AWS_ECR_API RepositoryCreationTemplate(Aws::Utils::Json::JsonView jsonValue)
bool ImageTagMutabilityHasBeenSet() const
RepositoryCreationTemplate & WithImageTagMutabilityExclusionFilters(ImageTagMutabilityExclusionFiltersT &&value)
void SetLifecyclePolicy(LifecyclePolicyT &&value)
void SetCustomRoleArn(CustomRoleArnT &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
void SetResourceTags(ResourceTagsT &&value)
bool ImageTagMutabilityExclusionFiltersHasBeenSet() const
RepositoryCreationTemplate & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< ImageTagMutabilityExclusionFilter > & GetImageTagMutabilityExclusionFilters() const
void SetRepositoryPolicy(RepositoryPolicyT &&value)
AWS_ECR_API RepositoryCreationTemplate()=default
void SetPrefix(PrefixT &&value)
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