AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
41 AWS_ECR_API RepositoryCreationTemplate() = default;
45
46
48
52 inline const Aws::String& GetPrefix() const { return m_prefix; }
53 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
54 template<typename PrefixT = Aws::String>
55 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
56 template<typename PrefixT = Aws::String>
57 RepositoryCreationTemplate& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 RepositoryCreationTemplate& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
77 inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
78 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
79 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
80 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
81 template<typename EncryptionConfigurationT = EncryptionConfigurationForRepositoryCreationTemplate>
82 RepositoryCreationTemplate& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
84
86
92 inline const Aws::Vector<Tag>& GetResourceTags() const { return m_resourceTags; }
93 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
94 template<typename ResourceTagsT = Aws::Vector<Tag>>
95 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
96 template<typename ResourceTagsT = Aws::Vector<Tag>>
97 RepositoryCreationTemplate& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
98 template<typename ResourceTagsT = Tag>
99 RepositoryCreationTemplate& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
101
103
110 inline ImageTagMutability GetImageTagMutability() const { return m_imageTagMutability; }
111 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
112 inline void SetImageTagMutability(ImageTagMutability value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
115
117
122 inline const Aws::String& GetRepositoryPolicy() const { return m_repositoryPolicy; }
123 inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
124 template<typename RepositoryPolicyT = Aws::String>
125 void SetRepositoryPolicy(RepositoryPolicyT&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::forward<RepositoryPolicyT>(value); }
126 template<typename RepositoryPolicyT = Aws::String>
127 RepositoryCreationTemplate& WithRepositoryPolicy(RepositoryPolicyT&& value) { SetRepositoryPolicy(std::forward<RepositoryPolicyT>(value)); return *this;}
129
131
134 inline const Aws::String& GetLifecyclePolicy() const { return m_lifecyclePolicy; }
135 inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
136 template<typename LifecyclePolicyT = Aws::String>
137 void SetLifecyclePolicy(LifecyclePolicyT&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::forward<LifecyclePolicyT>(value); }
138 template<typename LifecyclePolicyT = Aws::String>
139 RepositoryCreationTemplate& WithLifecyclePolicy(LifecyclePolicyT&& value) { SetLifecyclePolicy(std::forward<LifecyclePolicyT>(value)); return *this;}
141
143
148 inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const { return m_appliedFor; }
149 inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
150 template<typename AppliedForT = Aws::Vector<RCTAppliedFor>>
151 void SetAppliedFor(AppliedForT&& value) { m_appliedForHasBeenSet = true; m_appliedFor = std::forward<AppliedForT>(value); }
152 template<typename AppliedForT = Aws::Vector<RCTAppliedFor>>
153 RepositoryCreationTemplate& WithAppliedFor(AppliedForT&& value) { SetAppliedFor(std::forward<AppliedForT>(value)); return *this;}
154 inline RepositoryCreationTemplate& AddAppliedFor(RCTAppliedFor value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
156
158
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 RepositoryCreationTemplate& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
171
173
177 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
178 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
179 template<typename CreatedAtT = Aws::Utils::DateTime>
180 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
181 template<typename CreatedAtT = Aws::Utils::DateTime>
182 RepositoryCreationTemplate& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
184
186
190 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
191 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
192 template<typename UpdatedAtT = Aws::Utils::DateTime>
193 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
194 template<typename UpdatedAtT = Aws::Utils::DateTime>
195 RepositoryCreationTemplate& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
197 private:
198
199 Aws::String m_prefix;
200 bool m_prefixHasBeenSet = false;
201
202 Aws::String m_description;
203 bool m_descriptionHasBeenSet = false;
204
206 bool m_encryptionConfigurationHasBeenSet = false;
207
208 Aws::Vector<Tag> m_resourceTags;
209 bool m_resourceTagsHasBeenSet = false;
210
212 bool m_imageTagMutabilityHasBeenSet = false;
213
214 Aws::String m_repositoryPolicy;
215 bool m_repositoryPolicyHasBeenSet = false;
216
217 Aws::String m_lifecyclePolicy;
218 bool m_lifecyclePolicyHasBeenSet = false;
219
220 Aws::Vector<RCTAppliedFor> m_appliedFor;
221 bool m_appliedForHasBeenSet = false;
222
223 Aws::String m_customRoleArn;
224 bool m_customRoleArnHasBeenSet = false;
225
226 Aws::Utils::DateTime m_createdAt{};
227 bool m_createdAtHasBeenSet = false;
228
229 Aws::Utils::DateTime m_updatedAt{};
230 bool m_updatedAtHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace ECR
235} // namespace Aws
RepositoryCreationTemplate & WithResourceTags(ResourceTagsT &&value)
RepositoryCreationTemplate & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< RCTAppliedFor > & GetAppliedFor() const
RepositoryCreationTemplate & WithPrefix(PrefixT &&value)
RepositoryCreationTemplate & WithAppliedFor(AppliedForT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Tag > & GetResourceTags() const
RepositoryCreationTemplate & WithRepositoryPolicy(RepositoryPolicyT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
RepositoryCreationTemplate & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
RepositoryCreationTemplate & WithCustomRoleArn(CustomRoleArnT &&value)
AWS_ECR_API RepositoryCreationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryCreationTemplate & WithImageTagMutability(ImageTagMutability value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RepositoryCreationTemplate & WithLifecyclePolicy(LifecyclePolicyT &&value)
RepositoryCreationTemplate & AddAppliedFor(RCTAppliedFor value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryCreationTemplate & WithUpdatedAt(UpdatedAtT &&value)
AWS_ECR_API RepositoryCreationTemplate(Aws::Utils::Json::JsonView jsonValue)
const EncryptionConfigurationForRepositoryCreationTemplate & GetEncryptionConfiguration() const
RepositoryCreationTemplate & WithCreatedAt(CreatedAtT &&value)
AWS_ECR_API RepositoryCreationTemplate()=default
RepositoryCreationTemplate & WithDescription(DescriptionT &&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