AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRepositoryCreationTemplateRequest.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 "UpdateRepositoryCreationTemplate"; }
36
37 AWS_ECR_API Aws::String SerializePayload() const override;
38
40
41
43
53 inline const Aws::String& GetPrefix() const{ return m_prefix; }
54 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
55 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
56 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
57 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
58 inline UpdateRepositoryCreationTemplateRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
59 inline UpdateRepositoryCreationTemplateRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
60 inline UpdateRepositoryCreationTemplateRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
62
64
67 inline const Aws::String& GetDescription() const{ return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
70 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
71 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
73 inline UpdateRepositoryCreationTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
74 inline UpdateRepositoryCreationTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
76
78
79 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
80 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
81 inline void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
82 inline void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
86
88
94 inline const Aws::Vector<Tag>& GetResourceTags() const{ return m_resourceTags; }
95 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
96 inline void SetResourceTags(const Aws::Vector<Tag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
97 inline void SetResourceTags(Aws::Vector<Tag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
100 inline UpdateRepositoryCreationTemplateRequest& AddResourceTags(const Tag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
101 inline UpdateRepositoryCreationTemplateRequest& AddResourceTags(Tag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
103
105
112 inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
113 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
114 inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
115 inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
119
121
126 inline const Aws::String& GetRepositoryPolicy() const{ return m_repositoryPolicy; }
127 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
128 inline void SetRepositoryPolicy(const Aws::String& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = value; }
129 inline void SetRepositoryPolicy(Aws::String&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::move(value); }
130 inline void SetRepositoryPolicy(const char* value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy.assign(value); }
133 inline UpdateRepositoryCreationTemplateRequest& WithRepositoryPolicy(const char* value) { SetRepositoryPolicy(value); return *this;}
135
137
141 inline const Aws::String& GetLifecyclePolicy() const{ return m_lifecyclePolicy; }
142 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
143 inline void SetLifecyclePolicy(const Aws::String& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = value; }
144 inline void SetLifecyclePolicy(Aws::String&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::move(value); }
145 inline void SetLifecyclePolicy(const char* value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy.assign(value); }
148 inline UpdateRepositoryCreationTemplateRequest& WithLifecyclePolicy(const char* value) { SetLifecyclePolicy(value); return *this;}
150
152
157 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const{ return m_appliedFor; }
158 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
159 inline void SetAppliedFor(const Aws::Vector<RCTAppliedFor>& value) { m_appliedForHasBeenSet = true; m_appliedFor = value; }
160 inline void SetAppliedFor(Aws::Vector<RCTAppliedFor>&& value) { m_appliedForHasBeenSet = true; m_appliedFor = std::move(value); }
163 inline UpdateRepositoryCreationTemplateRequest& AddAppliedFor(const RCTAppliedFor& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
164 inline UpdateRepositoryCreationTemplateRequest& AddAppliedFor(RCTAppliedFor&& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(std::move(value)); return *this; }
166
168
175 inline const Aws::String& GetCustomRoleArn() const{ return m_customRoleArn; }
176 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
177 inline void SetCustomRoleArn(const Aws::String& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = value; }
178 inline void SetCustomRoleArn(Aws::String&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::move(value); }
179 inline void SetCustomRoleArn(const char* value) { m_customRoleArnHasBeenSet = true; m_customRoleArn.assign(value); }
182 inline UpdateRepositoryCreationTemplateRequest& WithCustomRoleArn(const char* value) { SetCustomRoleArn(value); return *this;}
184 private:
185
186 Aws::String m_prefix;
187 bool m_prefixHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
193 bool m_encryptionConfigurationHasBeenSet = false;
194
195 Aws::Vector<Tag> m_resourceTags;
196 bool m_resourceTagsHasBeenSet = false;
197
198 ImageTagMutability m_imageTagMutability;
199 bool m_imageTagMutabilityHasBeenSet = false;
200
201 Aws::String m_repositoryPolicy;
202 bool m_repositoryPolicyHasBeenSet = false;
203
204 Aws::String m_lifecyclePolicy;
205 bool m_lifecyclePolicyHasBeenSet = false;
206
207 Aws::Vector<RCTAppliedFor> m_appliedFor;
208 bool m_appliedForHasBeenSet = false;
209
210 Aws::String m_customRoleArn;
211 bool m_customRoleArnHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace ECR
216} // namespace Aws
UpdateRepositoryCreationTemplateRequest & WithImageTagMutability(ImageTagMutability &&value)
UpdateRepositoryCreationTemplateRequest & WithCustomRoleArn(const char *value)
UpdateRepositoryCreationTemplateRequest & WithDescription(const Aws::String &value)
UpdateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate &&value)
UpdateRepositoryCreationTemplateRequest & WithLifecyclePolicy(Aws::String &&value)
void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate &&value)
UpdateRepositoryCreationTemplateRequest & AddResourceTags(Tag &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
UpdateRepositoryCreationTemplateRequest & AddResourceTags(const Tag &value)
UpdateRepositoryCreationTemplateRequest & WithDescription(Aws::String &&value)
UpdateRepositoryCreationTemplateRequest & WithAppliedFor(const Aws::Vector< RCTAppliedFor > &value)
UpdateRepositoryCreationTemplateRequest & WithResourceTags(Aws::Vector< Tag > &&value)
UpdateRepositoryCreationTemplateRequest & AddAppliedFor(const RCTAppliedFor &value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRepositoryCreationTemplateRequest & WithCustomRoleArn(const Aws::String &value)
UpdateRepositoryCreationTemplateRequest & WithDescription(const char *value)
UpdateRepositoryCreationTemplateRequest & WithLifecyclePolicy(const Aws::String &value)
UpdateRepositoryCreationTemplateRequest & WithCustomRoleArn(Aws::String &&value)
UpdateRepositoryCreationTemplateRequest & WithRepositoryPolicy(Aws::String &&value)
UpdateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate &value)
UpdateRepositoryCreationTemplateRequest & WithLifecyclePolicy(const char *value)
void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate &value)
UpdateRepositoryCreationTemplateRequest & WithPrefix(const Aws::String &value)
UpdateRepositoryCreationTemplateRequest & WithPrefix(Aws::String &&value)
AWS_ECR_API Aws::String SerializePayload() const override
UpdateRepositoryCreationTemplateRequest & WithPrefix(const char *value)
UpdateRepositoryCreationTemplateRequest & WithResourceTags(const Aws::Vector< Tag > &value)
UpdateRepositoryCreationTemplateRequest & WithImageTagMutability(const ImageTagMutability &value)
UpdateRepositoryCreationTemplateRequest & WithRepositoryPolicy(const char *value)
UpdateRepositoryCreationTemplateRequest & WithRepositoryPolicy(const Aws::String &value)
UpdateRepositoryCreationTemplateRequest & WithAppliedFor(Aws::Vector< RCTAppliedFor > &&value)
UpdateRepositoryCreationTemplateRequest & AddAppliedFor(RCTAppliedFor &&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