AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRepositoryRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/ImageTagMutability.h>
12#include <aws/ecr/model/ImageScanningConfiguration.h>
13#include <aws/ecr/model/EncryptionConfiguration.h>
14#include <aws/ecr/model/Tag.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 "CreateRepository"; }
36
37 AWS_ECR_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
49 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
50 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
51 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
52 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
53 inline CreateRepositoryRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
54 inline CreateRepositoryRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
55 inline CreateRepositoryRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
57
59
67 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
68 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
69 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
70 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
71 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
72 inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
73 inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
74 inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
76
78
84 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
87 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
88 inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
89 inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
90 inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
91 inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
93
95
102 inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
103 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
104 inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
105 inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
109
111
116 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
117 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
118 inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
119 inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
123
125
129 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
130 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
131 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
132 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
136 private:
137
138 Aws::String m_registryId;
139 bool m_registryIdHasBeenSet = false;
140
141 Aws::String m_repositoryName;
142 bool m_repositoryNameHasBeenSet = false;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_tagsHasBeenSet = false;
146
147 ImageTagMutability m_imageTagMutability;
148 bool m_imageTagMutabilityHasBeenSet = false;
149
150 ImageScanningConfiguration m_imageScanningConfiguration;
151 bool m_imageScanningConfigurationHasBeenSet = false;
152
153 EncryptionConfiguration m_encryptionConfiguration;
154 bool m_encryptionConfigurationHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace ECR
159} // namespace Aws
CreateRepositoryRequest & WithRepositoryName(Aws::String &&value)
CreateRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
const ImageTagMutability & GetImageTagMutability() const
const Aws::Vector< Tag > & GetTags() const
void SetImageTagMutability(const ImageTagMutability &value)
CreateRepositoryRequest & WithImageTagMutability(const ImageTagMutability &value)
CreateRepositoryRequest & WithImageTagMutability(ImageTagMutability &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateRepositoryRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
CreateRepositoryRequest & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
CreateRepositoryRequest & WithImageScanningConfiguration(ImageScanningConfiguration &&value)
CreateRepositoryRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRepositoryRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
AWS_ECR_API Aws::String SerializePayload() const override
CreateRepositoryRequest & AddTags(const Tag &value)
CreateRepositoryRequest & AddTags(Tag &&value)
CreateRepositoryRequest & WithRepositoryName(const Aws::String &value)
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
void SetImageTagMutability(ImageTagMutability &&value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
CreateRepositoryRequest & WithRegistryId(Aws::String &&value)
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
CreateRepositoryRequest & WithRegistryId(const char *value)
CreateRepositoryRequest & WithRegistryId(const Aws::String &value)
CreateRepositoryRequest & WithRepositoryName(const char *value)
void SetRepositoryName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &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