AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
GetRepositoryEndpointRequest.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/codeartifact/model/PackageFormat.h>
11#include <aws/codeartifact/model/EndpointType.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 GetRepositoryEndpointRequest() = 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 "GetRepositoryEndpoint"; }
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 GetRepositoryEndpointRequest& 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 GetRepositoryEndpointRequest& 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 GetRepositoryEndpointRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
79
81
85 inline PackageFormat GetFormat() const { return m_format; }
86 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
87 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
88 inline GetRepositoryEndpointRequest& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
90
92
95 inline EndpointType GetEndpointType() const { return m_endpointType; }
96 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
97 inline void SetEndpointType(EndpointType value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
100 private:
101
102 Aws::String m_domain;
103 bool m_domainHasBeenSet = false;
104
105 Aws::String m_domainOwner;
106 bool m_domainOwnerHasBeenSet = false;
107
108 Aws::String m_repository;
109 bool m_repositoryHasBeenSet = false;
110
112 bool m_formatHasBeenSet = false;
113
114 EndpointType m_endpointType{EndpointType::NOT_SET};
115 bool m_endpointTypeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CodeArtifact
120} // 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