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>
19template <
typename RESULT_TYPE>
20class AmazonWebServiceResult;
27namespace VerifiedPermissions {
40 template <
typename PolicyStoreIdT = Aws::String>
42 m_policyStoreIdHasBeenSet =
true;
43 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
45 template <
typename PolicyStoreIdT = Aws::String>
57 template <
typename PolicyIdT = Aws::String>
59 m_policyIdHasBeenSet =
true;
60 m_policyId = std::forward<PolicyIdT>(value);
62 template <
typename PolicyIdT = Aws::String>
75 m_policyTypeHasBeenSet =
true;
91 template <
typename PrincipalT = EntityIdentifier>
93 m_principalHasBeenSet =
true;
94 m_principal = std::forward<PrincipalT>(value);
96 template <
typename PrincipalT = EntityIdentifier>
110 template <
typename ResourceT = EntityIdentifier>
112 m_resourceHasBeenSet =
true;
113 m_resource = std::forward<ResourceT>(value);
115 template <
typename ResourceT = EntityIdentifier>
129 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
131 m_actionsHasBeenSet =
true;
132 m_actions = std::forward<ActionsT>(value);
134 template <
typename ActionsT = Aws::Vector<ActionIdentifier>>
139 template <
typename ActionsT = ActionIdentifier>
141 m_actionsHasBeenSet =
true;
142 m_actions.emplace_back(std::forward<ActionsT>(value));
152 template <
typename CreatedDateT = Aws::Utils::DateTime>
154 m_createdDateHasBeenSet =
true;
155 m_createdDate = std::forward<CreatedDateT>(value);
157 template <
typename CreatedDateT = Aws::Utils::DateTime>
169 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
171 m_lastUpdatedDateHasBeenSet =
true;
172 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
174 template <
typename LastUpdatedDateT = Aws::Utils::DateTime>
188 m_effectHasBeenSet =
true;
200 template <
typename RequestIdT = Aws::String>
202 m_requestIdHasBeenSet =
true;
203 m_requestId = std::forward<RequestIdT>(value);
205 template <
typename RequestIdT = Aws::String>
218 EntityIdentifier m_principal;
220 EntityIdentifier m_resource;
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;
void SetPolicyId(PolicyIdT &&value)
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