AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
UpdateApprovalPolicyRequest.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 UpdateApprovalPolicyRequest() = 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 "UpdateApprovalPolicy"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetPolicyId() const { return m_policyId; }
40 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
41 template <typename PolicyIdT = Aws::String>
42 void SetPolicyId(PolicyIdT&& value) {
43 m_policyIdHasBeenSet = true;
44 m_policyId = std::forward<PolicyIdT>(value);
45 }
46 template <typename PolicyIdT = Aws::String>
48 SetPolicyId(std::forward<PolicyIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<GovernedAction>& GetActions() const { return m_actions; }
94 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
95 template <typename ActionsT = Aws::Vector<GovernedAction>>
96 void SetActions(ActionsT&& value) {
97 m_actionsHasBeenSet = true;
98 m_actions = std::forward<ActionsT>(value);
99 }
100 template <typename ActionsT = Aws::Vector<GovernedAction>>
102 SetActions(std::forward<ActionsT>(value));
103 return *this;
104 }
106 m_actionsHasBeenSet = true;
107 m_actions.push_back(value);
108 return *this;
109 }
111
113
116 inline const Aws::Vector<AssetType>& GetAssetTypes() const { return m_assetTypes; }
117 inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; }
118 template <typename AssetTypesT = Aws::Vector<AssetType>>
119 void SetAssetTypes(AssetTypesT&& value) {
120 m_assetTypesHasBeenSet = true;
121 m_assetTypes = std::forward<AssetTypesT>(value);
122 }
123 template <typename AssetTypesT = Aws::Vector<AssetType>>
125 SetAssetTypes(std::forward<AssetTypesT>(value));
126 return *this;
127 }
129 m_assetTypesHasBeenSet = true;
130 m_assetTypes.push_back(value);
131 return *this;
132 }
134
136
140 inline const ApplicableTo& GetApplicableTo() const { return m_applicableTo; }
141 inline bool ApplicableToHasBeenSet() const { return m_applicableToHasBeenSet; }
142 template <typename ApplicableToT = ApplicableTo>
143 void SetApplicableTo(ApplicableToT&& value) {
144 m_applicableToHasBeenSet = true;
145 m_applicableTo = std::forward<ApplicableToT>(value);
146 }
147 template <typename ApplicableToT = ApplicableTo>
149 SetApplicableTo(std::forward<ApplicableToT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<Aws::String>& GetApprovalGroups() const { return m_approvalGroups; }
159 inline bool ApprovalGroupsHasBeenSet() const { return m_approvalGroupsHasBeenSet; }
160 template <typename ApprovalGroupsT = Aws::Vector<Aws::String>>
161 void SetApprovalGroups(ApprovalGroupsT&& value) {
162 m_approvalGroupsHasBeenSet = true;
163 m_approvalGroups = std::forward<ApprovalGroupsT>(value);
164 }
165 template <typename ApprovalGroupsT = Aws::Vector<Aws::String>>
167 SetApprovalGroups(std::forward<ApprovalGroupsT>(value));
168 return *this;
169 }
170 template <typename ApprovalGroupsT = Aws::String>
172 m_approvalGroupsHasBeenSet = true;
173 m_approvalGroups.emplace_back(std::forward<ApprovalGroupsT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_policyId;
179
180 Aws::String m_name;
181
182 Aws::String m_description;
183
185
186 Aws::Vector<AssetType> m_assetTypes;
187
188 ApplicableTo m_applicableTo;
189
190 Aws::Vector<Aws::String> m_approvalGroups;
191 bool m_policyIdHasBeenSet = false;
192 bool m_nameHasBeenSet = false;
193 bool m_descriptionHasBeenSet = false;
194 bool m_actionsHasBeenSet = false;
195 bool m_assetTypesHasBeenSet = false;
196 bool m_applicableToHasBeenSet = false;
197 bool m_approvalGroupsHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace QuickSight
202} // namespace Aws
UpdateApprovalPolicyRequest & AddActions(GovernedAction value)
UpdateApprovalPolicyRequest & WithName(NameT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetApprovalGroups() const
const Aws::Vector< GovernedAction > & GetActions() const
UpdateApprovalPolicyRequest & WithDescription(DescriptionT &&value)
AWS_QUICKSIGHT_API UpdateApprovalPolicyRequest()=default
UpdateApprovalPolicyRequest & WithApprovalGroups(ApprovalGroupsT &&value)
UpdateApprovalPolicyRequest & WithAssetTypes(AssetTypesT &&value)
UpdateApprovalPolicyRequest & WithApplicableTo(ApplicableToT &&value)
UpdateApprovalPolicyRequest & WithActions(ActionsT &&value)
UpdateApprovalPolicyRequest & AddAssetTypes(AssetType value)
UpdateApprovalPolicyRequest & WithPolicyId(PolicyIdT &&value)
UpdateApprovalPolicyRequest & AddApprovalGroups(ApprovalGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector