AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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 const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
45 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
46 template <typename DomainIdentifierT = Aws::String>
47 void SetDomainIdentifier(DomainIdentifierT&& value) {
48 m_domainIdentifierHasBeenSet = true;
49 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
50 }
51 template <typename DomainIdentifierT = Aws::String>
52 ListRulesRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
53 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
54 return *this;
55 }
57
59
62 inline RuleTargetType GetTargetType() const { return m_targetType; }
63 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
64 inline void SetTargetType(RuleTargetType value) {
65 m_targetTypeHasBeenSet = true;
66 m_targetType = value;
67 }
69 SetTargetType(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
79 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
80 template <typename TargetIdentifierT = Aws::String>
81 void SetTargetIdentifier(TargetIdentifierT&& value) {
82 m_targetIdentifierHasBeenSet = true;
83 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
84 }
85 template <typename TargetIdentifierT = Aws::String>
86 ListRulesRequest& WithTargetIdentifier(TargetIdentifierT&& value) {
87 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
88 return *this;
89 }
91
93
96 inline RuleType GetRuleType() const { return m_ruleType; }
97 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
98 inline void SetRuleType(RuleType value) {
99 m_ruleTypeHasBeenSet = true;
100 m_ruleType = value;
101 }
103 SetRuleType(value);
104 return *this;
105 }
107
109
112 inline RuleAction GetAction() const { return m_action; }
113 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
114 inline void SetAction(RuleAction value) {
115 m_actionHasBeenSet = true;
116 m_action = value;
117 }
119 SetAction(value);
120 return *this;
121 }
123
125
128 inline const Aws::Vector<Aws::String>& GetProjectIds() const { return m_projectIds; }
129 inline bool ProjectIdsHasBeenSet() const { return m_projectIdsHasBeenSet; }
130 template <typename ProjectIdsT = Aws::Vector<Aws::String>>
131 void SetProjectIds(ProjectIdsT&& value) {
132 m_projectIdsHasBeenSet = true;
133 m_projectIds = std::forward<ProjectIdsT>(value);
134 }
135 template <typename ProjectIdsT = Aws::Vector<Aws::String>>
136 ListRulesRequest& WithProjectIds(ProjectIdsT&& value) {
137 SetProjectIds(std::forward<ProjectIdsT>(value));
138 return *this;
139 }
140 template <typename ProjectIdsT = Aws::String>
141 ListRulesRequest& AddProjectIds(ProjectIdsT&& value) {
142 m_projectIdsHasBeenSet = true;
143 m_projectIds.emplace_back(std::forward<ProjectIdsT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<Aws::String>& GetAssetTypes() const { return m_assetTypes; }
153 inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; }
154 template <typename AssetTypesT = Aws::Vector<Aws::String>>
155 void SetAssetTypes(AssetTypesT&& value) {
156 m_assetTypesHasBeenSet = true;
157 m_assetTypes = std::forward<AssetTypesT>(value);
158 }
159 template <typename AssetTypesT = Aws::Vector<Aws::String>>
160 ListRulesRequest& WithAssetTypes(AssetTypesT&& value) {
161 SetAssetTypes(std::forward<AssetTypesT>(value));
162 return *this;
163 }
164 template <typename AssetTypesT = Aws::String>
165 ListRulesRequest& AddAssetTypes(AssetTypesT&& value) {
166 m_assetTypesHasBeenSet = true;
167 m_assetTypes.emplace_back(std::forward<AssetTypesT>(value));
168 return *this;
169 }
171
173
176 inline bool GetDataProduct() const { return m_dataProduct; }
177 inline bool DataProductHasBeenSet() const { return m_dataProductHasBeenSet; }
178 inline void SetDataProduct(bool value) {
179 m_dataProductHasBeenSet = true;
180 m_dataProduct = value;
181 }
182 inline ListRulesRequest& WithDataProduct(bool value) {
183 SetDataProduct(value);
184 return *this;
185 }
187
189
192 inline bool GetIncludeCascaded() const { return m_includeCascaded; }
193 inline bool IncludeCascadedHasBeenSet() const { return m_includeCascadedHasBeenSet; }
194 inline void SetIncludeCascaded(bool value) {
195 m_includeCascadedHasBeenSet = true;
196 m_includeCascaded = value;
197 }
199 SetIncludeCascaded(value);
200 return *this;
201 }
203
205
212 inline int GetMaxResults() const { return m_maxResults; }
213 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
214 inline void SetMaxResults(int value) {
215 m_maxResultsHasBeenSet = true;
216 m_maxResults = value;
217 }
218 inline ListRulesRequest& WithMaxResults(int value) {
219 SetMaxResults(value);
220 return *this;
221 }
223
225
233 inline const Aws::String& GetNextToken() const { return m_nextToken; }
234 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
235 template <typename NextTokenT = Aws::String>
236 void SetNextToken(NextTokenT&& value) {
237 m_nextTokenHasBeenSet = true;
238 m_nextToken = std::forward<NextTokenT>(value);
239 }
240 template <typename NextTokenT = Aws::String>
241 ListRulesRequest& WithNextToken(NextTokenT&& value) {
242 SetNextToken(std::forward<NextTokenT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_domainIdentifier;
248
250
251 Aws::String m_targetIdentifier;
252
253 RuleType m_ruleType{RuleType::NOT_SET};
254
256
257 Aws::Vector<Aws::String> m_projectIds;
258
259 Aws::Vector<Aws::String> m_assetTypes;
260
261 bool m_dataProduct{false};
262
263 bool m_includeCascaded{false};
264
265 int m_maxResults{0};
266
267 Aws::String m_nextToken;
268 bool m_domainIdentifierHasBeenSet = false;
269 bool m_targetTypeHasBeenSet = false;
270 bool m_targetIdentifierHasBeenSet = false;
271 bool m_ruleTypeHasBeenSet = false;
272 bool m_actionHasBeenSet = false;
273 bool m_projectIdsHasBeenSet = false;
274 bool m_assetTypesHasBeenSet = false;
275 bool m_dataProductHasBeenSet = false;
276 bool m_includeCascadedHasBeenSet = false;
277 bool m_maxResultsHasBeenSet = false;
278 bool m_nextTokenHasBeenSet = 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