AWS SDK for C++  1.9.71
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 
48  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
49 
56  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
57 
64  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
65 
72  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
73 
80  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
81 
88  inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
89 
96  inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
97 
104  inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
105 
106 
113  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
114 
121  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 
129  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
130 
137  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 
145  inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 
153  inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
154 
161  inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
162 
169  inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
170 
171 
179  inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
180 
188  inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
189 
197  inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
198 
206  inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
207 
215  inline CreateRepositoryRequest& WithImageTagMutability(const ImageTagMutability& value) { SetImageTagMutability(value); return *this;}
216 
224  inline CreateRepositoryRequest& WithImageTagMutability(ImageTagMutability&& value) { SetImageTagMutability(std::move(value)); return *this;}
225 
226 
232  inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
233 
239  inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
240 
246  inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
247 
253  inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
254 
260  inline CreateRepositoryRequest& WithImageScanningConfiguration(const ImageScanningConfiguration& value) { SetImageScanningConfiguration(value); return *this;}
261 
267  inline CreateRepositoryRequest& WithImageScanningConfiguration(ImageScanningConfiguration&& value) { SetImageScanningConfiguration(std::move(value)); return *this;}
268 
269 
274  inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
275 
280  inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
281 
286  inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
287 
292  inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
293 
298  inline CreateRepositoryRequest& WithEncryptionConfiguration(const EncryptionConfiguration& value) { SetEncryptionConfiguration(value); return *this;}
299 
304  inline CreateRepositoryRequest& WithEncryptionConfiguration(EncryptionConfiguration&& value) { SetEncryptionConfiguration(std::move(value)); return *this;}
305 
306  private:
307 
308  Aws::String m_repositoryName;
309  bool m_repositoryNameHasBeenSet;
310 
311  Aws::Vector<Tag> m_tags;
312  bool m_tagsHasBeenSet;
313 
314  ImageTagMutability m_imageTagMutability;
315  bool m_imageTagMutabilityHasBeenSet;
316 
317  ImageScanningConfiguration m_imageScanningConfiguration;
318  bool m_imageScanningConfigurationHasBeenSet;
319 
320  EncryptionConfiguration m_encryptionConfiguration;
321  bool m_encryptionConfigurationHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace ECR
326 } // namespace Aws
Aws::ECR::Model::ImageScanningConfiguration
Definition: ImageScanningConfiguration.h:31
Aws::ECR::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: CreateRepositoryRequest.h:72
Aws::ECR::Model::CreateRepositoryRequest::ImageScanningConfigurationHasBeenSet
bool ImageScanningConfigurationHasBeenSet() const
Definition: CreateRepositoryRequest.h:239
Aws::ECR::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(Aws::String &&value)
Definition: CreateRepositoryRequest.h:96
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:169
Aws::ECR::Model::CreateRepositoryRequest::GetImageScanningConfiguration
const ImageScanningConfiguration & GetImageScanningConfiguration() const
Definition: CreateRepositoryRequest.h:232
Aws::ECR::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(const Aws::String &value)
Definition: CreateRepositoryRequest.h:88
Aws::ECR::Model::CreateRepositoryRequest::SetImageScanningConfiguration
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition: CreateRepositoryRequest.h:246
Aws::ECR::Model::CreateRepositoryRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: CreateRepositoryRequest.h:48
Aws::ECR::Model::CreateRepositoryRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRepositoryRequest.h:137
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:286
EncryptionConfiguration.h
Aws::ECR::Model::CreateRepositoryRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRepositoryRequest.h:129
Aws::ECR::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(const char *value)
Definition: CreateRepositoryRequest.h:104
AWSVector.h
Aws::ECR::Model::CreateRepositoryRequest::WithImageTagMutability
CreateRepositoryRequest & WithImageTagMutability(const ImageTagMutability &value)
Definition: CreateRepositoryRequest.h:215
Aws::ECR::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: CreateRepositoryRequest.h:80
Aws::ECR::Model::CreateRepositoryRequest::WithImageScanningConfiguration
CreateRepositoryRequest & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
Definition: CreateRepositoryRequest.h:260
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(const Tag &value)
Definition: CreateRepositoryRequest.h:161
ECR_EXPORTS.h
Aws::ECR::Model::CreateRepositoryRequest::SetImageScanningConfiguration
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
Definition: CreateRepositoryRequest.h:253
Aws::ECR::Model::CreateRepositoryRequest::WithImageTagMutability
CreateRepositoryRequest & WithImageTagMutability(ImageTagMutability &&value)
Definition: CreateRepositoryRequest.h:224
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:64
Aws::ECR::Model::CreateRepositoryRequest::SetImageTagMutability
void SetImageTagMutability(const ImageTagMutability &value)
Definition: CreateRepositoryRequest.h:197
AWSString.h
Aws::ECR::Model::CreateRepositoryRequest::GetImageTagMutability
const ImageTagMutability & GetImageTagMutability() const
Definition: CreateRepositoryRequest.h:179
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:274
Aws::ECR::Model::CreateRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::CreateRepositoryRequest::WithEncryptionConfiguration
CreateRepositoryRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
Definition: CreateRepositoryRequest.h:298
Aws::ECR::Model::CreateRepositoryRequest::WithTags
CreateRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRepositoryRequest.h:153
Aws::ECR::Model::CreateRepositoryRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: CreateRepositoryRequest.h:56
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:267
Aws::ECR::Model::CreateRepositoryRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRepositoryRequest.h:113
Aws::ECR::Model::CreateRepositoryRequest::ImageTagMutabilityHasBeenSet
bool ImageTagMutabilityHasBeenSet() const
Definition: CreateRepositoryRequest.h:188
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:145
ImageScanningConfiguration.h
Aws::ECR::Model::CreateRepositoryRequest::WithEncryptionConfiguration
CreateRepositoryRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
Definition: CreateRepositoryRequest.h:304
Aws::ECR::Model::CreateRepositoryRequest::SetImageTagMutability
void SetImageTagMutability(ImageTagMutability &&value)
Definition: CreateRepositoryRequest.h:206
Aws::ECR::Model::CreateRepositoryRequest::SetEncryptionConfiguration
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
Definition: CreateRepositoryRequest.h:292
Aws::ECR::Model::CreateRepositoryRequest::CreateRepositoryRequest
CreateRepositoryRequest()
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::CreateRepositoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRepositoryRequest.h:121
Aws::ECR::Model::CreateRepositoryRequest::EncryptionConfigurationHasBeenSet
bool EncryptionConfigurationHasBeenSet() const
Definition: CreateRepositoryRequest.h:280