AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
29 AWS_ECR_API CreateRepositoryRequest() = default;
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 template<typename RegistryIdT = Aws::String>
51 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
52 template<typename RegistryIdT = Aws::String>
53 CreateRepositoryRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
55
57
65 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
66 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
67 template<typename RepositoryNameT = Aws::String>
68 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
69 template<typename RepositoryNameT = Aws::String>
70 CreateRepositoryRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
72
74
80 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template<typename TagsT = Aws::Vector<Tag>>
83 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
84 template<typename TagsT = Aws::Vector<Tag>>
85 CreateRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
86 template<typename TagsT = Tag>
87 CreateRepositoryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
89
91
98 inline ImageTagMutability GetImageTagMutability() const { return m_imageTagMutability; }
99 inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
100 inline void SetImageTagMutability(ImageTagMutability value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
103
105
110 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
111 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
112 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
113 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value); }
114 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
115 CreateRepositoryRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) { SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value)); return *this;}
117
119
123 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
124 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
125 template<typename EncryptionConfigurationT = EncryptionConfiguration>
126 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
127 template<typename EncryptionConfigurationT = EncryptionConfiguration>
128 CreateRepositoryRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
130 private:
131
132 Aws::String m_registryId;
133 bool m_registryIdHasBeenSet = false;
134
135 Aws::String m_repositoryName;
136 bool m_repositoryNameHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140
142 bool m_imageTagMutabilityHasBeenSet = false;
143
144 ImageScanningConfiguration m_imageScanningConfiguration;
145 bool m_imageScanningConfigurationHasBeenSet = false;
146
147 EncryptionConfiguration m_encryptionConfiguration;
148 bool m_encryptionConfigurationHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ECR
153} // namespace Aws
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
void SetImageTagMutability(ImageTagMutability value)
const Aws::Vector< Tag > & GetTags() const
CreateRepositoryRequest & WithRepositoryName(RepositoryNameT &&value)
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECR_API Aws::String SerializePayload() const override
AWS_ECR_API CreateRepositoryRequest()=default
CreateRepositoryRequest & AddTags(TagsT &&value)
CreateRepositoryRequest & WithImageTagMutability(ImageTagMutability value)
CreateRepositoryRequest & WithRegistryId(RegistryIdT &&value)
CreateRepositoryRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateRepositoryRequest & WithTags(TagsT &&value)
CreateRepositoryRequest & WithImageScanningConfiguration(ImageScanningConfigurationT &&value)
void SetRepositoryName(RepositoryNameT &&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