AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutDomainPermissionsPolicyRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeArtifact {
15namespace Model {
16
20 public:
21 AWS_CODEARTIFACT_API PutDomainPermissionsPolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutDomainPermissionsPolicy"; }
28
29 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetDomain() const { return m_domain; }
36 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
37 template <typename DomainT = Aws::String>
38 void SetDomain(DomainT&& value) {
39 m_domainHasBeenSet = true;
40 m_domain = std::forward<DomainT>(value);
41 }
42 template <typename DomainT = Aws::String>
44 SetDomain(std::forward<DomainT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
55 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
56 template <typename DomainOwnerT = Aws::String>
57 void SetDomainOwner(DomainOwnerT&& value) {
58 m_domainOwnerHasBeenSet = true;
59 m_domainOwner = std::forward<DomainOwnerT>(value);
60 }
61 template <typename DomainOwnerT = Aws::String>
63 SetDomainOwner(std::forward<DomainOwnerT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::String& GetPolicyRevision() const { return m_policyRevision; }
75 inline bool PolicyRevisionHasBeenSet() const { return m_policyRevisionHasBeenSet; }
76 template <typename PolicyRevisionT = Aws::String>
77 void SetPolicyRevision(PolicyRevisionT&& value) {
78 m_policyRevisionHasBeenSet = true;
79 m_policyRevision = std::forward<PolicyRevisionT>(value);
80 }
81 template <typename PolicyRevisionT = Aws::String>
83 SetPolicyRevision(std::forward<PolicyRevisionT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
94 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
95 template <typename PolicyDocumentT = Aws::String>
96 void SetPolicyDocument(PolicyDocumentT&& value) {
97 m_policyDocumentHasBeenSet = true;
98 m_policyDocument = std::forward<PolicyDocumentT>(value);
99 }
100 template <typename PolicyDocumentT = Aws::String>
102 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_domain;
108
109 Aws::String m_domainOwner;
110
111 Aws::String m_policyRevision;
112
113 Aws::String m_policyDocument;
114 bool m_domainHasBeenSet = false;
115 bool m_domainOwnerHasBeenSet = false;
116 bool m_policyRevisionHasBeenSet = false;
117 bool m_policyDocumentHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CodeArtifact
122} // namespace Aws
PutDomainPermissionsPolicyRequest & WithDomainOwner(DomainOwnerT &&value)
PutDomainPermissionsPolicyRequest & WithPolicyRevision(PolicyRevisionT &&value)
AWS_CODEARTIFACT_API PutDomainPermissionsPolicyRequest()=default
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
PutDomainPermissionsPolicyRequest & WithDomain(DomainT &&value)
PutDomainPermissionsPolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String