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/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();
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 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
51 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
52 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
53 inline CreateRepositoryRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
54 inline CreateRepositoryRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
55 inline CreateRepositoryRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
57
59
63 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
64 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
65 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
66 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
67 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
68 inline CreateRepositoryRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
69 inline CreateRepositoryRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
70 inline CreateRepositoryRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
72
74
77 inline const Aws::String& GetRepository() const{ return m_repository; }
78 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
79 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
80 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
81 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
82 inline CreateRepositoryRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
83 inline CreateRepositoryRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
84 inline CreateRepositoryRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline CreateRepositoryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline CreateRepositoryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline CreateRepositoryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
109 inline const Aws::Vector<UpstreamRepository>& GetUpstreams() const{ return m_upstreams; }
110 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
111 inline void SetUpstreams(const Aws::Vector<UpstreamRepository>& value) { m_upstreamsHasBeenSet = true; m_upstreams = value; }
112 inline void SetUpstreams(Aws::Vector<UpstreamRepository>&& value) { m_upstreamsHasBeenSet = true; m_upstreams = std::move(value); }
114 inline CreateRepositoryRequest& WithUpstreams(Aws::Vector<UpstreamRepository>&& value) { SetUpstreams(std::move(value)); return *this;}
115 inline CreateRepositoryRequest& AddUpstreams(const UpstreamRepository& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(value); return *this; }
116 inline CreateRepositoryRequest& AddUpstreams(UpstreamRepository&& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(std::move(value)); return *this; }
118
120
123 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
126 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
127 inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
128 inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
129 inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
130 inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132 private:
133
134 Aws::String m_domain;
135 bool m_domainHasBeenSet = false;
136
137 Aws::String m_domainOwner;
138 bool m_domainOwnerHasBeenSet = false;
139
140 Aws::String m_repository;
141 bool m_repositoryHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
147 bool m_upstreamsHasBeenSet = false;
148
149 Aws::Vector<Tag> m_tags;
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace CodeArtifact
155} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateRepositoryRequest & WithDomainOwner(Aws::String &&value)
CreateRepositoryRequest & WithDomain(Aws::String &&value)
CreateRepositoryRequest & WithDescription(const Aws::String &value)
CreateRepositoryRequest & WithDomain(const char *value)
void SetUpstreams(Aws::Vector< UpstreamRepository > &&value)
void SetUpstreams(const Aws::Vector< UpstreamRepository > &value)
CreateRepositoryRequest & AddUpstreams(const UpstreamRepository &value)
CreateRepositoryRequest & WithRepository(const char *value)
CreateRepositoryRequest & WithRepository(const Aws::String &value)
CreateRepositoryRequest & WithDomain(const Aws::String &value)
CreateRepositoryRequest & AddUpstreams(UpstreamRepository &&value)
CreateRepositoryRequest & WithRepository(Aws::String &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRepositoryRequest & WithUpstreams(Aws::Vector< UpstreamRepository > &&value)
CreateRepositoryRequest & WithDescription(Aws::String &&value)
CreateRepositoryRequest & WithUpstreams(const Aws::Vector< UpstreamRepository > &value)
CreateRepositoryRequest & WithDomainOwner(const Aws::String &value)
CreateRepositoryRequest & WithDescription(const char *value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
CreateRepositoryRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< UpstreamRepository > & GetUpstreams() const
CreateRepositoryRequest & AddTags(const Tag &value)
CreateRepositoryRequest & WithDomainOwner(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector