AWS SDK for C++  1.9.21
AWS SDK for C++
GetRulesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace FraudDetector
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetRules"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
41 
45  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
46 
50  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
51 
55  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
56 
60  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
61 
65  inline GetRulesRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
66 
70  inline GetRulesRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
71 
75  inline GetRulesRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;}
76 
77 
81  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
82 
86  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
87 
91  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
92 
96  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
97 
101  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
102 
106  inline GetRulesRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
107 
111  inline GetRulesRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
112 
116  inline GetRulesRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
117 
118 
122  inline const Aws::String& GetRuleVersion() const{ return m_ruleVersion; }
123 
127  inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
128 
132  inline void SetRuleVersion(const Aws::String& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; }
133 
137  inline void SetRuleVersion(Aws::String&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); }
138 
142  inline void SetRuleVersion(const char* value) { m_ruleVersionHasBeenSet = true; m_ruleVersion.assign(value); }
143 
147  inline GetRulesRequest& WithRuleVersion(const Aws::String& value) { SetRuleVersion(value); return *this;}
148 
152  inline GetRulesRequest& WithRuleVersion(Aws::String&& value) { SetRuleVersion(std::move(value)); return *this;}
153 
157  inline GetRulesRequest& WithRuleVersion(const char* value) { SetRuleVersion(value); return *this;}
158 
159 
163  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
164 
168  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
169 
173  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
174 
178  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
179 
183  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
184 
188  inline GetRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
189 
193  inline GetRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
194 
198  inline GetRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
199 
200 
204  inline int GetMaxResults() const{ return m_maxResults; }
205 
209  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
210 
214  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
215 
219  inline GetRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
220 
221  private:
222 
223  Aws::String m_ruleId;
224  bool m_ruleIdHasBeenSet;
225 
226  Aws::String m_detectorId;
227  bool m_detectorIdHasBeenSet;
228 
229  Aws::String m_ruleVersion;
230  bool m_ruleVersionHasBeenSet;
231 
232  Aws::String m_nextToken;
233  bool m_nextTokenHasBeenSet;
234 
235  int m_maxResults;
236  bool m_maxResultsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace FraudDetector
241 } // namespace Aws
Aws::FraudDetector::Model::GetRulesRequest::SetRuleVersion
void SetRuleVersion(const char *value)
Definition: GetRulesRequest.h:142
Aws::FraudDetector::Model::GetRulesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetRulesRequest.h:183
FraudDetectorRequest.h
Aws::FraudDetector::Model::GetRulesRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: GetRulesRequest.h:101
Aws::FraudDetector::Model::GetRulesRequest::GetRuleVersion
const Aws::String & GetRuleVersion() const
Definition: GetRulesRequest.h:122
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::GetRulesRequest::SetRuleVersion
void SetRuleVersion(const Aws::String &value)
Definition: GetRulesRequest.h:132
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::GetRulesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetRulesRequest.h:168
Aws::FraudDetector::Model::GetRulesRequest::SetRuleVersion
void SetRuleVersion(Aws::String &&value)
Definition: GetRulesRequest.h:137
Aws::FraudDetector::Model::GetRulesRequest::WithDetectorId
GetRulesRequest & WithDetectorId(const char *value)
Definition: GetRulesRequest.h:116
Aws::FraudDetector::Model::GetRulesRequest::GetRuleId
const Aws::String & GetRuleId() const
Definition: GetRulesRequest.h:40
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::GetRulesRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: GetRulesRequest.h:91
Aws::FraudDetector::Model::GetRulesRequest::WithNextToken
GetRulesRequest & WithNextToken(const char *value)
Definition: GetRulesRequest.h:198
Aws::FraudDetector::Model::GetRulesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetRulesRequest.h:214
Aws::FraudDetector::Model::GetRulesRequest::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: GetRulesRequest.h:55
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::GetRulesRequest::SetRuleId
void SetRuleId(const char *value)
Definition: GetRulesRequest.h:60
Aws::FraudDetector::Model::GetRulesRequest::WithRuleId
GetRulesRequest & WithRuleId(const char *value)
Definition: GetRulesRequest.h:75
Aws::FraudDetector::Model::GetRulesRequest::WithRuleId
GetRulesRequest & WithRuleId(Aws::String &&value)
Definition: GetRulesRequest.h:70
Aws::FraudDetector::Model::GetRulesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetRulesRequest.h:209
Aws::FraudDetector::Model::GetRulesRequest::WithDetectorId
GetRulesRequest & WithDetectorId(Aws::String &&value)
Definition: GetRulesRequest.h:111
Aws::FraudDetector::Model::GetRulesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetRulesRequest.h:173
Aws::FraudDetector::Model::GetRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::FraudDetector::Model::GetRulesRequest::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: GetRulesRequest.h:50
AWSString.h
Aws::FraudDetector::Model::GetRulesRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: GetRulesRequest.h:86
Aws::FraudDetector::Model::GetRulesRequest::WithDetectorId
GetRulesRequest & WithDetectorId(const Aws::String &value)
Definition: GetRulesRequest.h:106
Aws::FraudDetector::Model::GetRulesRequest::WithNextToken
GetRulesRequest & WithNextToken(Aws::String &&value)
Definition: GetRulesRequest.h:193
Aws::FraudDetector::Model::GetRulesRequest::WithRuleVersion
GetRulesRequest & WithRuleVersion(Aws::String &&value)
Definition: GetRulesRequest.h:152
Aws::FraudDetector::Model::GetRulesRequest::WithRuleVersion
GetRulesRequest & WithRuleVersion(const Aws::String &value)
Definition: GetRulesRequest.h:147
Aws::FraudDetector::Model::GetRulesRequest::WithMaxResults
GetRulesRequest & WithMaxResults(int value)
Definition: GetRulesRequest.h:219
Aws::FraudDetector::Model::GetRulesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::GetRulesRequest::WithNextToken
GetRulesRequest & WithNextToken(const Aws::String &value)
Definition: GetRulesRequest.h:188
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::GetRulesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetRulesRequest.h:178
Aws::FraudDetector::Model::GetRulesRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: GetRulesRequest.h:81
Aws::FraudDetector::Model::GetRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRulesRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::GetRulesRequest
Definition: GetRulesRequest.h:22
Aws::FraudDetector::Model::GetRulesRequest::WithRuleVersion
GetRulesRequest & WithRuleVersion(const char *value)
Definition: GetRulesRequest.h:157
Aws::FraudDetector::Model::GetRulesRequest::WithRuleId
GetRulesRequest & WithRuleId(const Aws::String &value)
Definition: GetRulesRequest.h:65
Aws::FraudDetector::Model::GetRulesRequest::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: GetRulesRequest.h:45
Aws::FraudDetector::Model::GetRulesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetRulesRequest.h:204
Aws::FraudDetector::Model::GetRulesRequest::GetRulesRequest
GetRulesRequest()
Aws::FraudDetector::Model::GetRulesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetRulesRequest.h:163
Aws::FraudDetector::Model::GetRulesRequest::RuleVersionHasBeenSet
bool RuleVersionHasBeenSet() const
Definition: GetRulesRequest.h:127
Aws::FraudDetector::Model::GetRulesRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: GetRulesRequest.h:96