AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 template<typename PrefixT = Aws::String>
56 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
57 template<typename PrefixT = Aws::String>
58 UpdateRepositoryCreationTemplateRequest& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateRepositoryCreationTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
75 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
76 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
77 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
78 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
79 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
80 UpdateRepositoryCreationTemplateRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
82
84
90 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
91 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
92 template<typename ResourceTagsT = Aws::Vector<Tag>>
93 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
94 template<typename ResourceTagsT = Aws::Vector<Tag>>
95 UpdateRepositoryCreationTemplateRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
96 template<typename ResourceTagsT = Tag>
97 UpdateRepositoryCreationTemplateRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
99
101
108 inline ImageTagMutability GetImageTagMutability() const { return m_imageTagMutability; }
109 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
110 inline void SetImageTagMutability(ImageTagMutability value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
113
115
120 inline const Aws::String& GetRepositoryPolicy() const { return m_repositoryPolicy; }
121 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
122 template<typename RepositoryPolicyT = Aws::String>
123 void SetRepositoryPolicy(RepositoryPolicyT&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::forward<RepositoryPolicyT>(value); }
124 template<typename RepositoryPolicyT = Aws::String>
125 UpdateRepositoryCreationTemplateRequest& WithRepositoryPolicy(RepositoryPolicyT&& value) { SetRepositoryPolicy(std::forward<RepositoryPolicyT>(value)); return *this;}
127
129
133 inline const Aws::String& GetLifecyclePolicy() const { return m_lifecyclePolicy; }
134 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
135 template<typename LifecyclePolicyT = Aws::String>
136 void SetLifecyclePolicy(LifecyclePolicyT&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value); }
137 template<typename LifecyclePolicyT = Aws::String>
138 UpdateRepositoryCreationTemplateRequest& WithLifecyclePolicy(LifecyclePolicyT&& value) { SetLifecyclePolicy(std::forward<LifecyclePolicyT>(value)); return *this;}
140
142
147 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const { return m_appliedFor; }
148 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
149 template<typename AppliedForT = Aws::Vector<RCTAppliedFor>>
150 void SetAppliedFor(AppliedForT&& value) { m_appliedForHasBeenSet = true; m_appliedFor = std::forward<AppliedForT>(value); }
151 template<typename AppliedForT = Aws::Vector<RCTAppliedFor>>
152 UpdateRepositoryCreationTemplateRequest& WithAppliedFor(AppliedForT&& value) { SetAppliedFor(std::forward<AppliedForT>(value)); return *this;}
153 inline UpdateRepositoryCreationTemplateRequest& AddAppliedFor(RCTAppliedFor value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
155
157
164 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
165 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
166 template<typename CustomRoleArnT = Aws::String>
167 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
168 template<typename CustomRoleArnT = Aws::String>
169 UpdateRepositoryCreationTemplateRequest& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
171 private:
172
173 Aws::String m_prefix;
174 bool m_prefixHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
180 bool m_encryptionConfigurationHasBeenSet = false;
181
182 Aws::Vector<Tag> m_resourceTags;
183 bool m_resourceTagsHasBeenSet = false;
184
186 bool m_imageTagMutabilityHasBeenSet = false;
187
188 Aws::String m_repositoryPolicy;
189 bool m_repositoryPolicyHasBeenSet = false;
190
191 Aws::String m_lifecyclePolicy;
192 bool m_lifecyclePolicyHasBeenSet = false;
193
194 Aws::Vector<RCTAppliedFor> m_appliedFor;
195 bool m_appliedForHasBeenSet = false;
196
197 Aws::String m_customRoleArn;
198 bool m_customRoleArnHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace ECR
203} // namespace Aws
UpdateRepositoryCreationTemplateRequest & AddResourceTags(ResourceTagsT &&value)
UpdateRepositoryCreationTemplateRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
UpdateRepositoryCreationTemplateRequest & AddAppliedFor(RCTAppliedFor value)
UpdateRepositoryCreationTemplateRequest & WithResourceTags(ResourceTagsT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRepositoryCreationTemplateRequest & WithImageTagMutability(ImageTagMutability value)
UpdateRepositoryCreationTemplateRequest & WithAppliedFor(AppliedForT &&value)
UpdateRepositoryCreationTemplateRequest & WithPrefix(PrefixT &&value)
UpdateRepositoryCreationTemplateRequest & WithLifecyclePolicy(LifecyclePolicyT &&value)
AWS_ECR_API Aws::String SerializePayload() const override
UpdateRepositoryCreationTemplateRequest & WithCustomRoleArn(CustomRoleArnT &&value)
UpdateRepositoryCreationTemplateRequest & WithRepositoryPolicy(RepositoryPolicyT &&value)
UpdateRepositoryCreationTemplateRequest & WithDescription(DescriptionT &&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