AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreatePolicyResult.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 CreatePolicyResult() = 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 CreatePolicyResult& 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 CreatePolicyResult& 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 CreatePolicyResult& WithPrincipal(PrincipalT&& value) {
98 SetPrincipal(std::forward<PrincipalT>(value));
99 return *this;
100 }
102
104
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 CreatePolicyResult& 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 CreatePolicyResult& WithActions(ActionsT&& value) {
136 SetActions(std::forward<ActionsT>(value));
137 return *this;
138 }
139 template <typename ActionsT = ActionIdentifier>
140 CreatePolicyResult& 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 CreatePolicyResult& 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 CreatePolicyResult& 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 CreatePolicyResult& WithRequestId(RequestIdT&& value) {
207 SetRequestId(std::forward<RequestIdT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_policyStoreId;
213
214 Aws::String m_policyId;
215
216 PolicyType m_policyType{PolicyType::NOT_SET};
217
218 EntityIdentifier m_principal;
219
220 EntityIdentifier m_resource;
221
223
224 Aws::Utils::DateTime m_createdDate{};
225
226 Aws::Utils::DateTime m_lastUpdatedDate{};
227
229
230 Aws::String m_requestId;
231 bool m_policyStoreIdHasBeenSet = false;
232 bool m_policyIdHasBeenSet = false;
233 bool m_policyTypeHasBeenSet = false;
234 bool m_principalHasBeenSet = false;
235 bool m_resourceHasBeenSet = false;
236 bool m_actionsHasBeenSet = false;
237 bool m_createdDateHasBeenSet = false;
238 bool m_lastUpdatedDateHasBeenSet = false;
239 bool m_effectHasBeenSet = false;
240 bool m_requestIdHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace VerifiedPermissions
245} // namespace Aws
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