AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 GetRepositoryEndpointRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
53 inline GetRepositoryEndpointRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
54 inline GetRepositoryEndpointRequest& 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 GetRepositoryEndpointRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
68 inline GetRepositoryEndpointRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
69 inline GetRepositoryEndpointRequest& 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 GetRepositoryEndpointRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
82 inline GetRepositoryEndpointRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
83 inline GetRepositoryEndpointRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
85
87
91 inline const PackageFormat& GetFormat() const{ return m_format; }
92 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
93 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
94 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
95 inline GetRepositoryEndpointRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
96 inline GetRepositoryEndpointRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
98
100
103 inline const EndpointType& GetEndpointType() const{ return m_endpointType; }
104 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
105 inline void SetEndpointType(const EndpointType& value) { m_endpointTypeHasBeenSet = true; m_endpointType = value; }
106 inline void SetEndpointType(EndpointType&& value) { m_endpointTypeHasBeenSet = true; m_endpointType = std::move(value); }
107 inline GetRepositoryEndpointRequest& WithEndpointType(const EndpointType& value) { SetEndpointType(value); return *this;}
108 inline GetRepositoryEndpointRequest& WithEndpointType(EndpointType&& value) { SetEndpointType(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_domain;
113 bool m_domainHasBeenSet = false;
114
115 Aws::String m_domainOwner;
116 bool m_domainOwnerHasBeenSet = false;
117
118 Aws::String m_repository;
119 bool m_repositoryHasBeenSet = false;
120
121 PackageFormat m_format;
122 bool m_formatHasBeenSet = false;
123
124 EndpointType m_endpointType;
125 bool m_endpointTypeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CodeArtifact
130} // namespace Aws
GetRepositoryEndpointRequest & WithDomainOwner(const char *value)
GetRepositoryEndpointRequest & WithRepository(const Aws::String &value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
GetRepositoryEndpointRequest & WithDomainOwner(const Aws::String &value)
GetRepositoryEndpointRequest & WithRepository(const char *value)
GetRepositoryEndpointRequest & WithDomain(const Aws::String &value)
GetRepositoryEndpointRequest & WithDomain(const char *value)
GetRepositoryEndpointRequest & WithFormat(PackageFormat &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetRepositoryEndpointRequest & WithDomain(Aws::String &&value)
GetRepositoryEndpointRequest & WithEndpointType(const EndpointType &value)
GetRepositoryEndpointRequest & WithRepository(Aws::String &&value)
GetRepositoryEndpointRequest & WithFormat(const PackageFormat &value)
GetRepositoryEndpointRequest & WithEndpointType(EndpointType &&value)
GetRepositoryEndpointRequest & WithDomainOwner(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String