7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr/model/EncryptionConfigurationForRepositoryCreationTemplate.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ecr/model/ImageTagMutability.h>
13#include <aws/ecr/model/Tag.h>
14#include <aws/ecr/model/RCTAppliedFor.h>
35 inline virtual const char*
GetServiceRequestName()
const override {
return "CreateRepositoryCreationTemplate"; }
60 template<
typename PrefixT = Aws::String>
61 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet =
true; m_prefix = std::forward<PrefixT>(value); }
62 template<
typename PrefixT = Aws::String>
72 template<
typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
74 template<
typename DescriptionT = Aws::String>
85 template<
typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
86 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet =
true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
87 template<
typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
100 template<
typename ResourceTagsT = Aws::Vector<Tag>>
101 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags = std::forward<ResourceTagsT>(value); }
102 template<
typename ResourceTagsT = Aws::Vector<Tag>>
104 template<
typename ResourceTagsT = Tag>
130 template<
typename RepositoryPolicyT = Aws::String>
131 void SetRepositoryPolicy(RepositoryPolicyT&& value) { m_repositoryPolicyHasBeenSet =
true; m_repositoryPolicy = std::forward<RepositoryPolicyT>(value); }
132 template<
typename RepositoryPolicyT = Aws::String>
142 template<
typename LifecyclePolicyT = Aws::String>
143 void SetLifecyclePolicy(LifecyclePolicyT&& value) { m_lifecyclePolicyHasBeenSet =
true; m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value); }
144 template<
typename LifecyclePolicyT = Aws::String>
156 template<
typename AppliedForT = Aws::Vector<RCTAppliedFor>>
157 void SetAppliedFor(AppliedForT&& value) { m_appliedForHasBeenSet =
true; m_appliedFor = std::forward<AppliedForT>(value); }
158 template<
typename AppliedForT = Aws::Vector<RCTAppliedFor>>
173 template<
typename CustomRoleArnT = Aws::String>
174 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet =
true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
175 template<
typename CustomRoleArnT = Aws::String>
181 bool m_prefixHasBeenSet =
false;
184 bool m_descriptionHasBeenSet =
false;
187 bool m_encryptionConfigurationHasBeenSet =
false;
190 bool m_resourceTagsHasBeenSet =
false;
193 bool m_imageTagMutabilityHasBeenSet =
false;
196 bool m_repositoryPolicyHasBeenSet =
false;
199 bool m_lifecyclePolicyHasBeenSet =
false;
202 bool m_appliedForHasBeenSet =
false;
205 bool m_customRoleArnHasBeenSet =
false;
bool DescriptionHasBeenSet() const
AWS_ECR_API CreateRepositoryCreationTemplateRequest()=default
AWS_ECR_API Aws::String SerializePayload() const override
const Aws::String & GetDescription() const
CreateRepositoryCreationTemplateRequest & WithRepositoryPolicy(RepositoryPolicyT &&value)
CreateRepositoryCreationTemplateRequest & WithResourceTags(ResourceTagsT &&value)
CreateRepositoryCreationTemplateRequest & WithLifecyclePolicy(LifecyclePolicyT &&value)
void SetLifecyclePolicy(LifecyclePolicyT &&value)
void SetRepositoryPolicy(RepositoryPolicyT &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
bool ResourceTagsHasBeenSet() const
bool LifecyclePolicyHasBeenSet() const
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::Vector< Tag > & GetResourceTags() const
CreateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetAppliedFor(AppliedForT &&value)
const Aws::String & GetRepositoryPolicy() const
void SetResourceTags(ResourceTagsT &&value)
bool AppliedForHasBeenSet() const
bool RepositoryPolicyHasBeenSet() const
CreateRepositoryCreationTemplateRequest & WithPrefix(PrefixT &&value)
const Aws::String & GetPrefix() const
bool ImageTagMutabilityHasBeenSet() const
CreateRepositoryCreationTemplateRequest & WithDescription(DescriptionT &&value)
CreateRepositoryCreationTemplateRequest & WithCustomRoleArn(CustomRoleArnT &&value)
const Aws::String & GetCustomRoleArn() const
void SetCustomRoleArn(CustomRoleArnT &&value)
CreateRepositoryCreationTemplateRequest & WithAppliedFor(AppliedForT &&value)
CreateRepositoryCreationTemplateRequest & AddAppliedFor(RCTAppliedFor value)
void SetPrefix(PrefixT &&value)
CreateRepositoryCreationTemplateRequest & AddResourceTags(ResourceTagsT &&value)
bool CustomRoleArnHasBeenSet() const
void SetImageTagMutability(ImageTagMutability value)
const Aws::Vector< RCTAppliedFor > & GetAppliedFor() const
ImageTagMutability GetImageTagMutability() const
bool EncryptionConfigurationHasBeenSet() const
const Aws::String & GetLifecyclePolicy() const
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryCreationTemplateRequest & WithImageTagMutability(ImageTagMutability value)
void SetDescription(DescriptionT &&value)
bool PrefixHasBeenSet() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector