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>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
28namespace VerifiedPermissions {
41 template <
typename PolicyStoreIdT = Aws::String>
43 m_policyStoreIdHasBeenSet =
true;
44 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
46 template <
typename PolicyStoreIdT = Aws::String>
58 template <
typename PolicyIdT = Aws::String>
60 m_policyIdHasBeenSet =
true;
61 m_policyId = std::forward<PolicyIdT>(value);
63 template <
typename PolicyIdT = Aws::String>
76 m_policyTypeHasBeenSet =
true;
92 template <
typename PrincipalT = EntityIdentifier>
94 m_principalHasBeenSet =
true;
95 m_principal = std::forward<PrincipalT>(value);
97 template <
typename PrincipalT = EntityIdentifier>
111 template <
typename ResourceT = EntityIdentifier>
113 m_resourceHasBeenSet =
true;
114 m_resource = std::forward<ResourceT>(value);
116 template <
typename ResourceT = EntityIdentifier>
130 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
132 m_actionsHasBeenSet =
true;
133 m_actions = std::forward<ActionsT>(value);
135 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
140 template <
typename ActionsT = ActionIdentifier>
142 m_actionsHasBeenSet =
true;
143 m_actions.emplace_back(std::forward<ActionsT>(value));
153 template <
typename CreatedDateT = Aws::Utils::DateTime>
155 m_createdDateHasBeenSet =
true;
156 m_createdDate = std::forward<CreatedDateT>(value);
158 template <
typename CreatedDateT = Aws::Utils::DateTime>
170 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
172 m_lastUpdatedDateHasBeenSet =
true;
173 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
175 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
189 m_effectHasBeenSet =
true;
201 template <
typename RequestIdT = Aws::String>
203 m_requestIdHasBeenSet =
true;
204 m_requestId = std::forward<RequestIdT>(value);
206 template <
typename RequestIdT = Aws::String>
221 EntityIdentifier m_principal;
223 EntityIdentifier m_resource;
235 bool m_policyStoreIdHasBeenSet =
false;
236 bool m_policyIdHasBeenSet =
false;
237 bool m_policyTypeHasBeenSet =
false;
238 bool m_principalHasBeenSet =
false;
239 bool m_resourceHasBeenSet =
false;
240 bool m_actionsHasBeenSet =
false;
241 bool m_createdDateHasBeenSet =
false;
242 bool m_lastUpdatedDateHasBeenSet =
false;
243 bool m_effectHasBeenSet =
false;
244 bool m_requestIdHasBeenSet =
false;
void SetPolicyId(PolicyIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreatePolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
void SetResource(ResourceT &&value)
CreatePolicyResult & AddActions(ActionsT &&value)
CreatePolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
void SetLastUpdatedDate(LastUpdatedDateT &&value)
void SetPrincipal(PrincipalT &&value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult()=default
PolicyEffect GetEffect() const
void SetActions(ActionsT &&value)
CreatePolicyResult & WithPrincipal(PrincipalT &&value)
CreatePolicyResult & WithResource(ResourceT &&value)
void SetCreatedDate(CreatedDateT &&value)
CreatePolicyResult & WithCreatedDate(CreatedDateT &&value)
const Aws::String & GetPolicyStoreId() const
void SetPolicyType(PolicyType 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)
void SetRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const EntityIdentifier & GetResource() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
void SetEffect(PolicyEffect value)
const Aws::String & GetRequestId() const
const Aws::String & GetPolicyId() const
const EntityIdentifier & GetPrincipal() const
CreatePolicyResult & WithPolicyType(PolicyType value)
PolicyType GetPolicyType() const
CreatePolicyResult & WithEffect(PolicyEffect value)
void SetPolicyStoreId(PolicyStoreIdT &&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