AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ListRulesRequest.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/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/RuleAction.h>
12#include <aws/datazone/model/RuleTargetType.h>
13#include <aws/datazone/model/RuleType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API ListRulesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline RuleAction GetAction() const { return m_action; }
45 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
46 inline void SetAction(RuleAction value) {
47 m_actionHasBeenSet = true;
48 m_action = value;
49 }
51 SetAction(value);
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetAssetTypes() const { return m_assetTypes; }
61 inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; }
62 template <typename AssetTypesT = Aws::Vector<Aws::String>>
63 void SetAssetTypes(AssetTypesT&& value) {
64 m_assetTypesHasBeenSet = true;
65 m_assetTypes = std::forward<AssetTypesT>(value);
66 }
67 template <typename AssetTypesT = Aws::Vector<Aws::String>>
68 ListRulesRequest& WithAssetTypes(AssetTypesT&& value) {
69 SetAssetTypes(std::forward<AssetTypesT>(value));
70 return *this;
71 }
72 template <typename AssetTypesT = Aws::String>
73 ListRulesRequest& AddAssetTypes(AssetTypesT&& value) {
74 m_assetTypesHasBeenSet = true;
75 m_assetTypes.emplace_back(std::forward<AssetTypesT>(value));
76 return *this;
77 }
79
81
84 inline bool GetDataProduct() const { return m_dataProduct; }
85 inline bool DataProductHasBeenSet() const { return m_dataProductHasBeenSet; }
86 inline void SetDataProduct(bool value) {
87 m_dataProductHasBeenSet = true;
88 m_dataProduct = value;
89 }
90 inline ListRulesRequest& WithDataProduct(bool value) {
91 SetDataProduct(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
101 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
102 template <typename DomainIdentifierT = Aws::String>
103 void SetDomainIdentifier(DomainIdentifierT&& value) {
104 m_domainIdentifierHasBeenSet = true;
105 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
106 }
107 template <typename DomainIdentifierT = Aws::String>
108 ListRulesRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
109 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
110 return *this;
111 }
113
115
118 inline bool GetIncludeCascaded() const { return m_includeCascaded; }
119 inline bool IncludeCascadedHasBeenSet() const { return m_includeCascadedHasBeenSet; }
120 inline void SetIncludeCascaded(bool value) {
121 m_includeCascadedHasBeenSet = true;
122 m_includeCascaded = value;
123 }
125 SetIncludeCascaded(value);
126 return *this;
127 }
129
131
138 inline int GetMaxResults() const { return m_maxResults; }
139 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
140 inline void SetMaxResults(int value) {
141 m_maxResultsHasBeenSet = true;
142 m_maxResults = value;
143 }
144 inline ListRulesRequest& WithMaxResults(int value) {
145 SetMaxResults(value);
146 return *this;
147 }
149
151
159 inline const Aws::String& GetNextToken() const { return m_nextToken; }
160 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
161 template <typename NextTokenT = Aws::String>
162 void SetNextToken(NextTokenT&& value) {
163 m_nextTokenHasBeenSet = true;
164 m_nextToken = std::forward<NextTokenT>(value);
165 }
166 template <typename NextTokenT = Aws::String>
167 ListRulesRequest& WithNextToken(NextTokenT&& value) {
168 SetNextToken(std::forward<NextTokenT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Aws::String>& GetProjectIds() const { return m_projectIds; }
178 inline bool ProjectIdsHasBeenSet() const { return m_projectIdsHasBeenSet; }
179 template <typename ProjectIdsT = Aws::Vector<Aws::String>>
180 void SetProjectIds(ProjectIdsT&& value) {
181 m_projectIdsHasBeenSet = true;
182 m_projectIds = std::forward<ProjectIdsT>(value);
183 }
184 template <typename ProjectIdsT = Aws::Vector<Aws::String>>
185 ListRulesRequest& WithProjectIds(ProjectIdsT&& value) {
186 SetProjectIds(std::forward<ProjectIdsT>(value));
187 return *this;
188 }
189 template <typename ProjectIdsT = Aws::String>
190 ListRulesRequest& AddProjectIds(ProjectIdsT&& value) {
191 m_projectIdsHasBeenSet = true;
192 m_projectIds.emplace_back(std::forward<ProjectIdsT>(value));
193 return *this;
194 }
196
198
201 inline RuleType GetRuleType() const { return m_ruleType; }
202 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
203 inline void SetRuleType(RuleType value) {
204 m_ruleTypeHasBeenSet = true;
205 m_ruleType = value;
206 }
208 SetRuleType(value);
209 return *this;
210 }
212
214
217 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
218 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
219 template <typename TargetIdentifierT = Aws::String>
220 void SetTargetIdentifier(TargetIdentifierT&& value) {
221 m_targetIdentifierHasBeenSet = true;
222 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
223 }
224 template <typename TargetIdentifierT = Aws::String>
225 ListRulesRequest& WithTargetIdentifier(TargetIdentifierT&& value) {
226 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
227 return *this;
228 }
230
232
235 inline RuleTargetType GetTargetType() const { return m_targetType; }
236 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
237 inline void SetTargetType(RuleTargetType value) {
238 m_targetTypeHasBeenSet = true;
239 m_targetType = value;
240 }
242 SetTargetType(value);
243 return *this;
244 }
246 private:
248 bool m_actionHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_assetTypes;
251 bool m_assetTypesHasBeenSet = false;
252
253 bool m_dataProduct{false};
254 bool m_dataProductHasBeenSet = false;
255
256 Aws::String m_domainIdentifier;
257 bool m_domainIdentifierHasBeenSet = false;
258
259 bool m_includeCascaded{false};
260 bool m_includeCascadedHasBeenSet = false;
261
262 int m_maxResults{0};
263 bool m_maxResultsHasBeenSet = false;
264
265 Aws::String m_nextToken;
266 bool m_nextTokenHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_projectIds;
269 bool m_projectIdsHasBeenSet = false;
270
271 RuleType m_ruleType{RuleType::NOT_SET};
272 bool m_ruleTypeHasBeenSet = false;
273
274 Aws::String m_targetIdentifier;
275 bool m_targetIdentifierHasBeenSet = false;
276
278 bool m_targetTypeHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace DataZone
283} // namespace Aws
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListRulesRequest & WithIncludeCascaded(bool value)
const Aws::String & GetNextToken() const
ListRulesRequest & WithRuleType(RuleType value)
const Aws::String & GetTargetIdentifier() const
ListRulesRequest & WithTargetType(RuleTargetType value)
ListRulesRequest & WithAssetTypes(AssetTypesT &&value)
ListRulesRequest & WithAction(RuleAction value)
void SetTargetIdentifier(TargetIdentifierT &&value)
void SetAssetTypes(AssetTypesT &&value)
const Aws::String & GetDomainIdentifier() const
ListRulesRequest & WithMaxResults(int value)
ListRulesRequest & WithNextToken(NextTokenT &&value)
void SetTargetType(RuleTargetType value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
void SetDomainIdentifier(DomainIdentifierT &&value)
AWS_DATAZONE_API ListRulesRequest()=default
ListRulesRequest & WithProjectIds(ProjectIdsT &&value)
ListRulesRequest & AddProjectIds(ProjectIdsT &&value)
const Aws::Vector< Aws::String > & GetAssetTypes() const
ListRulesRequest & WithTargetIdentifier(TargetIdentifierT &&value)
ListRulesRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const Aws::Vector< Aws::String > & GetProjectIds() const
virtual const char * GetServiceRequestName() const override
void SetProjectIds(ProjectIdsT &&value)
ListRulesRequest & WithDataProduct(bool value)
ListRulesRequest & AddAssetTypes(AssetTypesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector