AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutDomainPermissionsPolicyRequest.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 <utility>
11
12namespace Aws
13{
14namespace CodeArtifact
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CODEARTIFACT_API PutDomainPermissionsPolicyRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutDomainPermissionsPolicy"; }
31
32 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetDomain() const{ return m_domain; }
40 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
41 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
42 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
43 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
44 inline PutDomainPermissionsPolicyRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
45 inline PutDomainPermissionsPolicyRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
46 inline PutDomainPermissionsPolicyRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
48
50
54 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
55 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
56 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
57 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
58 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
59 inline PutDomainPermissionsPolicyRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
60 inline PutDomainPermissionsPolicyRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
61 inline PutDomainPermissionsPolicyRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
63
65
70 inline const Aws::String& GetPolicyRevision() const{ return m_policyRevision; }
71 inline bool PolicyRevisionHasBeenSet() const { return m_policyRevisionHasBeenSet; }
72 inline void SetPolicyRevision(const Aws::String& value) { m_policyRevisionHasBeenSet = true; m_policyRevision = value; }
73 inline void SetPolicyRevision(Aws::String&& value) { m_policyRevisionHasBeenSet = true; m_policyRevision = std::move(value); }
74 inline void SetPolicyRevision(const char* value) { m_policyRevisionHasBeenSet = true; m_policyRevision.assign(value); }
76 inline PutDomainPermissionsPolicyRequest& WithPolicyRevision(Aws::String&& value) { SetPolicyRevision(std::move(value)); return *this;}
77 inline PutDomainPermissionsPolicyRequest& WithPolicyRevision(const char* value) { SetPolicyRevision(value); return *this;}
79
81
85 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
86 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
87 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
88 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
89 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
91 inline PutDomainPermissionsPolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
92 inline PutDomainPermissionsPolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
94 private:
95
96 Aws::String m_domain;
97 bool m_domainHasBeenSet = false;
98
99 Aws::String m_domainOwner;
100 bool m_domainOwnerHasBeenSet = false;
101
102 Aws::String m_policyRevision;
103 bool m_policyRevisionHasBeenSet = false;
104
105 Aws::String m_policyDocument;
106 bool m_policyDocumentHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CodeArtifact
111} // namespace Aws
PutDomainPermissionsPolicyRequest & WithDomain(const char *value)
PutDomainPermissionsPolicyRequest & WithDomainOwner(Aws::String &&value)
PutDomainPermissionsPolicyRequest & WithPolicyRevision(const Aws::String &value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
PutDomainPermissionsPolicyRequest & WithDomain(Aws::String &&value)
PutDomainPermissionsPolicyRequest & WithDomainOwner(const Aws::String &value)
PutDomainPermissionsPolicyRequest & WithPolicyRevision(Aws::String &&value)
PutDomainPermissionsPolicyRequest & WithDomainOwner(const char *value)
PutDomainPermissionsPolicyRequest & WithPolicyRevision(const char *value)
PutDomainPermissionsPolicyRequest & WithDomain(const Aws::String &value)
PutDomainPermissionsPolicyRequest & WithPolicyDocument(const Aws::String &value)
PutDomainPermissionsPolicyRequest & WithPolicyDocument(Aws::String &&value)
PutDomainPermissionsPolicyRequest & WithPolicyDocument(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String