AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListRulesRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/model/RuleAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/datazone/model/RuleType.h>
13#include <aws/datazone/model/RuleTargetType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace DataZone
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_DATAZONE_API ListRulesRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
39
40 AWS_DATAZONE_API Aws::String SerializePayload() const override;
41
42 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline RuleAction GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(RuleAction value) { m_actionHasBeenSet = true; m_action = value; }
52 inline ListRulesRequest& WithAction(RuleAction value) { SetAction(value); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetAssetTypes() const { return m_assetTypes; }
60 inline bool AssetTypesHasBeenSet() const { return m_assetTypesHasBeenSet; }
61 template<typename AssetTypesT = Aws::Vector<Aws::String>>
62 void SetAssetTypes(AssetTypesT&& value) { m_assetTypesHasBeenSet = true; m_assetTypes = std::forward<AssetTypesT>(value); }
63 template<typename AssetTypesT = Aws::Vector<Aws::String>>
64 ListRulesRequest& WithAssetTypes(AssetTypesT&& value) { SetAssetTypes(std::forward<AssetTypesT>(value)); return *this;}
65 template<typename AssetTypesT = Aws::String>
66 ListRulesRequest& AddAssetTypes(AssetTypesT&& value) { m_assetTypesHasBeenSet = true; m_assetTypes.emplace_back(std::forward<AssetTypesT>(value)); return *this; }
68
70
73 inline bool GetDataProduct() const { return m_dataProduct; }
74 inline bool DataProductHasBeenSet() const { return m_dataProductHasBeenSet; }
75 inline void SetDataProduct(bool value) { m_dataProductHasBeenSet = true; m_dataProduct = value; }
76 inline ListRulesRequest& WithDataProduct(bool value) { SetDataProduct(value); return *this;}
78
80
83 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
84 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
85 template<typename DomainIdentifierT = Aws::String>
86 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
87 template<typename DomainIdentifierT = Aws::String>
88 ListRulesRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
90
92
95 inline bool GetIncludeCascaded() const { return m_includeCascaded; }
96 inline bool IncludeCascadedHasBeenSet() const { return m_includeCascadedHasBeenSet; }
97 inline void SetIncludeCascaded(bool value) { m_includeCascadedHasBeenSet = true; m_includeCascaded = value; }
98 inline ListRulesRequest& WithIncludeCascaded(bool value) { SetIncludeCascaded(value); return *this;}
100
102
109 inline int GetMaxResults() const { return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 inline ListRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
114
116
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template<typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
128 template<typename NextTokenT = Aws::String>
129 ListRulesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
131
133
136 inline const Aws::Vector<Aws::String>& GetProjectIds() const { return m_projectIds; }
137 inline bool ProjectIdsHasBeenSet() const { return m_projectIdsHasBeenSet; }
138 template<typename ProjectIdsT = Aws::Vector<Aws::String>>
139 void SetProjectIds(ProjectIdsT&& value) { m_projectIdsHasBeenSet = true; m_projectIds = std::forward<ProjectIdsT>(value); }
140 template<typename ProjectIdsT = Aws::Vector<Aws::String>>
141 ListRulesRequest& WithProjectIds(ProjectIdsT&& value) { SetProjectIds(std::forward<ProjectIdsT>(value)); return *this;}
142 template<typename ProjectIdsT = Aws::String>
143 ListRulesRequest& AddProjectIds(ProjectIdsT&& value) { m_projectIdsHasBeenSet = true; m_projectIds.emplace_back(std::forward<ProjectIdsT>(value)); return *this; }
145
147
150 inline RuleType GetRuleType() const { return m_ruleType; }
151 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
152 inline void SetRuleType(RuleType value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
153 inline ListRulesRequest& WithRuleType(RuleType value) { SetRuleType(value); return *this;}
155
157
160 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
161 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
162 template<typename TargetIdentifierT = Aws::String>
163 void SetTargetIdentifier(TargetIdentifierT&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::forward<TargetIdentifierT>(value); }
164 template<typename TargetIdentifierT = Aws::String>
165 ListRulesRequest& WithTargetIdentifier(TargetIdentifierT&& value) { SetTargetIdentifier(std::forward<TargetIdentifierT>(value)); return *this;}
167
169
172 inline RuleTargetType GetTargetType() const { return m_targetType; }
173 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
174 inline void SetTargetType(RuleTargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
175 inline ListRulesRequest& WithTargetType(RuleTargetType value) { SetTargetType(value); return *this;}
177 private:
178
180 bool m_actionHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_assetTypes;
183 bool m_assetTypesHasBeenSet = false;
184
185 bool m_dataProduct{false};
186 bool m_dataProductHasBeenSet = false;
187
188 Aws::String m_domainIdentifier;
189 bool m_domainIdentifierHasBeenSet = false;
190
191 bool m_includeCascaded{false};
192 bool m_includeCascadedHasBeenSet = false;
193
194 int m_maxResults{0};
195 bool m_maxResultsHasBeenSet = false;
196
197 Aws::String m_nextToken;
198 bool m_nextTokenHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_projectIds;
201 bool m_projectIdsHasBeenSet = false;
202
203 RuleType m_ruleType{RuleType::NOT_SET};
204 bool m_ruleTypeHasBeenSet = false;
205
206 Aws::String m_targetIdentifier;
207 bool m_targetIdentifierHasBeenSet = false;
208
210 bool m_targetTypeHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace DataZone
215} // 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