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
UpdateRepositoryRequest.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 <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace CodeArtifact
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CODEARTIFACT_API UpdateRepositoryRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateRepository"; }
37
38 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
39
40 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetDomain() const { return m_domain; }
48 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
49 template<typename DomainT = Aws::String>
50 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
51 template<typename DomainT = Aws::String>
52 UpdateRepositoryRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
54
56
60 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
61 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
62 template<typename DomainOwnerT = Aws::String>
63 void SetDomainOwner(DomainOwnerT&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
64 template<typename DomainOwnerT = Aws::String>
65 UpdateRepositoryRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
67
69
72 inline const Aws::String& GetRepository() const { return m_repository; }
73 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
74 template<typename RepositoryT = Aws::String>
75 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
76 template<typename RepositoryT = Aws::String>
77 UpdateRepositoryRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 UpdateRepositoryRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
100 inline const Aws::Vector<UpstreamRepository>& GetUpstreams() const { return m_upstreams; }
101 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
102 template<typename UpstreamsT = Aws::Vector<UpstreamRepository>>
103 void SetUpstreams(UpstreamsT&& value) { m_upstreamsHasBeenSet = true; m_upstreams = std::forward<UpstreamsT>(value); }
104 template<typename UpstreamsT = Aws::Vector<UpstreamRepository>>
105 UpdateRepositoryRequest& WithUpstreams(UpstreamsT&& value) { SetUpstreams(std::forward<UpstreamsT>(value)); return *this;}
106 template<typename UpstreamsT = UpstreamRepository>
107 UpdateRepositoryRequest& AddUpstreams(UpstreamsT&& value) { m_upstreamsHasBeenSet = true; m_upstreams.emplace_back(std::forward<UpstreamsT>(value)); return *this; }
109 private:
110
111 Aws::String m_domain;
112 bool m_domainHasBeenSet = false;
113
114 Aws::String m_domainOwner;
115 bool m_domainOwnerHasBeenSet = false;
116
117 Aws::String m_repository;
118 bool m_repositoryHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
124 bool m_upstreamsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CodeArtifact
129} // 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