AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
UpdatePolicyResult.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 UpdatePolicyResult() = 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 UpdatePolicyResult& 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 UpdatePolicyResult& 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 UpdatePolicyResult& WithPrincipal(PrincipalT&& value) {
99 SetPrincipal(std::forward<PrincipalT>(value));
100 return *this;
101 }
103
105
109 inline const EntityIdentifier& GetResource() const { return m_resource; }
110 template <typename ResourceT = EntityIdentifier>
111 void SetResource(ResourceT&& value) {
112 m_resourceHasBeenSet = true;
113 m_resource = std::forward<ResourceT>(value);
114 }
115 template <typename ResourceT = EntityIdentifier>
116 UpdatePolicyResult& WithResource(ResourceT&& value) {
117 SetResource(std::forward<ResourceT>(value));
118 return *this;
119 }
121
123
128 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
129 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
130 void SetActions(ActionsT&& value) {
131 m_actionsHasBeenSet = true;
132 m_actions = std::forward<ActionsT>(value);
133 }
134 template <typename ActionsT = Aws::Vector<ActionIdentifier>>
135 UpdatePolicyResult& WithActions(ActionsT&& value) {
136 SetActions(std::forward<ActionsT>(value));
137 return *this;
138 }
139 template <typename ActionsT = ActionIdentifier>
140 UpdatePolicyResult& AddActions(ActionsT&& value) {
141 m_actionsHasBeenSet = true;
142 m_actions.emplace_back(std::forward<ActionsT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
152 template <typename CreatedDateT = Aws::Utils::DateTime>
153 void SetCreatedDate(CreatedDateT&& value) {
154 m_createdDateHasBeenSet = true;
155 m_createdDate = std::forward<CreatedDateT>(value);
156 }
157 template <typename CreatedDateT = Aws::Utils::DateTime>
158 UpdatePolicyResult& WithCreatedDate(CreatedDateT&& value) {
159 SetCreatedDate(std::forward<CreatedDateT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
169 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
170 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
171 m_lastUpdatedDateHasBeenSet = true;
172 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
173 }
174 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
175 UpdatePolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
176 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
177 return *this;
178 }
180
182
186 inline PolicyEffect GetEffect() const { return m_effect; }
187 inline void SetEffect(PolicyEffect value) {
188 m_effectHasBeenSet = true;
189 m_effect = value;
190 }
192 SetEffect(value);
193 return *this;
194 }
196
198
199 inline const Aws::String& GetRequestId() const { return m_requestId; }
200 template <typename RequestIdT = Aws::String>
201 void SetRequestId(RequestIdT&& value) {
202 m_requestIdHasBeenSet = true;
203 m_requestId = std::forward<RequestIdT>(value);
204 }
205 template <typename RequestIdT = Aws::String>
206 UpdatePolicyResult& WithRequestId(RequestIdT&& value) {
207 SetRequestId(std::forward<RequestIdT>(value));
208 return *this;
209 }
211 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
212
213 private:
214 Aws::String m_policyStoreId;
215
216 Aws::String m_policyId;
217
218 PolicyType m_policyType{PolicyType::NOT_SET};
219
220 EntityIdentifier m_principal;
221
222 EntityIdentifier m_resource;
223
225
226 Aws::Utils::DateTime m_createdDate{};
227
228 Aws::Utils::DateTime m_lastUpdatedDate{};
229
231
232 Aws::String m_requestId;
233 Aws::Http::HttpResponseCode m_HttpResponseCode;
234 bool m_policyStoreIdHasBeenSet = false;
235 bool m_policyIdHasBeenSet = false;
236 bool m_policyTypeHasBeenSet = false;
237 bool m_principalHasBeenSet = false;
238 bool m_resourceHasBeenSet = false;
239 bool m_actionsHasBeenSet = false;
240 bool m_createdDateHasBeenSet = false;
241 bool m_lastUpdatedDateHasBeenSet = false;
242 bool m_effectHasBeenSet = false;
243 bool m_requestIdHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace VerifiedPermissions
248} // 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::Http::HttpResponseCode GetHttpResponseCode() 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