AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateDetectorVersionRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/frauddetector/model/RuleExecutionMode.h>
12#include <aws/frauddetector/model/Rule.h>
13#include <aws/frauddetector/model/ModelVersion.h>
14#include <utility>
15
16namespace Aws
17{
18namespace FraudDetector
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_FRAUDDETECTOR_API UpdateDetectorVersionRequest() = 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 "UpdateDetectorVersion"; }
35
36 AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
37
38 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
46 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
47 template<typename DetectorIdT = Aws::String>
48 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
49 template<typename DetectorIdT = Aws::String>
50 UpdateDetectorVersionRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDetectorVersionId() const { return m_detectorVersionId; }
58 inline bool DetectorVersionIdHasBeenSet() const { return m_detectorVersionIdHasBeenSet; }
59 template<typename DetectorVersionIdT = Aws::String>
60 void SetDetectorVersionId(DetectorVersionIdT&& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = std::forward<DetectorVersionIdT>(value); }
61 template<typename DetectorVersionIdT = Aws::String>
62 UpdateDetectorVersionRequest& WithDetectorVersionId(DetectorVersionIdT&& value) { SetDetectorVersionId(std::forward<DetectorVersionIdT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetExternalModelEndpoints() const { return m_externalModelEndpoints; }
70 inline bool ExternalModelEndpointsHasBeenSet() const { return m_externalModelEndpointsHasBeenSet; }
71 template<typename ExternalModelEndpointsT = Aws::Vector<Aws::String>>
72 void SetExternalModelEndpoints(ExternalModelEndpointsT&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = std::forward<ExternalModelEndpointsT>(value); }
73 template<typename ExternalModelEndpointsT = Aws::Vector<Aws::String>>
74 UpdateDetectorVersionRequest& WithExternalModelEndpoints(ExternalModelEndpointsT&& value) { SetExternalModelEndpoints(std::forward<ExternalModelEndpointsT>(value)); return *this;}
75 template<typename ExternalModelEndpointsT = Aws::String>
76 UpdateDetectorVersionRequest& AddExternalModelEndpoints(ExternalModelEndpointsT&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.emplace_back(std::forward<ExternalModelEndpointsT>(value)); return *this; }
78
80
83 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
84 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
85 template<typename RulesT = Aws::Vector<Rule>>
86 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
87 template<typename RulesT = Aws::Vector<Rule>>
88 UpdateDetectorVersionRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
89 template<typename RulesT = Rule>
90 UpdateDetectorVersionRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 UpdateDetectorVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
109 inline const Aws::Vector<ModelVersion>& GetModelVersions() const { return m_modelVersions; }
110 inline bool ModelVersionsHasBeenSet() const { return m_modelVersionsHasBeenSet; }
111 template<typename ModelVersionsT = Aws::Vector<ModelVersion>>
112 void SetModelVersions(ModelVersionsT&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = std::forward<ModelVersionsT>(value); }
113 template<typename ModelVersionsT = Aws::Vector<ModelVersion>>
114 UpdateDetectorVersionRequest& WithModelVersions(ModelVersionsT&& value) { SetModelVersions(std::forward<ModelVersionsT>(value)); return *this;}
115 template<typename ModelVersionsT = ModelVersion>
116 UpdateDetectorVersionRequest& AddModelVersions(ModelVersionsT&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.emplace_back(std::forward<ModelVersionsT>(value)); return *this; }
118
120
130 inline RuleExecutionMode GetRuleExecutionMode() const { return m_ruleExecutionMode; }
131 inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; }
132 inline void SetRuleExecutionMode(RuleExecutionMode value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; }
135 private:
136
137 Aws::String m_detectorId;
138 bool m_detectorIdHasBeenSet = false;
139
140 Aws::String m_detectorVersionId;
141 bool m_detectorVersionIdHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_externalModelEndpoints;
144 bool m_externalModelEndpointsHasBeenSet = false;
145
146 Aws::Vector<Rule> m_rules;
147 bool m_rulesHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 Aws::Vector<ModelVersion> m_modelVersions;
153 bool m_modelVersionsHasBeenSet = false;
154
156 bool m_ruleExecutionModeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace FraudDetector
161} // namespace Aws
UpdateDetectorVersionRequest & WithDetectorVersionId(DetectorVersionIdT &&value)
UpdateDetectorVersionRequest & WithDetectorId(DetectorIdT &&value)
UpdateDetectorVersionRequest & WithExternalModelEndpoints(ExternalModelEndpointsT &&value)
UpdateDetectorVersionRequest & WithDescription(DescriptionT &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
AWS_FRAUDDETECTOR_API UpdateDetectorVersionRequest()=default
UpdateDetectorVersionRequest & AddExternalModelEndpoints(ExternalModelEndpointsT &&value)
UpdateDetectorVersionRequest & WithModelVersions(ModelVersionsT &&value)
UpdateDetectorVersionRequest & AddRules(RulesT &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDetectorVersionRequest & AddModelVersions(ModelVersionsT &&value)
UpdateDetectorVersionRequest & WithRules(RulesT &&value)
UpdateDetectorVersionRequest & WithRuleExecutionMode(RuleExecutionMode value)
const Aws::Vector< Aws::String > & GetExternalModelEndpoints() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector