AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetRulesRequest.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/frauddetector/FraudDetectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace FraudDetector
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_FRAUDDETECTOR_API GetRulesRequest() = default;
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_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
33
34 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetRuleId() const { return m_ruleId; }
42 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
43 template<typename RuleIdT = Aws::String>
44 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
45 template<typename RuleIdT = Aws::String>
46 GetRulesRequest& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
54 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
55 template<typename DetectorIdT = Aws::String>
56 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
57 template<typename DetectorIdT = Aws::String>
58 GetRulesRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetRuleVersion() const { return m_ruleVersion; }
66 inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
67 template<typename RuleVersionT = Aws::String>
68 void SetRuleVersion(RuleVersionT&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::forward<RuleVersionT>(value); }
69 template<typename RuleVersionT = Aws::String>
70 GetRulesRequest& WithRuleVersion(RuleVersionT&& value) { SetRuleVersion(std::forward<RuleVersionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template<typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
81 template<typename NextTokenT = Aws::String>
82 GetRulesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
84
86
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 inline GetRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94 private:
95
96 Aws::String m_ruleId;
97 bool m_ruleIdHasBeenSet = false;
98
99 Aws::String m_detectorId;
100 bool m_detectorIdHasBeenSet = false;
101
102 Aws::String m_ruleVersion;
103 bool m_ruleVersionHasBeenSet = false;
104
105 Aws::String m_nextToken;
106 bool m_nextTokenHasBeenSet = false;
107
108 int m_maxResults{0};
109 bool m_maxResultsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace FraudDetector
114} // namespace Aws
GetRulesRequest & WithRuleVersion(RuleVersionT &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FRAUDDETECTOR_API GetRulesRequest()=default
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
GetRulesRequest & WithMaxResults(int value)
const Aws::String & GetDetectorId() const
const Aws::String & GetNextToken() const
GetRulesRequest & WithNextToken(NextTokenT &&value)
void SetRuleVersion(RuleVersionT &&value)
virtual const char * GetServiceRequestName() const override
GetRulesRequest & WithRuleId(RuleIdT &&value)
GetRulesRequest & WithDetectorId(DetectorIdT &&value)
const Aws::String & GetRuleVersion() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String