AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
51 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
52 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
53 inline PutPackageOriginConfigurationRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
54 inline PutPackageOriginConfigurationRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
55 inline PutPackageOriginConfigurationRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
57
59
63 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
64 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
65 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
66 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
67 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
69 inline PutPackageOriginConfigurationRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
70 inline PutPackageOriginConfigurationRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
72
74
77 inline const Aws::String& GetRepository() const{ return m_repository; }
78 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
79 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
80 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
81 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
83 inline PutPackageOriginConfigurationRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
84 inline PutPackageOriginConfigurationRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
86
88
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 PutPackageOriginConfigurationRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
96 inline PutPackageOriginConfigurationRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
98
100
110 inline const Aws::String& GetNamespace() const{ return m_namespace; }
111 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
112 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
113 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
114 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
115 inline PutPackageOriginConfigurationRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
116 inline PutPackageOriginConfigurationRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
117 inline PutPackageOriginConfigurationRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
119
121
124 inline const Aws::String& GetPackage() const{ return m_package; }
125 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
126 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
127 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
128 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
129 inline PutPackageOriginConfigurationRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
130 inline PutPackageOriginConfigurationRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
131 inline PutPackageOriginConfigurationRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
133
135
146 inline const PackageOriginRestrictions& GetRestrictions() const{ return m_restrictions; }
147 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
148 inline void SetRestrictions(const PackageOriginRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
149 inline void SetRestrictions(PackageOriginRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
153 private:
154
155 Aws::String m_domain;
156 bool m_domainHasBeenSet = false;
157
158 Aws::String m_domainOwner;
159 bool m_domainOwnerHasBeenSet = false;
160
161 Aws::String m_repository;
162 bool m_repositoryHasBeenSet = false;
163
164 PackageFormat m_format;
165 bool m_formatHasBeenSet = false;
166
167 Aws::String m_namespace;
168 bool m_namespaceHasBeenSet = false;
169
170 Aws::String m_package;
171 bool m_packageHasBeenSet = false;
172
173 PackageOriginRestrictions m_restrictions;
174 bool m_restrictionsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace CodeArtifact
179} // namespace Aws
PutPackageOriginConfigurationRequest & WithRepository(const char *value)
PutPackageOriginConfigurationRequest & WithPackage(Aws::String &&value)
PutPackageOriginConfigurationRequest & WithNamespace(const Aws::String &value)
PutPackageOriginConfigurationRequest & WithNamespace(Aws::String &&value)
PutPackageOriginConfigurationRequest & WithPackage(const Aws::String &value)
PutPackageOriginConfigurationRequest & WithDomain(Aws::String &&value)
PutPackageOriginConfigurationRequest & WithNamespace(const char *value)
PutPackageOriginConfigurationRequest & WithDomainOwner(const char *value)
PutPackageOriginConfigurationRequest & WithDomain(const Aws::String &value)
PutPackageOriginConfigurationRequest & WithDomain(const char *value)
PutPackageOriginConfigurationRequest & WithRestrictions(const PackageOriginRestrictions &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutPackageOriginConfigurationRequest & WithFormat(const PackageFormat &value)
PutPackageOriginConfigurationRequest & WithDomainOwner(Aws::String &&value)
PutPackageOriginConfigurationRequest & WithRestrictions(PackageOriginRestrictions &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
PutPackageOriginConfigurationRequest & WithRepository(const Aws::String &value)
PutPackageOriginConfigurationRequest & WithPackage(const char *value)
PutPackageOriginConfigurationRequest & WithFormat(PackageFormat &&value)
PutPackageOriginConfigurationRequest & WithDomainOwner(const Aws::String &value)
PutPackageOriginConfigurationRequest & WithRepository(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String