AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
50 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
51 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
52 inline UpdateRepositoryRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
53 inline UpdateRepositoryRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
54 inline UpdateRepositoryRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
56
58
62 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
63 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
64 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
65 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
66 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
67 inline UpdateRepositoryRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
68 inline UpdateRepositoryRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
69 inline UpdateRepositoryRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
71
73
76 inline const Aws::String& GetRepository() const{ return m_repository; }
77 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
78 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
79 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
80 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
81 inline UpdateRepositoryRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
82 inline UpdateRepositoryRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
83 inline UpdateRepositoryRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline UpdateRepositoryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline UpdateRepositoryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline UpdateRepositoryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
108 inline const Aws::Vector<UpstreamRepository>& GetUpstreams() const{ return m_upstreams; }
109 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
110 inline void SetUpstreams(const Aws::Vector<UpstreamRepository>& value) { m_upstreamsHasBeenSet = true; m_upstreams = value; }
111 inline void SetUpstreams(Aws::Vector<UpstreamRepository>&& value) { m_upstreamsHasBeenSet = true; m_upstreams = std::move(value); }
113 inline UpdateRepositoryRequest& WithUpstreams(Aws::Vector<UpstreamRepository>&& value) { SetUpstreams(std::move(value)); return *this;}
114 inline UpdateRepositoryRequest& AddUpstreams(const UpstreamRepository& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(value); return *this; }
115 inline UpdateRepositoryRequest& AddUpstreams(UpstreamRepository&& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(std::move(value)); return *this; }
117 private:
118
119 Aws::String m_domain;
120 bool m_domainHasBeenSet = false;
121
122 Aws::String m_domainOwner;
123 bool m_domainOwnerHasBeenSet = false;
124
125 Aws::String m_repository;
126 bool m_repositoryHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
132 bool m_upstreamsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CodeArtifact
137} // namespace Aws
UpdateRepositoryRequest & AddUpstreams(UpstreamRepository &&value)
void SetUpstreams(const Aws::Vector< UpstreamRepository > &value)
UpdateRepositoryRequest & WithDomainOwner(Aws::String &&value)
UpdateRepositoryRequest & WithDescription(Aws::String &&value)
UpdateRepositoryRequest & WithDomain(const char *value)
UpdateRepositoryRequest & WithUpstreams(const Aws::Vector< UpstreamRepository > &value)
UpdateRepositoryRequest & WithUpstreams(Aws::Vector< UpstreamRepository > &&value)
UpdateRepositoryRequest & WithDescription(const char *value)
UpdateRepositoryRequest & AddUpstreams(const UpstreamRepository &value)
UpdateRepositoryRequest & WithDomainOwner(const Aws::String &value)
UpdateRepositoryRequest & WithRepository(Aws::String &&value)
void SetUpstreams(Aws::Vector< UpstreamRepository > &&value)
UpdateRepositoryRequest & WithDescription(const Aws::String &value)
UpdateRepositoryRequest & WithRepository(const char *value)
UpdateRepositoryRequest & WithDomain(Aws::String &&value)
UpdateRepositoryRequest & WithRepository(const Aws::String &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
UpdateRepositoryRequest & WithDomainOwner(const char *value)
UpdateRepositoryRequest & WithDomain(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector