AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
CreateApprovalPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.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 QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API CreateApprovalPolicyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApprovalPolicy"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetPolicyId() const { return m_policyId; }
41 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
42 template <typename PolicyIdT = Aws::String>
43 void SetPolicyId(PolicyIdT&& value) {
44 m_policyIdHasBeenSet = true;
45 m_policyId = std::forward<PolicyIdT>(value);
46 }
47 template <typename PolicyIdT = Aws::String>
49 SetPolicyId(std::forward<PolicyIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<GovernedAction>& GetActions() const { return m_actions; }
95 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
96 template <typename ActionsT = Aws::Vector<GovernedAction>>
97 void SetActions(ActionsT&& value) {
98 m_actionsHasBeenSet = true;
99 m_actions = std::forward<ActionsT>(value);
100 }
101 template <typename ActionsT = Aws::Vector<GovernedAction>>
103 SetActions(std::forward<ActionsT>(value));
104 return *this;
105 }
107 m_actionsHasBeenSet = true;
108 m_actions.push_back(value);
109 return *this;
110 }
112
114
117 inline const Aws::Vector<AssetType>& GetAssetTypes() const { return m_assetTypes; }
118 inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; }
119 template <typename AssetTypesT = Aws::Vector<AssetType>>
120 void SetAssetTypes(AssetTypesT&& value) {
121 m_assetTypesHasBeenSet = true;
122 m_assetTypes = std::forward<AssetTypesT>(value);
123 }
124 template <typename AssetTypesT = Aws::Vector<AssetType>>
126 SetAssetTypes(std::forward<AssetTypesT>(value));
127 return *this;
128 }
130 m_assetTypesHasBeenSet = true;
131 m_assetTypes.push_back(value);
132 return *this;
133 }
135
137
141 inline const ApplicableTo& GetApplicableTo() const { return m_applicableTo; }
142 inline bool ApplicableToHasBeenSet() const { return m_applicableToHasBeenSet; }
143 template <typename ApplicableToT = ApplicableTo>
144 void SetApplicableTo(ApplicableToT&& value) {
145 m_applicableToHasBeenSet = true;
146 m_applicableTo = std::forward<ApplicableToT>(value);
147 }
148 template <typename ApplicableToT = ApplicableTo>
150 SetApplicableTo(std::forward<ApplicableToT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Vector<Aws::String>& GetApprovalGroups() const { return m_approvalGroups; }
160 inline bool ApprovalGroupsHasBeenSet() const { return m_approvalGroupsHasBeenSet; }
161 template <typename ApprovalGroupsT = Aws::Vector<Aws::String>>
162 void SetApprovalGroups(ApprovalGroupsT&& value) {
163 m_approvalGroupsHasBeenSet = true;
164 m_approvalGroups = std::forward<ApprovalGroupsT>(value);
165 }
166 template <typename ApprovalGroupsT = Aws::Vector<Aws::String>>
168 SetApprovalGroups(std::forward<ApprovalGroupsT>(value));
169 return *this;
170 }
171 template <typename ApprovalGroupsT = Aws::String>
173 m_approvalGroupsHasBeenSet = true;
174 m_approvalGroups.emplace_back(std::forward<ApprovalGroupsT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_policyId;
180
181 Aws::String m_name;
182
183 Aws::String m_description;
184
186
187 Aws::Vector<AssetType> m_assetTypes;
188
189 ApplicableTo m_applicableTo;
190
191 Aws::Vector<Aws::String> m_approvalGroups;
192 bool m_policyIdHasBeenSet = false;
193 bool m_nameHasBeenSet = false;
194 bool m_descriptionHasBeenSet = false;
195 bool m_actionsHasBeenSet = false;
196 bool m_assetTypesHasBeenSet = false;
197 bool m_applicableToHasBeenSet = false;
198 bool m_approvalGroupsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace QuickSight
203} // namespace Aws
CreateApprovalPolicyRequest & AddAssetTypes(AssetType value)
const Aws::Vector< Aws::String > & GetApprovalGroups() const
const Aws::Vector< GovernedAction > & GetActions() const
AWS_QUICKSIGHT_API CreateApprovalPolicyRequest()=default
CreateApprovalPolicyRequest & WithAssetTypes(AssetTypesT &&value)
CreateApprovalPolicyRequest & WithName(NameT &&value)
CreateApprovalPolicyRequest & AddApprovalGroups(ApprovalGroupsT &&value)
CreateApprovalPolicyRequest & WithApprovalGroups(ApprovalGroupsT &&value)
CreateApprovalPolicyRequest & WithPolicyId(PolicyIdT &&value)
CreateApprovalPolicyRequest & AddActions(GovernedAction value)
CreateApprovalPolicyRequest & WithDescription(DescriptionT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateApprovalPolicyRequest & WithApplicableTo(ApplicableToT &&value)
CreateApprovalPolicyRequest & WithActions(ActionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector