AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRepositoryRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/Tag.h>
10#include <aws/codeartifact/model/UpstreamRepository.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace CodeArtifact {
21namespace Model {
22
26 public:
27 AWS_CODEARTIFACT_API CreateRepositoryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; }
34
35 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
36
37 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetDomain() const { return m_domain; }
44 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
45 template <typename DomainT = Aws::String>
46 void SetDomain(DomainT&& value) {
47 m_domainHasBeenSet = true;
48 m_domain = std::forward<DomainT>(value);
49 }
50 template <typename DomainT = Aws::String>
52 SetDomain(std::forward<DomainT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
63 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
64 template <typename DomainOwnerT = Aws::String>
65 void SetDomainOwner(DomainOwnerT&& value) {
66 m_domainOwnerHasBeenSet = true;
67 m_domainOwner = std::forward<DomainOwnerT>(value);
68 }
69 template <typename DomainOwnerT = Aws::String>
71 SetDomainOwner(std::forward<DomainOwnerT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRepository() const { return m_repository; }
81 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
82 template <typename RepositoryT = Aws::String>
83 void SetRepository(RepositoryT&& value) {
84 m_repositoryHasBeenSet = true;
85 m_repository = std::forward<RepositoryT>(value);
86 }
87 template <typename RepositoryT = Aws::String>
89 SetRepository(std::forward<RepositoryT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
120 inline const Aws::Vector<UpstreamRepository>& GetUpstreams() const { return m_upstreams; }
121 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
122 template <typename UpstreamsT = Aws::Vector<UpstreamRepository>>
123 void SetUpstreams(UpstreamsT&& value) {
124 m_upstreamsHasBeenSet = true;
125 m_upstreams = std::forward<UpstreamsT>(value);
126 }
127 template <typename UpstreamsT = Aws::Vector<UpstreamRepository>>
129 SetUpstreams(std::forward<UpstreamsT>(value));
130 return *this;
131 }
132 template <typename UpstreamsT = UpstreamRepository>
134 m_upstreamsHasBeenSet = true;
135 m_upstreams.emplace_back(std::forward<UpstreamsT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_domain;
165
166 Aws::String m_domainOwner;
167
168 Aws::String m_repository;
169
170 Aws::String m_description;
171
173
174 Aws::Vector<Tag> m_tags;
175 bool m_domainHasBeenSet = false;
176 bool m_domainOwnerHasBeenSet = false;
177 bool m_repositoryHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_upstreamsHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace CodeArtifact
185} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateRepositoryRequest & WithDomain(DomainT &&value)
CreateRepositoryRequest & WithUpstreams(UpstreamsT &&value)
CreateRepositoryRequest & WithTags(TagsT &&value)
CreateRepositoryRequest & WithRepository(RepositoryT &&value)
CreateRepositoryRequest & WithDomainOwner(DomainOwnerT &&value)
CreateRepositoryRequest & AddTags(TagsT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateRepositoryRequest & AddUpstreams(UpstreamsT &&value)
AWS_CODEARTIFACT_API CreateRepositoryRequest()=default
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
const Aws::Vector< UpstreamRepository > & GetUpstreams() const
CreateRepositoryRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector