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/PolicyDefinitionItem.h>
14#include <aws/verifiedpermissions/model/PolicyEffect.h>
15#include <aws/verifiedpermissions/model/PolicyType.h>
26namespace VerifiedPermissions {
51 template <
typename PolicyStoreIdT = Aws::String>
53 m_policyStoreIdHasBeenSet =
true;
54 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
56 template <
typename PolicyStoreIdT = Aws::String>
69 template <
typename PolicyIdT = Aws::String>
71 m_policyIdHasBeenSet =
true;
72 m_policyId = std::forward<PolicyIdT>(value);
74 template <
typename PolicyIdT = Aws::String>
90 m_policyTypeHasBeenSet =
true;
105 template <
typename PrincipalT = EntityIdentifier>
107 m_principalHasBeenSet =
true;
108 m_principal = std::forward<PrincipalT>(value);
110 template <
typename PrincipalT = EntityIdentifier>
123 template <
typename ResourceT = EntityIdentifier>
125 m_resourceHasBeenSet =
true;
126 m_resource = std::forward<ResourceT>(value);
128 template <
typename ResourceT = EntityIdentifier>
143 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
145 m_actionsHasBeenSet =
true;
146 m_actions = std::forward<ActionsT>(value);
148 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
153 template <
typename ActionsT = ActionIdentifier>
155 m_actionsHasBeenSet =
true;
156 m_actions.emplace_back(std::forward<ActionsT>(value));
167 template <
typename DefinitionT = PolicyDefinitionItem>
169 m_definitionHasBeenSet =
true;
170 m_definition = std::forward<DefinitionT>(value);
172 template <
typename DefinitionT = PolicyDefinitionItem>
185 template <
typename CreatedDateT = Aws::Utils::DateTime>
187 m_createdDateHasBeenSet =
true;
188 m_createdDate = std::forward<CreatedDateT>(value);
190 template <
typename CreatedDateT = Aws::Utils::DateTime>
203 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
205 m_lastUpdatedDateHasBeenSet =
true;
206 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
208 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
223 m_effectHasBeenSet =
true;
238 EntityIdentifier m_principal;
240 EntityIdentifier m_resource;
244 PolicyDefinitionItem m_definition;
251 bool m_policyStoreIdHasBeenSet =
false;
252 bool m_policyIdHasBeenSet =
false;
253 bool m_policyTypeHasBeenSet =
false;
254 bool m_principalHasBeenSet =
false;
255 bool m_resourceHasBeenSet =
false;
256 bool m_actionsHasBeenSet =
false;
257 bool m_definitionHasBeenSet =
false;
258 bool m_createdDateHasBeenSet =
false;
259 bool m_lastUpdatedDateHasBeenSet =
false;
260 bool m_effectHasBeenSet =
false;
void SetPolicyType(PolicyType value)
PolicyType GetPolicyType() const
void SetPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API PolicyItem(Aws::Utils::Json::JsonView jsonValue)
void SetDefinition(DefinitionT &&value)
bool ResourceHasBeenSet() const
const Aws::String & GetPolicyStoreId() const
void SetResource(ResourceT &&value)
void SetEffect(PolicyEffect value)
const Aws::String & GetPolicyId() const
bool ActionsHasBeenSet() const
PolicyItem & WithResource(ResourceT &&value)
void SetPrincipal(PrincipalT &&value)
PolicyItem & WithPrincipal(PrincipalT &&value)
PolicyEffect GetEffect() const
const EntityIdentifier & GetPrincipal() const
void SetLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
bool CreatedDateHasBeenSet() const
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyItem & WithPolicyStoreId(PolicyStoreIdT &&value)
bool PolicyTypeHasBeenSet() const
PolicyItem & WithDefinition(DefinitionT &&value)
PolicyItem & WithActions(ActionsT &&value)
AWS_VERIFIEDPERMISSIONS_API PolicyItem()=default
void SetPolicyId(PolicyIdT &&value)
PolicyItem & WithLastUpdatedDate(LastUpdatedDateT &&value)
bool LastUpdatedDateHasBeenSet() const
bool DefinitionHasBeenSet() const
bool EffectHasBeenSet() const
PolicyItem & AddActions(ActionsT &&value)
const EntityIdentifier & GetResource() const
const PolicyDefinitionItem & GetDefinition() const
void SetCreatedDate(CreatedDateT &&value)
AWS_VERIFIEDPERMISSIONS_API PolicyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ActionIdentifier > & GetActions() const
bool PrincipalHasBeenSet() const
PolicyItem & WithCreatedDate(CreatedDateT &&value)
PolicyItem & WithPolicyId(PolicyIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
bool PolicyIdHasBeenSet() const
PolicyItem & WithPolicyType(PolicyType value)
void SetActions(ActionsT &&value)
PolicyItem & WithEffect(PolicyEffect value)
bool PolicyStoreIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue