AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetRepositoryEndpointRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/EndpointType.h>
10#include <aws/codeartifact/model/PackageFormat.h>
11#include <aws/core/utils/memory/stl/AWSString.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 GetRepositoryEndpointRequest() = 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 "GetRepositoryEndpoint"; }
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
98 inline PackageFormat GetFormat() const { return m_format; }
99 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
100 inline void SetFormat(PackageFormat value) {
101 m_formatHasBeenSet = true;
102 m_format = value;
103 }
105 SetFormat(value);
106 return *this;
107 }
109
111
114 inline EndpointType GetEndpointType() const { return m_endpointType; }
115 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
116 inline void SetEndpointType(EndpointType value) {
117 m_endpointTypeHasBeenSet = true;
118 m_endpointType = value;
119 }
121 SetEndpointType(value);
122 return *this;
123 }
125 private:
126 Aws::String m_domain;
127
128 Aws::String m_domainOwner;
129
130 Aws::String m_repository;
131
133
134 EndpointType m_endpointType{EndpointType::NOT_SET};
135 bool m_domainHasBeenSet = false;
136 bool m_domainOwnerHasBeenSet = false;
137 bool m_repositoryHasBeenSet = false;
138 bool m_formatHasBeenSet = false;
139 bool m_endpointTypeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace CodeArtifact
144} // namespace Aws
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
GetRepositoryEndpointRequest & WithDomainOwner(DomainOwnerT &&value)
AWS_CODEARTIFACT_API GetRepositoryEndpointRequest()=default
GetRepositoryEndpointRequest & WithRepository(RepositoryT &&value)
GetRepositoryEndpointRequest & WithEndpointType(EndpointType value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetRepositoryEndpointRequest & WithFormat(PackageFormat value)
GetRepositoryEndpointRequest & WithDomain(DomainT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String