AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreatePolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
12#include <aws/verifiedpermissions/model/ActionIdentifier.h>
13#include <aws/verifiedpermissions/model/EntityIdentifier.h>
14#include <aws/verifiedpermissions/model/PolicyEffect.h>
15#include <aws/verifiedpermissions/model/PolicyType.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace VerifiedPermissions {
29namespace Model {
31 public:
32 AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult() = default;
35
37
40 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
41 template <typename PolicyStoreIdT = Aws::String>
42 void SetPolicyStoreId(PolicyStoreIdT&& value) {
43 m_policyStoreIdHasBeenSet = true;
44 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
45 }
46 template <typename PolicyStoreIdT = Aws::String>
47 CreatePolicyResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
48 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyId() const { return m_policyId; }
58 template <typename PolicyIdT = Aws::String>
59 void SetPolicyId(PolicyIdT&& value) {
60 m_policyIdHasBeenSet = true;
61 m_policyId = std::forward<PolicyIdT>(value);
62 }
63 template <typename PolicyIdT = Aws::String>
64 CreatePolicyResult& WithPolicyId(PolicyIdT&& value) {
65 SetPolicyId(std::forward<PolicyIdT>(value));
66 return *this;
67 }
69
71
74 inline PolicyType GetPolicyType() const { return m_policyType; }
75 inline void SetPolicyType(PolicyType value) {
76 m_policyTypeHasBeenSet = true;
77 m_policyType = value;
78 }
80 SetPolicyType(value);
81 return *this;
82 }
84
86
91 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
92 template <typename PrincipalT = EntityIdentifier>
93 void SetPrincipal(PrincipalT&& value) {
94 m_principalHasBeenSet = true;
95 m_principal = std::forward<PrincipalT>(value);
96 }
97 template <typename PrincipalT = EntityIdentifier>
98 CreatePolicyResult& WithPrincipal(PrincipalT&& value) {
99 SetPrincipal(std::forward<PrincipalT>(value));
100 return *this;
101 }
103
105
110 inline const EntityIdentifier& GetResource() const { return m_resource; }
111 template <typename ResourceT = EntityIdentifier>
112 void SetResource(ResourceT&& value) {
113 m_resourceHasBeenSet = true;
114 m_resource = std::forward<ResourceT>(value);
115 }
116 template <typename ResourceT = EntityIdentifier>
117 CreatePolicyResult& WithResource(ResourceT&& value) {
118 SetResource(std::forward<ResourceT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
130 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
131 void SetActions(ActionsT&& value) {
132 m_actionsHasBeenSet = true;
133 m_actions = std::forward<ActionsT>(value);
134 }
135 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
136 CreatePolicyResult& WithActions(ActionsT&& value) {
137 SetActions(std::forward<ActionsT>(value));
138 return *this;
139 }
140 template <typename ActionsT = ActionIdentifier>
141 CreatePolicyResult& AddActions(ActionsT&& value) {
142 m_actionsHasBeenSet = true;
143 m_actions.emplace_back(std::forward<ActionsT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
153 template <typename CreatedDateT = Aws::Utils::DateTime>
154 void SetCreatedDate(CreatedDateT&& value) {
155 m_createdDateHasBeenSet = true;
156 m_createdDate = std::forward<CreatedDateT>(value);
157 }
158 template <typename CreatedDateT = Aws::Utils::DateTime>
159 CreatePolicyResult& WithCreatedDate(CreatedDateT&& value) {
160 SetCreatedDate(std::forward<CreatedDateT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
170 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
171 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
172 m_lastUpdatedDateHasBeenSet = true;
173 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
174 }
175 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
176 CreatePolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
177 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
178 return *this;
179 }
181
183
187 inline PolicyEffect GetEffect() const { return m_effect; }
188 inline void SetEffect(PolicyEffect value) {
189 m_effectHasBeenSet = true;
190 m_effect = value;
191 }
193 SetEffect(value);
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
207 CreatePolicyResult& WithRequestId(RequestIdT&& value) {
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
213
214 private:
215 Aws::String m_policyStoreId;
216
217 Aws::String m_policyId;
218
219 PolicyType m_policyType{PolicyType::NOT_SET};
220
221 EntityIdentifier m_principal;
222
223 EntityIdentifier m_resource;
224
226
227 Aws::Utils::DateTime m_createdDate{};
228
229 Aws::Utils::DateTime m_lastUpdatedDate{};
230
232
233 Aws::String m_requestId;
234 Aws::Http::HttpResponseCode m_HttpResponseCode;
235 bool m_policyStoreIdHasBeenSet = false;
236 bool m_policyIdHasBeenSet = false;
237 bool m_policyTypeHasBeenSet = false;
238 bool m_principalHasBeenSet = false;
239 bool m_resourceHasBeenSet = false;
240 bool m_actionsHasBeenSet = false;
241 bool m_createdDateHasBeenSet = false;
242 bool m_lastUpdatedDateHasBeenSet = false;
243 bool m_effectHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace VerifiedPermissions
249} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreatePolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
CreatePolicyResult & AddActions(ActionsT &&value)
CreatePolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult()=default
CreatePolicyResult & WithPrincipal(PrincipalT &&value)
CreatePolicyResult & WithResource(ResourceT &&value)
CreatePolicyResult & WithCreatedDate(CreatedDateT &&value)
CreatePolicyResult & WithPolicyId(PolicyIdT &&value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicyResult & WithActions(ActionsT &&value)
CreatePolicyResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
CreatePolicyResult & WithPolicyType(PolicyType value)
CreatePolicyResult & WithEffect(PolicyEffect value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue