AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRepositoryCreationTemplateRequest.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19namespace ECR
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRepositoryCreationTemplate"; }
36
37 AWS_ECR_API Aws::String SerializePayload() const override;
38
40
41
43
58 inline const Aws::String& GetPrefix() const { return m_prefix; }
59 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
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>
63 CreateRepositoryCreationTemplateRequest& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
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>
75 CreateRepositoryCreationTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
83 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
84 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
85 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
86 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
87 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
88 CreateRepositoryCreationTemplateRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
90
92
98 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
99 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
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>>
103 CreateRepositoryCreationTemplateRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
104 template<typename ResourceTagsT = Tag>
105 CreateRepositoryCreationTemplateRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
107
109
116 inline ImageTagMutability GetImageTagMutability() const { return m_imageTagMutability; }
117 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
118 inline void SetImageTagMutability(ImageTagMutability value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
121
123
128 inline const Aws::String& GetRepositoryPolicy() const { return m_repositoryPolicy; }
129 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
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>
133 CreateRepositoryCreationTemplateRequest& WithRepositoryPolicy(RepositoryPolicyT&& value) { SetRepositoryPolicy(std::forward<RepositoryPolicyT>(value)); return *this;}
135
137
140 inline const Aws::String& GetLifecyclePolicy() const { return m_lifecyclePolicy; }
141 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
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>
145 CreateRepositoryCreationTemplateRequest& WithLifecyclePolicy(LifecyclePolicyT&& value) { SetLifecyclePolicy(std::forward<LifecyclePolicyT>(value)); return *this;}
147
149
154 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const { return m_appliedFor; }
155 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
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>>
159 CreateRepositoryCreationTemplateRequest& WithAppliedFor(AppliedForT&& value) { SetAppliedFor(std::forward<AppliedForT>(value)); return *this;}
160 inline CreateRepositoryCreationTemplateRequest& AddAppliedFor(RCTAppliedFor value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
162
164
171 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
172 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
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>
176 CreateRepositoryCreationTemplateRequest& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
178 private:
179
180 Aws::String m_prefix;
181 bool m_prefixHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
187 bool m_encryptionConfigurationHasBeenSet = false;
188
189 Aws::Vector<Tag> m_resourceTags;
190 bool m_resourceTagsHasBeenSet = false;
191
193 bool m_imageTagMutabilityHasBeenSet = false;
194
195 Aws::String m_repositoryPolicy;
196 bool m_repositoryPolicyHasBeenSet = false;
197
198 Aws::String m_lifecyclePolicy;
199 bool m_lifecyclePolicyHasBeenSet = false;
200
201 Aws::Vector<RCTAppliedFor> m_appliedFor;
202 bool m_appliedForHasBeenSet = false;
203
204 Aws::String m_customRoleArn;
205 bool m_customRoleArnHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace ECR
210} // namespace Aws
AWS_ECR_API Aws::String SerializePayload() const override
CreateRepositoryCreationTemplateRequest & WithRepositoryPolicy(RepositoryPolicyT &&value)
CreateRepositoryCreationTemplateRequest & WithResourceTags(ResourceTagsT &&value)
CreateRepositoryCreationTemplateRequest & WithLifecyclePolicy(LifecyclePolicyT &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
CreateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateRepositoryCreationTemplateRequest & WithPrefix(PrefixT &&value)
CreateRepositoryCreationTemplateRequest & WithDescription(DescriptionT &&value)
CreateRepositoryCreationTemplateRequest & WithCustomRoleArn(CustomRoleArnT &&value)
CreateRepositoryCreationTemplateRequest & WithAppliedFor(AppliedForT &&value)
CreateRepositoryCreationTemplateRequest & AddAppliedFor(RCTAppliedFor value)
CreateRepositoryCreationTemplateRequest & AddResourceTags(ResourceTagsT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryCreationTemplateRequest & WithImageTagMutability(ImageTagMutability value)
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