AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
61 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
62 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
63 inline CreateRepositoryCreationTemplateRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
64 inline CreateRepositoryCreationTemplateRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
65 inline CreateRepositoryCreationTemplateRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreateRepositoryCreationTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateRepositoryCreationTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
87 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
88 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
89 inline void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
90 inline void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
94
96
102 inline const Aws::Vector<Tag>& GetResourceTags() const{ return m_resourceTags; }
103 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
104 inline void SetResourceTags(const Aws::Vector<Tag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
105 inline void SetResourceTags(Aws::Vector<Tag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
108 inline CreateRepositoryCreationTemplateRequest& AddResourceTags(const Tag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
109 inline CreateRepositoryCreationTemplateRequest& AddResourceTags(Tag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
111
113
120 inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
121 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
122 inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
123 inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
127
129
134 inline const Aws::String& GetRepositoryPolicy() const{ return m_repositoryPolicy; }
135 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
136 inline void SetRepositoryPolicy(const Aws::String& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = value; }
137 inline void SetRepositoryPolicy(Aws::String&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::move(value); }
138 inline void SetRepositoryPolicy(const char* value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy.assign(value); }
141 inline CreateRepositoryCreationTemplateRequest& WithRepositoryPolicy(const char* value) { SetRepositoryPolicy(value); return *this;}
143
145
148 inline const Aws::String& GetLifecyclePolicy() const{ return m_lifecyclePolicy; }
149 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
150 inline void SetLifecyclePolicy(const Aws::String& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = value; }
151 inline void SetLifecyclePolicy(Aws::String&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::move(value); }
152 inline void SetLifecyclePolicy(const char* value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy.assign(value); }
155 inline CreateRepositoryCreationTemplateRequest& WithLifecyclePolicy(const char* value) { SetLifecyclePolicy(value); return *this;}
157
159
164 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const{ return m_appliedFor; }
165 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
166 inline void SetAppliedFor(const Aws::Vector<RCTAppliedFor>& value) { m_appliedForHasBeenSet = true; m_appliedFor = value; }
167 inline void SetAppliedFor(Aws::Vector<RCTAppliedFor>&& value) { m_appliedForHasBeenSet = true; m_appliedFor = std::move(value); }
170 inline CreateRepositoryCreationTemplateRequest& AddAppliedFor(const RCTAppliedFor& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
171 inline CreateRepositoryCreationTemplateRequest& AddAppliedFor(RCTAppliedFor&& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(std::move(value)); return *this; }
173
175
182 inline const Aws::String& GetCustomRoleArn() const{ return m_customRoleArn; }
183 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
184 inline void SetCustomRoleArn(const Aws::String& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = value; }
185 inline void SetCustomRoleArn(Aws::String&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::move(value); }
186 inline void SetCustomRoleArn(const char* value) { m_customRoleArnHasBeenSet = true; m_customRoleArn.assign(value); }
189 inline CreateRepositoryCreationTemplateRequest& WithCustomRoleArn(const char* value) { SetCustomRoleArn(value); return *this;}
191 private:
192
193 Aws::String m_prefix;
194 bool m_prefixHasBeenSet = false;
195
196 Aws::String m_description;
197 bool m_descriptionHasBeenSet = false;
198
200 bool m_encryptionConfigurationHasBeenSet = false;
201
202 Aws::Vector<Tag> m_resourceTags;
203 bool m_resourceTagsHasBeenSet = false;
204
205 ImageTagMutability m_imageTagMutability;
206 bool m_imageTagMutabilityHasBeenSet = false;
207
208 Aws::String m_repositoryPolicy;
209 bool m_repositoryPolicyHasBeenSet = false;
210
211 Aws::String m_lifecyclePolicy;
212 bool m_lifecyclePolicyHasBeenSet = false;
213
214 Aws::Vector<RCTAppliedFor> m_appliedFor;
215 bool m_appliedForHasBeenSet = false;
216
217 Aws::String m_customRoleArn;
218 bool m_customRoleArnHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace ECR
223} // namespace Aws
CreateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate &&value)
AWS_ECR_API Aws::String SerializePayload() const override
CreateRepositoryCreationTemplateRequest & WithLifecyclePolicy(Aws::String &&value)
CreateRepositoryCreationTemplateRequest & WithPrefix(Aws::String &&value)
CreateRepositoryCreationTemplateRequest & WithResourceTags(const Aws::Vector< Tag > &value)
CreateRepositoryCreationTemplateRequest & WithPrefix(const Aws::String &value)
CreateRepositoryCreationTemplateRequest & WithImageTagMutability(ImageTagMutability &&value)
CreateRepositoryCreationTemplateRequest & WithResourceTags(Aws::Vector< Tag > &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
CreateRepositoryCreationTemplateRequest & WithDescription(Aws::String &&value)
CreateRepositoryCreationTemplateRequest & AddResourceTags(Tag &&value)
CreateRepositoryCreationTemplateRequest & WithDescription(const char *value)
CreateRepositoryCreationTemplateRequest & WithAppliedFor(Aws::Vector< RCTAppliedFor > &&value)
CreateRepositoryCreationTemplateRequest & WithCustomRoleArn(const char *value)
CreateRepositoryCreationTemplateRequest & AddAppliedFor(const RCTAppliedFor &value)
CreateRepositoryCreationTemplateRequest & AddAppliedFor(RCTAppliedFor &&value)
CreateRepositoryCreationTemplateRequest & WithAppliedFor(const Aws::Vector< RCTAppliedFor > &value)
void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate &&value)
void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate &value)
CreateRepositoryCreationTemplateRequest & WithLifecyclePolicy(const char *value)
CreateRepositoryCreationTemplateRequest & WithCustomRoleArn(const Aws::String &value)
CreateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate &value)
CreateRepositoryCreationTemplateRequest & WithDescription(const Aws::String &value)
CreateRepositoryCreationTemplateRequest & WithRepositoryPolicy(Aws::String &&value)
CreateRepositoryCreationTemplateRequest & WithPrefix(const char *value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryCreationTemplateRequest & WithLifecyclePolicy(const Aws::String &value)
CreateRepositoryCreationTemplateRequest & WithRepositoryPolicy(const char *value)
CreateRepositoryCreationTemplateRequest & AddResourceTags(const Tag &value)
CreateRepositoryCreationTemplateRequest & WithRepositoryPolicy(const Aws::String &value)
CreateRepositoryCreationTemplateRequest & WithCustomRoleArn(Aws::String &&value)
CreateRepositoryCreationTemplateRequest & WithImageTagMutability(const 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