AWS SDK for C++  1.9.126
AWS SDK for C++
CreateRepositoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
14 #include <aws/ecr/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ECR
20 {
21 namespace 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 "CreateRepository"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
47 
52  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
53 
58  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
59 
64  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
65 
70  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
71 
76  inline CreateRepositoryRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
77 
82  inline CreateRepositoryRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
83 
88  inline CreateRepositoryRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
89 
90 
97  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
98 
105  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
106 
113  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
114 
121  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
122 
129  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
130 
137  inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
138 
145  inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
146 
153  inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
154 
155 
162  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
163 
170  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 
178  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
179 
186  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
194  inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
195 
202  inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
203 
210  inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
211 
218  inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
219 
220 
228  inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
229 
237  inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
238 
246  inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
247 
255  inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
256 
264  inline CreateRepositoryRequest& WithImageTagMutability(const ImageTagMutability& value) { SetImageTagMutability(value); return *this;}
265 
273  inline CreateRepositoryRequest& WithImageTagMutability(ImageTagMutability&& value) { SetImageTagMutability(std::move(value)); return *this;}
274 
275 
281  inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
282 
288  inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
289 
295  inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
296 
302  inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
303 
309  inline CreateRepositoryRequest& WithImageScanningConfiguration(const ImageScanningConfiguration& value) { SetImageScanningConfiguration(value); return *this;}
310 
316  inline CreateRepositoryRequest& WithImageScanningConfiguration(ImageScanningConfiguration&& value) { SetImageScanningConfiguration(std::move(value)); return *this;}
317 
318 
323  inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
324 
329  inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
330 
335  inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
336 
341  inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
342 
347  inline CreateRepositoryRequest& WithEncryptionConfiguration(const EncryptionConfiguration& value) { SetEncryptionConfiguration(value); return *this;}
348 
353  inline CreateRepositoryRequest& WithEncryptionConfiguration(EncryptionConfiguration&& value) { SetEncryptionConfiguration(std::move(value)); return *this;}
354 
355  private:
356 
357  Aws::String m_registryId;
358  bool m_registryIdHasBeenSet;
359 
360  Aws::String m_repositoryName;
361  bool m_repositoryNameHasBeenSet;
362 
363  Aws::Vector<Tag> m_tags;
364  bool m_tagsHasBeenSet;
365 
366  ImageTagMutability m_imageTagMutability;
367  bool m_imageTagMutabilityHasBeenSet;
368 
369  ImageScanningConfiguration m_imageScanningConfiguration;
370  bool m_imageScanningConfigurationHasBeenSet;
371 
372  EncryptionConfiguration m_encryptionConfiguration;
373  bool m_encryptionConfigurationHasBeenSet;
374  };
375 
376 } // namespace Model
377 } // namespace ECR
378 } // namespace Aws
Aws::ECR::Model::ImageScanningConfiguration
Definition: ImageScanningConfiguration.h:31
Aws::ECR::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: CreateRepositoryRequest.h:121
Aws::ECR::Model::CreateRepositoryRequest::ImageScanningConfigurationHasBeenSet
bool ImageScanningConfigurationHasBeenSet() const
Definition: CreateRepositoryRequest.h:288
Aws::ECR::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(Aws::String &&value)
Definition: CreateRepositoryRequest.h:145
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::ImageTagMutability
ImageTagMutability
Definition: ImageTagMutability.h:17
Aws::ECR::Model::CreateRepositoryRequest
Definition: CreateRepositoryRequest.h:27
Aws::ECR::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(Tag &&value)
Definition: CreateRepositoryRequest.h:218
Aws::ECR::Model::CreateRepositoryRequest::GetImageScanningConfiguration
const ImageScanningConfiguration & GetImageScanningConfiguration() const
Definition: CreateRepositoryRequest.h:281
Aws::ECR::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(const Aws::String &value)
Definition: CreateRepositoryRequest.h:137
Aws::ECR::Model::CreateRepositoryRequest::SetImageScanningConfiguration
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition: CreateRepositoryRequest.h:295
Aws::ECR::Model::CreateRepositoryRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: CreateRepositoryRequest.h:97
Aws::ECR::Model::CreateRepositoryRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRepositoryRequest.h:186
Aws::ECR::Model::CreateRepositoryRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: CreateRepositoryRequest.h:52
Aws::ECR::Model::CreateRepositoryRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: CreateRepositoryRequest.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::CreateRepositoryRequest::SetEncryptionConfiguration
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
Definition: CreateRepositoryRequest.h:335
EncryptionConfiguration.h
Aws::ECR::Model::CreateRepositoryRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRepositoryRequest.h:178
Aws::ECR::Model::CreateRepositoryRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: CreateRepositoryRequest.h:58
Aws::ECR::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(const char *value)
Definition: CreateRepositoryRequest.h:153
AWSVector.h
Aws::ECR::Model::CreateRepositoryRequest::WithRegistryId
CreateRepositoryRequest & WithRegistryId(Aws::String &&value)
Definition: CreateRepositoryRequest.h:82
Aws::ECR::Model::CreateRepositoryRequest::WithImageTagMutability
CreateRepositoryRequest & WithImageTagMutability(const ImageTagMutability &value)
Definition: CreateRepositoryRequest.h:264
Aws::ECR::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: CreateRepositoryRequest.h:129
Aws::ECR::Model::CreateRepositoryRequest::WithImageScanningConfiguration
CreateRepositoryRequest & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition: CreateRepositoryRequest.h:309
Aws::ECR::Model::CreateRepositoryRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: CreateRepositoryRequest.h:46
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::CreateRepositoryRequest::WithRegistryId
CreateRepositoryRequest & WithRegistryId(const Aws::String &value)
Definition: CreateRepositoryRequest.h:76
Aws::ECR::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(const Tag &value)
Definition: CreateRepositoryRequest.h:210
ECR_EXPORTS.h
Aws::ECR::Model::CreateRepositoryRequest::SetImageScanningConfiguration
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition: CreateRepositoryRequest.h:302
Aws::ECR::Model::CreateRepositoryRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: CreateRepositoryRequest.h:64
Aws::ECR::Model::CreateRepositoryRequest::WithImageTagMutability
CreateRepositoryRequest & WithImageTagMutability(ImageTagMutability &&value)
Definition: CreateRepositoryRequest.h:273
Aws::ECR::Model::Tag
Definition: Tag.h:35
Aws::ECR::Model::CreateRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRepositoryRequest.h:35
Aws::ECR::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: CreateRepositoryRequest.h:113
Aws::ECR::Model::CreateRepositoryRequest::SetImageTagMutability
void SetImageTagMutability(const ImageTagMutability &value)
Definition: CreateRepositoryRequest.h:246
AWSString.h
Aws::ECR::Model::CreateRepositoryRequest::GetImageTagMutability
const ImageTagMutability & GetImageTagMutability() const
Definition: CreateRepositoryRequest.h:228
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::EncryptionConfiguration
Definition: EncryptionConfiguration.h:44
Aws::ECR::Model::CreateRepositoryRequest::GetEncryptionConfiguration
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition: CreateRepositoryRequest.h:323
Aws::ECR::Model::CreateRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::CreateRepositoryRequest::WithEncryptionConfiguration
CreateRepositoryRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
Definition: CreateRepositoryRequest.h:347
Aws::ECR::Model::CreateRepositoryRequest::WithTags
CreateRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRepositoryRequest.h:202
Aws::ECR::Model::CreateRepositoryRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: CreateRepositoryRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Tag.h
Aws::ECR::Model::CreateRepositoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::CreateRepositoryRequest::WithImageScanningConfiguration
CreateRepositoryRequest & WithImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition: CreateRepositoryRequest.h:316
Aws::ECR::Model::CreateRepositoryRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRepositoryRequest.h:162
Aws::ECR::Model::CreateRepositoryRequest::ImageTagMutabilityHasBeenSet
bool ImageTagMutabilityHasBeenSet() const
Definition: CreateRepositoryRequest.h:237
Aws::ECR::Model::CreateRepositoryRequest::WithRegistryId
CreateRepositoryRequest & WithRegistryId(const char *value)
Definition: CreateRepositoryRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ImageTagMutability.h
Aws::ECR::Model::CreateRepositoryRequest::WithTags
CreateRepositoryRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRepositoryRequest.h:194
ImageScanningConfiguration.h
Aws::ECR::Model::CreateRepositoryRequest::WithEncryptionConfiguration
CreateRepositoryRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
Definition: CreateRepositoryRequest.h:353
Aws::ECR::Model::CreateRepositoryRequest::SetImageTagMutability
void SetImageTagMutability(ImageTagMutability &&value)
Definition: CreateRepositoryRequest.h:255
Aws::ECR::Model::CreateRepositoryRequest::SetEncryptionConfiguration
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
Definition: CreateRepositoryRequest.h:341
Aws::ECR::Model::CreateRepositoryRequest::CreateRepositoryRequest
CreateRepositoryRequest()
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::CreateRepositoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRepositoryRequest.h:170
Aws::ECR::Model::CreateRepositoryRequest::EncryptionConfigurationHasBeenSet
bool EncryptionConfigurationHasBeenSet() const
Definition: CreateRepositoryRequest.h:329