AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
ApprovalPolicy.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
35 public:
36 AWS_QUICKSIGHT_API ApprovalPolicy() = default;
37 AWS_QUICKSIGHT_API ApprovalPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API ApprovalPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetPolicyId() const { return m_policyId; }
46 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
47 template <typename PolicyIdT = Aws::String>
48 void SetPolicyId(PolicyIdT&& value) {
49 m_policyIdHasBeenSet = true;
50 m_policyId = std::forward<PolicyIdT>(value);
51 }
52 template <typename PolicyIdT = Aws::String>
53 ApprovalPolicy& WithPolicyId(PolicyIdT&& value) {
54 SetPolicyId(std::forward<PolicyIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
64 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
65 template <typename PolicyArnT = Aws::String>
66 void SetPolicyArn(PolicyArnT&& value) {
67 m_policyArnHasBeenSet = true;
68 m_policyArn = std::forward<PolicyArnT>(value);
69 }
70 template <typename PolicyArnT = Aws::String>
71 ApprovalPolicy& WithPolicyArn(PolicyArnT&& value) {
72 SetPolicyArn(std::forward<PolicyArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 ApprovalPolicy& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 ApprovalPolicy& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<GovernedAction>& GetActions() const { return m_actions; }
118 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
119 template <typename ActionsT = Aws::Vector<GovernedAction>>
120 void SetActions(ActionsT&& value) {
121 m_actionsHasBeenSet = true;
122 m_actions = std::forward<ActionsT>(value);
123 }
124 template <typename ActionsT = Aws::Vector<GovernedAction>>
125 ApprovalPolicy& WithActions(ActionsT&& value) {
126 SetActions(std::forward<ActionsT>(value));
127 return *this;
128 }
130 m_actionsHasBeenSet = true;
131 m_actions.push_back(value);
132 return *this;
133 }
135
137
140 inline const Aws::Vector<AssetType>& GetAssetTypes() const { return m_assetTypes; }
141 inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; }
142 template <typename AssetTypesT = Aws::Vector<AssetType>>
143 void SetAssetTypes(AssetTypesT&& value) {
144 m_assetTypesHasBeenSet = true;
145 m_assetTypes = std::forward<AssetTypesT>(value);
146 }
147 template <typename AssetTypesT = Aws::Vector<AssetType>>
148 ApprovalPolicy& WithAssetTypes(AssetTypesT&& value) {
149 SetAssetTypes(std::forward<AssetTypesT>(value));
150 return *this;
151 }
153 m_assetTypesHasBeenSet = true;
154 m_assetTypes.push_back(value);
155 return *this;
156 }
158
160
164 inline const ApplicableTo& GetApplicableTo() const { return m_applicableTo; }
165 inline bool ApplicableToHasBeenSet() const { return m_applicableToHasBeenSet; }
166 template <typename ApplicableToT = ApplicableTo>
167 void SetApplicableTo(ApplicableToT&& value) {
168 m_applicableToHasBeenSet = true;
169 m_applicableTo = std::forward<ApplicableToT>(value);
170 }
171 template <typename ApplicableToT = ApplicableTo>
172 ApprovalPolicy& WithApplicableTo(ApplicableToT&& value) {
173 SetApplicableTo(std::forward<ApplicableToT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<Aws::String>& GetApprovalGroups() const { return m_approvalGroups; }
183 inline bool ApprovalGroupsHasBeenSet() const { return m_approvalGroupsHasBeenSet; }
184 template <typename ApprovalGroupsT = Aws::Vector<Aws::String>>
185 void SetApprovalGroups(ApprovalGroupsT&& value) {
186 m_approvalGroupsHasBeenSet = true;
187 m_approvalGroups = std::forward<ApprovalGroupsT>(value);
188 }
189 template <typename ApprovalGroupsT = Aws::Vector<Aws::String>>
190 ApprovalPolicy& WithApprovalGroups(ApprovalGroupsT&& value) {
191 SetApprovalGroups(std::forward<ApprovalGroupsT>(value));
192 return *this;
193 }
194 template <typename ApprovalGroupsT = Aws::String>
195 ApprovalPolicy& AddApprovalGroups(ApprovalGroupsT&& value) {
196 m_approvalGroupsHasBeenSet = true;
197 m_approvalGroups.emplace_back(std::forward<ApprovalGroupsT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
207 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
208 template <typename CreatedAtT = Aws::Utils::DateTime>
209 void SetCreatedAt(CreatedAtT&& value) {
210 m_createdAtHasBeenSet = true;
211 m_createdAt = std::forward<CreatedAtT>(value);
212 }
213 template <typename CreatedAtT = Aws::Utils::DateTime>
214 ApprovalPolicy& WithCreatedAt(CreatedAtT&& value) {
215 SetCreatedAt(std::forward<CreatedAtT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
225 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
226 template <typename UpdatedAtT = Aws::Utils::DateTime>
227 void SetUpdatedAt(UpdatedAtT&& value) {
228 m_updatedAtHasBeenSet = true;
229 m_updatedAt = std::forward<UpdatedAtT>(value);
230 }
231 template <typename UpdatedAtT = Aws::Utils::DateTime>
232 ApprovalPolicy& WithUpdatedAt(UpdatedAtT&& value) {
233 SetUpdatedAt(std::forward<UpdatedAtT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_policyId;
239
240 Aws::String m_policyArn;
241
242 Aws::String m_name;
243
244 Aws::String m_description;
245
247
248 Aws::Vector<AssetType> m_assetTypes;
249
250 ApplicableTo m_applicableTo;
251
252 Aws::Vector<Aws::String> m_approvalGroups;
253
254 Aws::Utils::DateTime m_createdAt{};
255
256 Aws::Utils::DateTime m_updatedAt{};
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;
267};
268
269} // namespace Model
270} // namespace QuickSight
271} // namespace Aws
const ApplicableTo & GetApplicableTo() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssetTypes(AssetTypesT &&value)
const Aws::String & GetPolicyArn() const
const Aws::Utils::DateTime & GetCreatedAt() 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 SetDescription(DescriptionT &&value)
void SetCreatedAt(CreatedAtT &&value)
ApprovalPolicy & WithUpdatedAt(UpdatedAtT &&value)
ApprovalPolicy & AddApprovalGroups(ApprovalGroupsT &&value)
void SetApplicableTo(ApplicableToT &&value)
void SetApprovalGroups(ApprovalGroupsT &&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
const Aws::String & GetPolicyId() const
const Aws::Vector< AssetType > & GetAssetTypes() 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