AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
11#include <aws/verifiedpermissions/model/ActionIdentifier.h>
12#include <aws/verifiedpermissions/model/EntityIdentifier.h>
13#include <aws/verifiedpermissions/model/PolicyDefinitionDetail.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 GetPolicyResult() = default;
35
37
41 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
42 template <typename PolicyStoreIdT = Aws::String>
43 void SetPolicyStoreId(PolicyStoreIdT&& value) {
44 m_policyStoreIdHasBeenSet = true;
45 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
46 }
47 template <typename PolicyStoreIdT = Aws::String>
48 GetPolicyResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
49 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPolicyId() const { return m_policyId; }
59 template <typename PolicyIdT = Aws::String>
60 void SetPolicyId(PolicyIdT&& value) {
61 m_policyIdHasBeenSet = true;
62 m_policyId = std::forward<PolicyIdT>(value);
63 }
64 template <typename PolicyIdT = Aws::String>
65 GetPolicyResult& WithPolicyId(PolicyIdT&& value) {
66 SetPolicyId(std::forward<PolicyIdT>(value));
67 return *this;
68 }
70
72
75 inline PolicyType GetPolicyType() const { return m_policyType; }
76 inline void SetPolicyType(PolicyType value) {
77 m_policyTypeHasBeenSet = true;
78 m_policyType = value;
79 }
81 SetPolicyType(value);
82 return *this;
83 }
85
87
92 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
93 template <typename PrincipalT = EntityIdentifier>
94 void SetPrincipal(PrincipalT&& value) {
95 m_principalHasBeenSet = true;
96 m_principal = std::forward<PrincipalT>(value);
97 }
98 template <typename PrincipalT = EntityIdentifier>
99 GetPolicyResult& WithPrincipal(PrincipalT&& value) {
100 SetPrincipal(std::forward<PrincipalT>(value));
101 return *this;
102 }
104
106
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 GetPolicyResult& 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 GetPolicyResult& WithActions(ActionsT&& value) {
137 SetActions(std::forward<ActionsT>(value));
138 return *this;
139 }
140 template <typename ActionsT = ActionIdentifier>
141 GetPolicyResult& 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 PolicyDefinitionDetail& GetDefinition() const { return m_definition; }
153 template <typename DefinitionT = PolicyDefinitionDetail>
154 void SetDefinition(DefinitionT&& value) {
155 m_definitionHasBeenSet = true;
156 m_definition = std::forward<DefinitionT>(value);
157 }
158 template <typename DefinitionT = PolicyDefinitionDetail>
159 GetPolicyResult& WithDefinition(DefinitionT&& value) {
160 SetDefinition(std::forward<DefinitionT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
170 template <typename CreatedDateT = Aws::Utils::DateTime>
171 void SetCreatedDate(CreatedDateT&& value) {
172 m_createdDateHasBeenSet = true;
173 m_createdDate = std::forward<CreatedDateT>(value);
174 }
175 template <typename CreatedDateT = Aws::Utils::DateTime>
176 GetPolicyResult& WithCreatedDate(CreatedDateT&& value) {
177 SetCreatedDate(std::forward<CreatedDateT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
187 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
188 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
189 m_lastUpdatedDateHasBeenSet = true;
190 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
191 }
192 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
193 GetPolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
194 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
195 return *this;
196 }
198
200
204 inline PolicyEffect GetEffect() const { return m_effect; }
205 inline void SetEffect(PolicyEffect value) {
206 m_effectHasBeenSet = true;
207 m_effect = value;
208 }
210 SetEffect(value);
211 return *this;
212 }
214
216
217 inline const Aws::String& GetRequestId() const { return m_requestId; }
218 template <typename RequestIdT = Aws::String>
219 void SetRequestId(RequestIdT&& value) {
220 m_requestIdHasBeenSet = true;
221 m_requestId = std::forward<RequestIdT>(value);
222 }
223 template <typename RequestIdT = Aws::String>
224 GetPolicyResult& WithRequestId(RequestIdT&& value) {
225 SetRequestId(std::forward<RequestIdT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_policyStoreId;
231
232 Aws::String m_policyId;
233
234 PolicyType m_policyType{PolicyType::NOT_SET};
235
236 EntityIdentifier m_principal;
237
238 EntityIdentifier m_resource;
239
241
242 PolicyDefinitionDetail m_definition;
243
244 Aws::Utils::DateTime m_createdDate{};
245
246 Aws::Utils::DateTime m_lastUpdatedDate{};
247
249
250 Aws::String m_requestId;
251 bool m_policyStoreIdHasBeenSet = false;
252 bool m_policyIdHasBeenSet = false;
253 bool m_policyTypeHasBeenSet = false;
254 bool m_principalHasBeenSet = false;
255 bool m_resourceHasBeenSet = false;
256 bool m_actionsHasBeenSet = false;
257 bool m_definitionHasBeenSet = false;
258 bool m_createdDateHasBeenSet = false;
259 bool m_lastUpdatedDateHasBeenSet = false;
260 bool m_effectHasBeenSet = false;
261 bool m_requestIdHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace VerifiedPermissions
266} // 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)
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