AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateRepositoryRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/UpstreamRepository.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace CodeArtifact {
20namespace Model {
21
25 public:
26 AWS_CODEARTIFACT_API UpdateRepositoryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRepository"; }
33
34 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
35
36 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetDomain() const { return m_domain; }
43 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
44 template <typename DomainT = Aws::String>
45 void SetDomain(DomainT&& value) {
46 m_domainHasBeenSet = true;
47 m_domain = std::forward<DomainT>(value);
48 }
49 template <typename DomainT = Aws::String>
51 SetDomain(std::forward<DomainT>(value));
52 return *this;
53 }
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) {
65 m_domainOwnerHasBeenSet = true;
66 m_domainOwner = std::forward<DomainOwnerT>(value);
67 }
68 template <typename DomainOwnerT = Aws::String>
70 SetDomainOwner(std::forward<DomainOwnerT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetRepository() const { return m_repository; }
80 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
81 template <typename RepositoryT = Aws::String>
82 void SetRepository(RepositoryT&& value) {
83 m_repositoryHasBeenSet = true;
84 m_repository = std::forward<RepositoryT>(value);
85 }
86 template <typename RepositoryT = Aws::String>
88 SetRepository(std::forward<RepositoryT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
119 inline const Aws::Vector<UpstreamRepository>& GetUpstreams() const { return m_upstreams; }
120 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
121 template <typename UpstreamsT = Aws::Vector<UpstreamRepository>>
122 void SetUpstreams(UpstreamsT&& value) {
123 m_upstreamsHasBeenSet = true;
124 m_upstreams = std::forward<UpstreamsT>(value);
125 }
126 template <typename UpstreamsT = Aws::Vector<UpstreamRepository>>
128 SetUpstreams(std::forward<UpstreamsT>(value));
129 return *this;
130 }
131 template <typename UpstreamsT = UpstreamRepository>
133 m_upstreamsHasBeenSet = true;
134 m_upstreams.emplace_back(std::forward<UpstreamsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_domain;
140
141 Aws::String m_domainOwner;
142
143 Aws::String m_repository;
144
145 Aws::String m_description;
146
148 bool m_domainHasBeenSet = false;
149 bool m_domainOwnerHasBeenSet = false;
150 bool m_repositoryHasBeenSet = false;
151 bool m_descriptionHasBeenSet = false;
152 bool m_upstreamsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace CodeArtifact
157} // namespace Aws
UpdateRepositoryRequest & WithDomain(DomainT &&value)
UpdateRepositoryRequest & AddUpstreams(UpstreamsT &&value)
UpdateRepositoryRequest & WithRepository(RepositoryT &&value)
UpdateRepositoryRequest & WithDescription(DescriptionT &&value)
UpdateRepositoryRequest & WithDomainOwner(DomainOwnerT &&value)
AWS_CODEARTIFACT_API UpdateRepositoryRequest()=default
UpdateRepositoryRequest & WithUpstreams(UpstreamsT &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< UpstreamRepository > & GetUpstreams() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector