7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/model/PolicyType.h>
10#include <aws/verifiedpermissions/model/EntityIdentifier.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/verifiedpermissions/model/PolicyDefinitionDetail.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/verifiedpermissions/model/PolicyEffect.h>
15#include <aws/verifiedpermissions/model/ActionIdentifier.h>
20template<
typename RESULT_TYPE>
21class AmazonWebServiceResult;
30namespace VerifiedPermissions
48 template<
typename PolicyStoreIdT = Aws::String>
49 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet =
true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
50 template<
typename PolicyStoreIdT = Aws::String>
59 template<
typename PolicyIdT = Aws::String>
60 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet =
true; m_policyId = std::forward<PolicyIdT>(value); }
61 template<
typename PolicyIdT = Aws::String>
81 template<
typename PrincipalT = EntityIdentifier>
82 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet =
true; m_principal = std::forward<PrincipalT>(value); }
83 template<
typename PrincipalT = EntityIdentifier>
93 template<
typename ResourceT = EntityIdentifier>
94 void SetResource(ResourceT&& value) { m_resourceHasBeenSet =
true; m_resource = std::forward<ResourceT>(value); }
95 template<
typename ResourceT = EntityIdentifier>
106 template<
typename ActionsT = Aws::Vector<ActionIdentifier>>
107 void SetActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions = std::forward<ActionsT>(value); }
108 template<
typename ActionsT = Aws::Vector<ActionIdentifier>>
110 template<
typename ActionsT = ActionIdentifier>
111 GetPolicyResult&
AddActions(ActionsT&& value) { m_actionsHasBeenSet =
true; m_actions.emplace_back(std::forward<ActionsT>(value));
return *
this; }
119 template<
typename DefinitionT = PolicyDefinitionDetail>
120 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet =
true; m_definition = std::forward<DefinitionT>(value); }
121 template<
typename DefinitionT = PolicyDefinitionDetail>
130 template<
typename CreatedDateT = Aws::Utils::DateTime>
131 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet =
true; m_createdDate = std::forward<CreatedDateT>(value); }
132 template<
typename CreatedDateT = Aws::Utils::DateTime>
141 template<
typename LastUpdatedDateT = Aws::Utils::DateTime>
142 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet =
true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
143 template<
typename LastUpdatedDateT = Aws::Utils::DateTime>
160 template<
typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
162 template<
typename RequestIdT = Aws::String>
168 bool m_policyStoreIdHasBeenSet =
false;
171 bool m_policyIdHasBeenSet =
false;
174 bool m_policyTypeHasBeenSet =
false;
176 EntityIdentifier m_principal;
177 bool m_principalHasBeenSet =
false;
179 EntityIdentifier m_resource;
180 bool m_resourceHasBeenSet =
false;
183 bool m_actionsHasBeenSet =
false;
185 PolicyDefinitionDetail m_definition;
186 bool m_definitionHasBeenSet =
false;
189 bool m_createdDateHasBeenSet =
false;
192 bool m_lastUpdatedDateHasBeenSet =
false;
195 bool m_effectHasBeenSet =
false;
198 bool m_requestIdHasBeenSet =
false;
void SetResource(ResourceT &&value)
void SetEffect(PolicyEffect 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)
GetPolicyResult & WithPolicyType(PolicyType 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