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
PutPackageOriginConfigurationRequest.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/PackageOriginRestrictions.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 PutPackageOriginConfigurationRequest() = 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 "PutPackageOriginConfiguration"; }
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
48 inline const Aws::String& GetDomain() const { return m_domain; }
49 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
50 template<typename DomainT = Aws::String>
51 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
52 template<typename DomainT = Aws::String>
53 PutPackageOriginConfigurationRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
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) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
65 template<typename DomainOwnerT = Aws::String>
66 PutPackageOriginConfigurationRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
68
70
73 inline const Aws::String& GetRepository() const { return m_repository; }
74 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
75 template<typename RepositoryT = Aws::String>
76 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
77 template<typename RepositoryT = Aws::String>
78 PutPackageOriginConfigurationRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
80
82
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; }
90
92
102 inline const Aws::String& GetNamespace() const { return m_namespace; }
103 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
104 template<typename NamespaceT = Aws::String>
105 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
106 template<typename NamespaceT = Aws::String>
107 PutPackageOriginConfigurationRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
109
111
114 inline const Aws::String& GetPackage() const { return m_package; }
115 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
116 template<typename PackageT = Aws::String>
117 void SetPackage(PackageT&& value) { m_packageHasBeenSet = true; m_package = std::forward<PackageT>(value); }
118 template<typename PackageT = Aws::String>
119 PutPackageOriginConfigurationRequest& WithPackage(PackageT&& value) { SetPackage(std::forward<PackageT>(value)); return *this;}
121
123
134 inline const PackageOriginRestrictions& GetRestrictions() const { return m_restrictions; }
135 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
136 template<typename RestrictionsT = PackageOriginRestrictions>
137 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
138 template<typename RestrictionsT = PackageOriginRestrictions>
139 PutPackageOriginConfigurationRequest& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
141 private:
142
143 Aws::String m_domain;
144 bool m_domainHasBeenSet = false;
145
146 Aws::String m_domainOwner;
147 bool m_domainOwnerHasBeenSet = false;
148
149 Aws::String m_repository;
150 bool m_repositoryHasBeenSet = false;
151
153 bool m_formatHasBeenSet = false;
154
155 Aws::String m_namespace;
156 bool m_namespaceHasBeenSet = false;
157
158 Aws::String m_package;
159 bool m_packageHasBeenSet = false;
160
161 PackageOriginRestrictions m_restrictions;
162 bool m_restrictionsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace CodeArtifact
167} // namespace Aws
PutPackageOriginConfigurationRequest & WithRestrictions(RestrictionsT &&value)
PutPackageOriginConfigurationRequest & WithRepository(RepositoryT &&value)
PutPackageOriginConfigurationRequest & WithDomain(DomainT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
PutPackageOriginConfigurationRequest & WithFormat(PackageFormat value)
PutPackageOriginConfigurationRequest & WithPackage(PackageT &&value)
PutPackageOriginConfigurationRequest & WithDomainOwner(DomainOwnerT &&value)
PutPackageOriginConfigurationRequest & WithNamespace(NamespaceT &&value)
AWS_CODEARTIFACT_API PutPackageOriginConfigurationRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String