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/PolicyDefinitionDetail.h>
15#include <aws/verifiedpermissions/model/PolicyEffect.h>
16#include <aws/verifiedpermissions/model/PolicyType.h>
21template <
typename RESULT_TYPE>
22class AmazonWebServiceResult;
29namespace VerifiedPermissions {
43 template <
typename PolicyStoreIdT = Aws::String>
45 m_policyStoreIdHasBeenSet =
true;
46 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
48 template <
typename PolicyStoreIdT = Aws::String>
60 template <
typename PolicyIdT = Aws::String>
62 m_policyIdHasBeenSet =
true;
63 m_policyId = std::forward<PolicyIdT>(value);
65 template <
typename PolicyIdT = Aws::String>
78 m_policyTypeHasBeenSet =
true;
94 template <
typename PrincipalT = EntityIdentifier>
96 m_principalHasBeenSet =
true;
97 m_principal = std::forward<PrincipalT>(value);
99 template <
typename PrincipalT = EntityIdentifier>
112 template <
typename ResourceT = EntityIdentifier>
114 m_resourceHasBeenSet =
true;
115 m_resource = std::forward<ResourceT>(value);
117 template <
typename ResourceT = EntityIdentifier>
131 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
133 m_actionsHasBeenSet =
true;
134 m_actions = std::forward<ActionsT>(value);
136 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
141 template <
typename ActionsT = ActionIdentifier>
143 m_actionsHasBeenSet =
true;
144 m_actions.emplace_back(std::forward<ActionsT>(value));
154 template <
typename DefinitionT = PolicyDefinitionDetail>
156 m_definitionHasBeenSet =
true;
157 m_definition = std::forward<DefinitionT>(value);
159 template <
typename DefinitionT = PolicyDefinitionDetail>
171 template <
typename CreatedDateT = Aws::Utils::DateTime>
173 m_createdDateHasBeenSet =
true;
174 m_createdDate = std::forward<CreatedDateT>(value);
176 template <
typename CreatedDateT = Aws::Utils::DateTime>
188 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
190 m_lastUpdatedDateHasBeenSet =
true;
191 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
193 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
207 m_effectHasBeenSet =
true;
222 template <
typename NameT = Aws::String>
224 m_nameHasBeenSet =
true;
225 m_name = std::forward<NameT>(value);
227 template <
typename NameT = Aws::String>
229 SetName(std::forward<NameT>(value));
237 template <
typename RequestIdT = Aws::String>
239 m_requestIdHasBeenSet =
true;
240 m_requestId = std::forward<RequestIdT>(value);
242 template <
typename RequestIdT = Aws::String>
257 EntityIdentifier m_principal;
259 EntityIdentifier m_resource;
263 PolicyDefinitionDetail m_definition;
275 bool m_policyStoreIdHasBeenSet =
false;
276 bool m_policyIdHasBeenSet =
false;
277 bool m_policyTypeHasBeenSet =
false;
278 bool m_principalHasBeenSet =
false;
279 bool m_resourceHasBeenSet =
false;
280 bool m_actionsHasBeenSet =
false;
281 bool m_definitionHasBeenSet =
false;
282 bool m_createdDateHasBeenSet =
false;
283 bool m_lastUpdatedDateHasBeenSet =
false;
284 bool m_effectHasBeenSet =
false;
285 bool m_nameHasBeenSet =
false;
286 bool m_requestIdHasBeenSet =
false;
void SetResource(ResourceT &&value)
void SetEffect(PolicyEffect value)
GetPolicyResult & WithName(NameT &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
void SetDefinition(DefinitionT &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetName() const
GetPolicyResult & WithPolicyType(PolicyType value)
void SetName(NameT &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult()=default
const EntityIdentifier & GetPrincipal() const
GetPolicyResult & WithDefinition(DefinitionT &&value)
void SetPolicyType(PolicyType value)
GetPolicyResult & WithActions(ActionsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetPolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
void SetPolicyStoreId(PolicyStoreIdT &&value)
const Aws::String & GetPolicyStoreId() const
void SetPrincipal(PrincipalT &&value)
const Aws::String & GetRequestId() const
GetPolicyResult & WithPrincipal(PrincipalT &&value)
GetPolicyResult & WithEffect(PolicyEffect value)
void SetCreatedDate(CreatedDateT &&value)
const EntityIdentifier & GetResource() const
GetPolicyResult & AddActions(ActionsT &&value)
GetPolicyResult & WithResource(ResourceT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetRequestId(RequestIdT &&value)
PolicyType GetPolicyType() const
GetPolicyResult & WithPolicyId(PolicyIdT &&value)
const PolicyDefinitionDetail & GetDefinition() const
void SetActions(ActionsT &&value)
PolicyEffect GetEffect() const
const Aws::String & GetPolicyId() const
GetPolicyResult & WithRequestId(RequestIdT &&value)
void SetPolicyId(PolicyIdT &&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