AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RepositoryCreationTemplate.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/EncryptionConfigurationForRepositoryCreationTemplate.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/ImageTagMutability.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ecr/model/Tag.h>
14#include <aws/ecr/model/RCTAppliedFor.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ECR
28{
29namespace Model
30{
31
39 {
40 public:
45
46
48
52 inline const Aws::String& GetPrefix() const{ return m_prefix; }
53 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
54 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
55 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
56 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
57 inline RepositoryCreationTemplate& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
58 inline RepositoryCreationTemplate& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
59 inline RepositoryCreationTemplate& WithPrefix(const char* value) { SetPrefix(value); return *this;}
61
63
66 inline const Aws::String& GetDescription() const{ return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 inline RepositoryCreationTemplate& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline RepositoryCreationTemplate& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline RepositoryCreationTemplate& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
81 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
82 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
83 inline void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
84 inline void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
88
90
96 inline const Aws::Vector<Tag>& GetResourceTags() const{ return m_resourceTags; }
97 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
98 inline void SetResourceTags(const Aws::Vector<Tag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
99 inline void SetResourceTags(Aws::Vector<Tag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
101 inline RepositoryCreationTemplate& WithResourceTags(Aws::Vector<Tag>&& value) { SetResourceTags(std::move(value)); return *this;}
102 inline RepositoryCreationTemplate& AddResourceTags(const Tag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
103 inline RepositoryCreationTemplate& AddResourceTags(Tag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
105
107
113 inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
114 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
115 inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
116 inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
120
122
127 inline const Aws::String& GetRepositoryPolicy() const{ return m_repositoryPolicy; }
128 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
129 inline void SetRepositoryPolicy(const Aws::String& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = value; }
130 inline void SetRepositoryPolicy(Aws::String&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::move(value); }
131 inline void SetRepositoryPolicy(const char* value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy.assign(value); }
133 inline RepositoryCreationTemplate& WithRepositoryPolicy(Aws::String&& value) { SetRepositoryPolicy(std::move(value)); return *this;}
134 inline RepositoryCreationTemplate& WithRepositoryPolicy(const char* value) { SetRepositoryPolicy(value); return *this;}
136
138
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); }
147 inline RepositoryCreationTemplate& WithLifecyclePolicy(Aws::String&& value) { SetLifecyclePolicy(std::move(value)); return *this;}
148 inline RepositoryCreationTemplate& 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); }
162 inline RepositoryCreationTemplate& WithAppliedFor(Aws::Vector<RCTAppliedFor>&& value) { SetAppliedFor(std::move(value)); return *this;}
163 inline RepositoryCreationTemplate& AddAppliedFor(const RCTAppliedFor& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
164 inline RepositoryCreationTemplate& AddAppliedFor(RCTAppliedFor&& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(std::move(value)); return *this; }
166
168
174 inline const Aws::String& GetCustomRoleArn() const{ return m_customRoleArn; }
175 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
176 inline void SetCustomRoleArn(const Aws::String& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = value; }
177 inline void SetCustomRoleArn(Aws::String&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::move(value); }
178 inline void SetCustomRoleArn(const char* value) { m_customRoleArnHasBeenSet = true; m_customRoleArn.assign(value); }
179 inline RepositoryCreationTemplate& WithCustomRoleArn(const Aws::String& value) { SetCustomRoleArn(value); return *this;}
180 inline RepositoryCreationTemplate& WithCustomRoleArn(Aws::String&& value) { SetCustomRoleArn(std::move(value)); return *this;}
181 inline RepositoryCreationTemplate& WithCustomRoleArn(const char* value) { SetCustomRoleArn(value); return *this;}
183
185
189 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
190 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
191 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
192 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
193 inline RepositoryCreationTemplate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
194 inline RepositoryCreationTemplate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
196
198
202 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
203 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
204 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
205 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
206 inline RepositoryCreationTemplate& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
207 inline RepositoryCreationTemplate& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
209 private:
210
211 Aws::String m_prefix;
212 bool m_prefixHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
218 bool m_encryptionConfigurationHasBeenSet = false;
219
220 Aws::Vector<Tag> m_resourceTags;
221 bool m_resourceTagsHasBeenSet = false;
222
223 ImageTagMutability m_imageTagMutability;
224 bool m_imageTagMutabilityHasBeenSet = false;
225
226 Aws::String m_repositoryPolicy;
227 bool m_repositoryPolicyHasBeenSet = false;
228
229 Aws::String m_lifecyclePolicy;
230 bool m_lifecyclePolicyHasBeenSet = false;
231
232 Aws::Vector<RCTAppliedFor> m_appliedFor;
233 bool m_appliedForHasBeenSet = false;
234
235 Aws::String m_customRoleArn;
236 bool m_customRoleArnHasBeenSet = false;
237
238 Aws::Utils::DateTime m_createdAt;
239 bool m_createdAtHasBeenSet = false;
240
241 Aws::Utils::DateTime m_updatedAt;
242 bool m_updatedAtHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace ECR
247} // namespace Aws
RepositoryCreationTemplate & WithCreatedAt(const Aws::Utils::DateTime &value)
RepositoryCreationTemplate & WithLifecyclePolicy(Aws::String &&value)
RepositoryCreationTemplate & WithImageTagMutability(const ImageTagMutability &value)
RepositoryCreationTemplate & WithEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
RepositoryCreationTemplate & WithCreatedAt(Aws::Utils::DateTime &&value)
RepositoryCreationTemplate & AddAppliedFor(RCTAppliedFor &&value)
RepositoryCreationTemplate & WithAppliedFor(Aws::Vector< RCTAppliedFor > &&value)
RepositoryCreationTemplate & WithCustomRoleArn(const char *value)
const Aws::Vector< RCTAppliedFor > & GetAppliedFor() const
RepositoryCreationTemplate & WithPrefix(Aws::String &&value)
void SetImageTagMutability(const ImageTagMutability &value)
RepositoryCreationTemplate & WithLifecyclePolicy(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
const ImageTagMutability & GetImageTagMutability() const
RepositoryCreationTemplate & WithCustomRoleArn(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< Tag > & GetResourceTags() const
RepositoryCreationTemplate & WithResourceTags(const Aws::Vector< Tag > &value)
void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate &&value)
RepositoryCreationTemplate & WithEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate &&value)
void SetResourceTags(const Aws::Vector< Tag > &value)
RepositoryCreationTemplate & WithResourceTags(Aws::Vector< Tag > &&value)
RepositoryCreationTemplate & WithDescription(Aws::String &&value)
AWS_ECR_API RepositoryCreationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryCreationTemplate & AddResourceTags(Tag &&value)
RepositoryCreationTemplate & WithUpdatedAt(Aws::Utils::DateTime &&value)
RepositoryCreationTemplate & WithDescription(const Aws::String &value)
RepositoryCreationTemplate & WithRepositoryPolicy(const char *value)
void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RepositoryCreationTemplate & WithUpdatedAt(const Aws::Utils::DateTime &value)
RepositoryCreationTemplate & AddResourceTags(const Tag &value)
void SetAppliedFor(const Aws::Vector< RCTAppliedFor > &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryCreationTemplate & AddAppliedFor(const RCTAppliedFor &value)
RepositoryCreationTemplate & WithAppliedFor(const Aws::Vector< RCTAppliedFor > &value)
RepositoryCreationTemplate & WithDescription(const char *value)
void SetAppliedFor(Aws::Vector< RCTAppliedFor > &&value)
AWS_ECR_API RepositoryCreationTemplate(Aws::Utils::Json::JsonView jsonValue)
RepositoryCreationTemplate & WithImageTagMutability(ImageTagMutability &&value)
RepositoryCreationTemplate & WithPrefix(const char *value)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
RepositoryCreationTemplate & WithCustomRoleArn(const Aws::String &value)
RepositoryCreationTemplate & WithLifecyclePolicy(const Aws::String &value)
RepositoryCreationTemplate & WithRepositoryPolicy(const Aws::String &value)
RepositoryCreationTemplate & WithPrefix(const Aws::String &value)
RepositoryCreationTemplate & WithRepositoryPolicy(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue