AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateRepositoryRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/CodeArtifactRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeartifact/model/UpstreamRepository.h>
12#include <aws/codeartifact/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace CodeArtifact
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CODEARTIFACT_API CreateRepositoryRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; }
38
39 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
40
41 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetDomain() const { return m_domain; }
49 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
50 template<typename DomainT = Aws::String>
51 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
52 template<typename DomainT = Aws::String>
53 CreateRepositoryRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
55
57
61 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
62 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
63 template<typename DomainOwnerT = Aws::String>
64 void SetDomainOwner(DomainOwnerT&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
65 template<typename DomainOwnerT = Aws::String>
66 CreateRepositoryRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
68
70
73 inline const Aws::String& GetRepository() const { return m_repository; }
74 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
75 template<typename RepositoryT = Aws::String>
76 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
77 template<typename RepositoryT = Aws::String>
78 CreateRepositoryRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 CreateRepositoryRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
101 inline const Aws::Vector<UpstreamRepository>& GetUpstreams() const { return m_upstreams; }
102 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
103 template<typename UpstreamsT = Aws::Vector<UpstreamRepository>>
104 void SetUpstreams(UpstreamsT&& value) { m_upstreamsHasBeenSet = true; m_upstreams = std::forward<UpstreamsT>(value); }
105 template<typename UpstreamsT = Aws::Vector<UpstreamRepository>>
106 CreateRepositoryRequest& WithUpstreams(UpstreamsT&& value) { SetUpstreams(std::forward<UpstreamsT>(value)); return *this;}
107 template<typename UpstreamsT = UpstreamRepository>
108 CreateRepositoryRequest& AddUpstreams(UpstreamsT&& value) { m_upstreamsHasBeenSet = true; m_upstreams.emplace_back(std::forward<UpstreamsT>(value)); return *this; }
110
112
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Vector<Tag>>
120 CreateRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsT = Tag>
122 CreateRepositoryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
124 private:
125
126 Aws::String m_domain;
127 bool m_domainHasBeenSet = false;
128
129 Aws::String m_domainOwner;
130 bool m_domainOwnerHasBeenSet = false;
131
132 Aws::String m_repository;
133 bool m_repositoryHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
139 bool m_upstreamsHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_tagsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CodeArtifact
147} // 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