AWS SDK for C++  1.8.71
AWS SDK for C++
PutRepositoryPermissionsPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace CodeArtifact
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "PutRepositoryPermissionsPolicy"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline const Aws::String& GetDomain() const{ return m_domain; }
46 
51  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
52 
57  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
58 
63  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
64 
69  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
70 
75  inline PutRepositoryPermissionsPolicyRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
76 
81  inline PutRepositoryPermissionsPolicyRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
82 
87  inline PutRepositoryPermissionsPolicyRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
88 
89 
94  inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
95 
100  inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
101 
106  inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
107 
112  inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
113 
118  inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
119 
124  inline PutRepositoryPermissionsPolicyRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
125 
130  inline PutRepositoryPermissionsPolicyRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
131 
136  inline PutRepositoryPermissionsPolicyRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
137 
138 
142  inline const Aws::String& GetRepository() const{ return m_repository; }
143 
147  inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
148 
152  inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
153 
157  inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
158 
162  inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
163 
167  inline PutRepositoryPermissionsPolicyRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
168 
172  inline PutRepositoryPermissionsPolicyRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
173 
177  inline PutRepositoryPermissionsPolicyRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
178 
179 
186  inline const Aws::String& GetPolicyRevision() const{ return m_policyRevision; }
187 
194  inline bool PolicyRevisionHasBeenSet() const { return m_policyRevisionHasBeenSet; }
195 
202  inline void SetPolicyRevision(const Aws::String& value) { m_policyRevisionHasBeenSet = true; m_policyRevision = value; }
203 
210  inline void SetPolicyRevision(Aws::String&& value) { m_policyRevisionHasBeenSet = true; m_policyRevision = std::move(value); }
211 
218  inline void SetPolicyRevision(const char* value) { m_policyRevisionHasBeenSet = true; m_policyRevision.assign(value); }
219 
226  inline PutRepositoryPermissionsPolicyRequest& WithPolicyRevision(const Aws::String& value) { SetPolicyRevision(value); return *this;}
227 
234  inline PutRepositoryPermissionsPolicyRequest& WithPolicyRevision(Aws::String&& value) { SetPolicyRevision(std::move(value)); return *this;}
235 
242  inline PutRepositoryPermissionsPolicyRequest& WithPolicyRevision(const char* value) { SetPolicyRevision(value); return *this;}
243 
244 
249  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
250 
255  inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
256 
261  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
262 
267  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
268 
273  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
274 
279  inline PutRepositoryPermissionsPolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
280 
285  inline PutRepositoryPermissionsPolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
286 
291  inline PutRepositoryPermissionsPolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
292 
293  private:
294 
295  Aws::String m_domain;
296  bool m_domainHasBeenSet;
297 
298  Aws::String m_domainOwner;
299  bool m_domainOwnerHasBeenSet;
300 
301  Aws::String m_repository;
302  bool m_repositoryHasBeenSet;
303 
304  Aws::String m_policyRevision;
305  bool m_policyRevisionHasBeenSet;
306 
307  Aws::String m_policyDocument;
308  bool m_policyDocumentHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace CodeArtifact
313 } // namespace Aws
PutRepositoryPermissionsPolicyRequest & WithDomain(const Aws::String &value)
PutRepositoryPermissionsPolicyRequest & WithRepository(const Aws::String &value)
PutRepositoryPermissionsPolicyRequest & WithPolicyRevision(const Aws::String &value)
PutRepositoryPermissionsPolicyRequest & WithDomainOwner(Aws::String &&value)
PutRepositoryPermissionsPolicyRequest & WithPolicyRevision(Aws::String &&value)
PutRepositoryPermissionsPolicyRequest & WithDomainOwner(const char *value)
PutRepositoryPermissionsPolicyRequest & WithDomainOwner(const Aws::String &value)
PutRepositoryPermissionsPolicyRequest & WithDomain(Aws::String &&value)
PutRepositoryPermissionsPolicyRequest & WithRepository(const char *value)
PutRepositoryPermissionsPolicyRequest & WithDomain(const char *value)
PutRepositoryPermissionsPolicyRequest & WithPolicyDocument(const char *value)
PutRepositoryPermissionsPolicyRequest & WithPolicyDocument(Aws::String &&value)
#define AWS_CODEARTIFACT_API
PutRepositoryPermissionsPolicyRequest & WithPolicyRevision(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutRepositoryPermissionsPolicyRequest & WithRepository(Aws::String &&value)
PutRepositoryPermissionsPolicyRequest & WithPolicyDocument(const Aws::String &value)