AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetPolicyResult.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/PolicyDefinitionDetail.h>
15#include <aws/verifiedpermissions/model/PolicyEffect.h>
16#include <aws/verifiedpermissions/model/PolicyType.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace VerifiedPermissions {
30namespace Model {
32 public:
33 AWS_VERIFIEDPERMISSIONS_API GetPolicyResult() = default;
36
38
42 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
43 template <typename PolicyStoreIdT = Aws::String>
44 void SetPolicyStoreId(PolicyStoreIdT&& value) {
45 m_policyStoreIdHasBeenSet = true;
46 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
47 }
48 template <typename PolicyStoreIdT = Aws::String>
49 GetPolicyResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
50 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPolicyId() const { return m_policyId; }
60 template <typename PolicyIdT = Aws::String>
61 void SetPolicyId(PolicyIdT&& value) {
62 m_policyIdHasBeenSet = true;
63 m_policyId = std::forward<PolicyIdT>(value);
64 }
65 template <typename PolicyIdT = Aws::String>
66 GetPolicyResult& WithPolicyId(PolicyIdT&& value) {
67 SetPolicyId(std::forward<PolicyIdT>(value));
68 return *this;
69 }
71
73
76 inline PolicyType GetPolicyType() const { return m_policyType; }
77 inline void SetPolicyType(PolicyType value) {
78 m_policyTypeHasBeenSet = true;
79 m_policyType = value;
80 }
82 SetPolicyType(value);
83 return *this;
84 }
86
88
93 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
94 template <typename PrincipalT = EntityIdentifier>
95 void SetPrincipal(PrincipalT&& value) {
96 m_principalHasBeenSet = true;
97 m_principal = std::forward<PrincipalT>(value);
98 }
99 template <typename PrincipalT = EntityIdentifier>
100 GetPolicyResult& WithPrincipal(PrincipalT&& value) {
101 SetPrincipal(std::forward<PrincipalT>(value));
102 return *this;
103 }
105
107
111 inline const EntityIdentifier& GetResource() const { return m_resource; }
112 template <typename ResourceT = EntityIdentifier>
113 void SetResource(ResourceT&& value) {
114 m_resourceHasBeenSet = true;
115 m_resource = std::forward<ResourceT>(value);
116 }
117 template <typename ResourceT = EntityIdentifier>
118 GetPolicyResult& WithResource(ResourceT&& value) {
119 SetResource(std::forward<ResourceT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
131 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
132 void SetActions(ActionsT&& value) {
133 m_actionsHasBeenSet = true;
134 m_actions = std::forward<ActionsT>(value);
135 }
136 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
137 GetPolicyResult& WithActions(ActionsT&& value) {
138 SetActions(std::forward<ActionsT>(value));
139 return *this;
140 }
141 template <typename ActionsT = ActionIdentifier>
142 GetPolicyResult& AddActions(ActionsT&& value) {
143 m_actionsHasBeenSet = true;
144 m_actions.emplace_back(std::forward<ActionsT>(value));
145 return *this;
146 }
148
150
153 inline const PolicyDefinitionDetail& GetDefinition() const { return m_definition; }
154 template <typename DefinitionT = PolicyDefinitionDetail>
155 void SetDefinition(DefinitionT&& value) {
156 m_definitionHasBeenSet = true;
157 m_definition = std::forward<DefinitionT>(value);
158 }
159 template <typename DefinitionT = PolicyDefinitionDetail>
160 GetPolicyResult& WithDefinition(DefinitionT&& value) {
161 SetDefinition(std::forward<DefinitionT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
171 template <typename CreatedDateT = Aws::Utils::DateTime>
172 void SetCreatedDate(CreatedDateT&& value) {
173 m_createdDateHasBeenSet = true;
174 m_createdDate = std::forward<CreatedDateT>(value);
175 }
176 template <typename CreatedDateT = Aws::Utils::DateTime>
177 GetPolicyResult& WithCreatedDate(CreatedDateT&& value) {
178 SetCreatedDate(std::forward<CreatedDateT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
188 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
189 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
190 m_lastUpdatedDateHasBeenSet = true;
191 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
192 }
193 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
194 GetPolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
195 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
196 return *this;
197 }
199
201
205 inline PolicyEffect GetEffect() const { return m_effect; }
206 inline void SetEffect(PolicyEffect value) {
207 m_effectHasBeenSet = true;
208 m_effect = value;
209 }
211 SetEffect(value);
212 return *this;
213 }
215
217
221 inline const Aws::String& GetName() const { return m_name; }
222 template <typename NameT = Aws::String>
223 void SetName(NameT&& value) {
224 m_nameHasBeenSet = true;
225 m_name = std::forward<NameT>(value);
226 }
227 template <typename NameT = Aws::String>
228 GetPolicyResult& WithName(NameT&& value) {
229 SetName(std::forward<NameT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 GetPolicyResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
249
250 private:
251 Aws::String m_policyStoreId;
252
253 Aws::String m_policyId;
254
255 PolicyType m_policyType{PolicyType::NOT_SET};
256
257 EntityIdentifier m_principal;
258
259 EntityIdentifier m_resource;
260
262
263 PolicyDefinitionDetail m_definition;
264
265 Aws::Utils::DateTime m_createdDate{};
266
267 Aws::Utils::DateTime m_lastUpdatedDate{};
268
270
271 Aws::String m_name;
272
273 Aws::String m_requestId;
274 Aws::Http::HttpResponseCode m_HttpResponseCode;
275 bool m_policyStoreIdHasBeenSet = false;
276 bool m_policyIdHasBeenSet = false;
277 bool m_policyTypeHasBeenSet = false;
278 bool m_principalHasBeenSet = false;
279 bool m_resourceHasBeenSet = false;
280 bool m_actionsHasBeenSet = false;
281 bool m_definitionHasBeenSet = false;
282 bool m_createdDateHasBeenSet = false;
283 bool m_lastUpdatedDateHasBeenSet = false;
284 bool m_effectHasBeenSet = false;
285 bool m_nameHasBeenSet = false;
286 bool m_requestIdHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace VerifiedPermissions
291} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetPolicyResult & WithPolicyType(PolicyType value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult()=default
const EntityIdentifier & GetPrincipal() const
GetPolicyResult & WithDefinition(DefinitionT &&value)
GetPolicyResult & WithActions(ActionsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetPolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
GetPolicyResult & WithPrincipal(PrincipalT &&value)
GetPolicyResult & WithEffect(PolicyEffect value)
const EntityIdentifier & GetResource() const
GetPolicyResult & AddActions(ActionsT &&value)
GetPolicyResult & WithResource(ResourceT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetPolicyResult & WithPolicyId(PolicyIdT &&value)
const PolicyDefinitionDetail & GetDefinition() const
GetPolicyResult & WithRequestId(RequestIdT &&value)
GetPolicyResult & WithCreatedDate(CreatedDateT &&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