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/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/ApplicableTo.h>
12#include <aws/quicksight/model/AssetType.h>
13#include <aws/quicksight/model/GovernedAction.h>
47 template <
typename PolicyIdT = Aws::String>
49 m_policyIdHasBeenSet =
true;
50 m_policyId = std::forward<PolicyIdT>(value);
52 template <
typename PolicyIdT = Aws::String>
65 template <
typename PolicyArnT = Aws::String>
67 m_policyArnHasBeenSet =
true;
68 m_policyArn = std::forward<PolicyArnT>(value);
70 template <
typename PolicyArnT = Aws::String>
83 template <
typename NameT = Aws::String>
85 m_nameHasBeenSet =
true;
86 m_name = std::forward<NameT>(value);
88 template <
typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
101 template <
typename DescriptionT = Aws::String>
103 m_descriptionHasBeenSet =
true;
104 m_description = std::forward<DescriptionT>(value);
106 template <
typename DescriptionT = Aws::String>
119 template <
typename ActionsT = Aws::Vector<GovernedAction>>
121 m_actionsHasBeenSet =
true;
122 m_actions = std::forward<ActionsT>(value);
124 template <
typename ActionsT = Aws::Vector<GovernedAction>>
130 m_actionsHasBeenSet =
true;
131 m_actions.push_back(value);
142 template <
typename AssetTypesT = Aws::Vector<AssetType>>
144 m_assetTypesHasBeenSet =
true;
145 m_assetTypes = std::forward<AssetTypesT>(value);
147 template <
typename AssetTypesT = Aws::Vector<AssetType>>
153 m_assetTypesHasBeenSet =
true;
154 m_assetTypes.push_back(value);
166 template <
typename ApplicableToT = ApplicableTo>
168 m_applicableToHasBeenSet =
true;
169 m_applicableTo = std::forward<ApplicableToT>(value);
171 template <
typename ApplicableToT = ApplicableTo>
184 template <
typename ApprovalGroupsT = Aws::Vector<Aws::String>>
186 m_approvalGroupsHasBeenSet =
true;
187 m_approvalGroups = std::forward<ApprovalGroupsT>(value);
189 template <
typename ApprovalGroupsT = Aws::Vector<Aws::String>>
194 template <
typename ApprovalGroupsT = Aws::String>
196 m_approvalGroupsHasBeenSet =
true;
197 m_approvalGroups.emplace_back(std::forward<ApprovalGroupsT>(value));
208 template <
typename CreatedAtT = Aws::Utils::DateTime>
210 m_createdAtHasBeenSet =
true;
211 m_createdAt = std::forward<CreatedAtT>(value);
213 template <
typename CreatedAtT = Aws::Utils::DateTime>
226 template <
typename UpdatedAtT = Aws::Utils::DateTime>
228 m_updatedAtHasBeenSet =
true;
229 m_updatedAt = std::forward<UpdatedAtT>(value);
231 template <
typename UpdatedAtT = Aws::Utils::DateTime>
257 bool m_policyIdHasBeenSet =
false;
258 bool m_policyArnHasBeenSet =
false;
259 bool m_nameHasBeenSet =
false;
260 bool m_descriptionHasBeenSet =
false;
261 bool m_actionsHasBeenSet =
false;
262 bool m_assetTypesHasBeenSet =
false;
263 bool m_applicableToHasBeenSet =
false;
264 bool m_approvalGroupsHasBeenSet =
false;
265 bool m_createdAtHasBeenSet =
false;
266 bool m_updatedAtHasBeenSet =
false;
const ApplicableTo & GetApplicableTo() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssetTypes(AssetTypesT &&value)
void SetName(NameT &&value)
const Aws::String & GetPolicyArn() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool UpdatedAtHasBeenSet() const
bool AssetTypesHasBeenSet() const
bool PolicyIdHasBeenSet() const
ApprovalPolicy & AddAssetTypes(AssetType value)
ApprovalPolicy & WithApprovalGroups(ApprovalGroupsT &&value)
AWS_QUICKSIGHT_API ApprovalPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalPolicy & WithPolicyId(PolicyIdT &&value)
const Aws::Vector< GovernedAction > & GetActions() const
void SetActions(ActionsT &&value)
void SetDescription(DescriptionT &&value)
void SetCreatedAt(CreatedAtT &&value)
bool DescriptionHasBeenSet() const
ApprovalPolicy & WithUpdatedAt(UpdatedAtT &&value)
bool ApprovalGroupsHasBeenSet() const
ApprovalPolicy & AddApprovalGroups(ApprovalGroupsT &&value)
void SetApplicableTo(ApplicableToT &&value)
void SetApprovalGroups(ApprovalGroupsT &&value)
void SetPolicyId(PolicyIdT &&value)
ApprovalPolicy & WithAssetTypes(AssetTypesT &&value)
ApprovalPolicy & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetPolicyArn(PolicyArnT &&value)
ApprovalPolicy & WithName(NameT &&value)
ApprovalPolicy & AddActions(GovernedAction value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< Aws::String > & GetApprovalGroups() const
ApprovalPolicy & WithPolicyArn(PolicyArnT &&value)
ApprovalPolicy & WithApplicableTo(ApplicableToT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetName() const
AWS_QUICKSIGHT_API ApprovalPolicy(Aws::Utils::Json::JsonView jsonValue)
ApprovalPolicy & WithCreatedAt(CreatedAtT &&value)
ApprovalPolicy & WithActions(ActionsT &&value)
AWS_QUICKSIGHT_API ApprovalPolicy()=default
bool NameHasBeenSet() const
bool ApplicableToHasBeenSet() const
bool ActionsHasBeenSet() const
const Aws::String & GetPolicyId() const
const Aws::Vector< AssetType > & GetAssetTypes() const
bool PolicyArnHasBeenSet() const
bool CreatedAtHasBeenSet() 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