AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdatePolicyResult.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/PolicyEffect.h>
14#include <aws/verifiedpermissions/model/PolicyType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace VerifiedPermissions {
28namespace Model {
30 public:
31 AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult() = default;
34
36
39 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
40 template <typename PolicyStoreIdT = Aws::String>
41 void SetPolicyStoreId(PolicyStoreIdT&& value) {
42 m_policyStoreIdHasBeenSet = true;
43 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
44 }
45 template <typename PolicyStoreIdT = Aws::String>
46 UpdatePolicyResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
47 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPolicyId() const { return m_policyId; }
57 template <typename PolicyIdT = Aws::String>
58 void SetPolicyId(PolicyIdT&& value) {
59 m_policyIdHasBeenSet = true;
60 m_policyId = std::forward<PolicyIdT>(value);
61 }
62 template <typename PolicyIdT = Aws::String>
63 UpdatePolicyResult& WithPolicyId(PolicyIdT&& value) {
64 SetPolicyId(std::forward<PolicyIdT>(value));
65 return *this;
66 }
68
70
73 inline PolicyType GetPolicyType() const { return m_policyType; }
74 inline void SetPolicyType(PolicyType value) {
75 m_policyTypeHasBeenSet = true;
76 m_policyType = value;
77 }
79 SetPolicyType(value);
80 return *this;
81 }
83
85
90 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
91 template <typename PrincipalT = EntityIdentifier>
92 void SetPrincipal(PrincipalT&& value) {
93 m_principalHasBeenSet = true;
94 m_principal = std::forward<PrincipalT>(value);
95 }
96 template <typename PrincipalT = EntityIdentifier>
97 UpdatePolicyResult& WithPrincipal(PrincipalT&& value) {
98 SetPrincipal(std::forward<PrincipalT>(value));
99 return *this;
100 }
102
104
108 inline const EntityIdentifier& GetResource() const { return m_resource; }
109 template <typename ResourceT = EntityIdentifier>
110 void SetResource(ResourceT&& value) {
111 m_resourceHasBeenSet = true;
112 m_resource = std::forward<ResourceT>(value);
113 }
114 template <typename ResourceT = EntityIdentifier>
115 UpdatePolicyResult& WithResource(ResourceT&& value) {
116 SetResource(std::forward<ResourceT>(value));
117 return *this;
118 }
120
122
127 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
128 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
129 void SetActions(ActionsT&& value) {
130 m_actionsHasBeenSet = true;
131 m_actions = std::forward<ActionsT>(value);
132 }
133 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
134 UpdatePolicyResult& WithActions(ActionsT&& value) {
135 SetActions(std::forward<ActionsT>(value));
136 return *this;
137 }
138 template <typename ActionsT = ActionIdentifier>
139 UpdatePolicyResult& AddActions(ActionsT&& value) {
140 m_actionsHasBeenSet = true;
141 m_actions.emplace_back(std::forward<ActionsT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
151 template <typename CreatedDateT = Aws::Utils::DateTime>
152 void SetCreatedDate(CreatedDateT&& value) {
153 m_createdDateHasBeenSet = true;
154 m_createdDate = std::forward<CreatedDateT>(value);
155 }
156 template <typename CreatedDateT = Aws::Utils::DateTime>
157 UpdatePolicyResult& WithCreatedDate(CreatedDateT&& value) {
158 SetCreatedDate(std::forward<CreatedDateT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
168 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
169 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
170 m_lastUpdatedDateHasBeenSet = true;
171 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
172 }
173 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
174 UpdatePolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
175 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
176 return *this;
177 }
179
181
185 inline PolicyEffect GetEffect() const { return m_effect; }
186 inline void SetEffect(PolicyEffect value) {
187 m_effectHasBeenSet = true;
188 m_effect = value;
189 }
191 SetEffect(value);
192 return *this;
193 }
195
197
198 inline const Aws::String& GetRequestId() const { return m_requestId; }
199 template <typename RequestIdT = Aws::String>
200 void SetRequestId(RequestIdT&& value) {
201 m_requestIdHasBeenSet = true;
202 m_requestId = std::forward<RequestIdT>(value);
203 }
204 template <typename RequestIdT = Aws::String>
205 UpdatePolicyResult& WithRequestId(RequestIdT&& value) {
206 SetRequestId(std::forward<RequestIdT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_policyStoreId;
212
213 Aws::String m_policyId;
214
215 PolicyType m_policyType{PolicyType::NOT_SET};
216
217 EntityIdentifier m_principal;
218
219 EntityIdentifier m_resource;
220
222
223 Aws::Utils::DateTime m_createdDate{};
224
225 Aws::Utils::DateTime m_lastUpdatedDate{};
226
228
229 Aws::String m_requestId;
230 bool m_policyStoreIdHasBeenSet = false;
231 bool m_policyIdHasBeenSet = false;
232 bool m_policyTypeHasBeenSet = false;
233 bool m_principalHasBeenSet = false;
234 bool m_resourceHasBeenSet = false;
235 bool m_actionsHasBeenSet = false;
236 bool m_createdDateHasBeenSet = false;
237 bool m_lastUpdatedDateHasBeenSet = false;
238 bool m_effectHasBeenSet = false;
239 bool m_requestIdHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace VerifiedPermissions
244} // namespace Aws
UpdatePolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
UpdatePolicyResult & WithPrincipal(PrincipalT &&value)
UpdatePolicyResult & WithRequestId(RequestIdT &&value)
UpdatePolicyResult & WithEffect(PolicyEffect value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePolicyResult & WithCreatedDate(CreatedDateT &&value)
UpdatePolicyResult & WithResource(ResourceT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult()=default
UpdatePolicyResult & WithActions(ActionsT &&value)
UpdatePolicyResult & WithPolicyId(PolicyIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
UpdatePolicyResult & AddActions(ActionsT &&value)
UpdatePolicyResult & WithPolicyType(PolicyType 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