AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
48 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
49 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
50 inline UpdateDetectorVersionRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
51 inline UpdateDetectorVersionRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
52 inline UpdateDetectorVersionRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
54
56
59 inline const Aws::String& GetDetectorVersionId() const{ return m_detectorVersionId; }
60 inline bool DetectorVersionIdHasBeenSet() const { return m_detectorVersionIdHasBeenSet; }
61 inline void SetDetectorVersionId(const Aws::String& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = value; }
62 inline void SetDetectorVersionId(Aws::String&& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = std::move(value); }
63 inline void SetDetectorVersionId(const char* value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId.assign(value); }
65 inline UpdateDetectorVersionRequest& WithDetectorVersionId(Aws::String&& value) { SetDetectorVersionId(std::move(value)); return *this;}
66 inline UpdateDetectorVersionRequest& WithDetectorVersionId(const char* value) { SetDetectorVersionId(value); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetExternalModelEndpoints() const{ return m_externalModelEndpoints; }
74 inline bool ExternalModelEndpointsHasBeenSet() const { return m_externalModelEndpointsHasBeenSet; }
75 inline void SetExternalModelEndpoints(const Aws::Vector<Aws::String>& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = value; }
76 inline void SetExternalModelEndpoints(Aws::Vector<Aws::String>&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = std::move(value); }
79 inline UpdateDetectorVersionRequest& AddExternalModelEndpoints(const Aws::String& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; }
80 inline UpdateDetectorVersionRequest& AddExternalModelEndpoints(Aws::String&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(std::move(value)); return *this; }
81 inline UpdateDetectorVersionRequest& AddExternalModelEndpoints(const char* value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; }
83
85
88 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
89 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
90 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
91 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
92 inline UpdateDetectorVersionRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
93 inline UpdateDetectorVersionRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
94 inline UpdateDetectorVersionRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
95 inline UpdateDetectorVersionRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
97
99
102 inline const Aws::String& GetDescription() const{ return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
105 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
106 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 inline UpdateDetectorVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 inline UpdateDetectorVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
109 inline UpdateDetectorVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
111
113
116 inline const Aws::Vector<ModelVersion>& GetModelVersions() const{ return m_modelVersions; }
117 inline bool ModelVersionsHasBeenSet() const { return m_modelVersionsHasBeenSet; }
118 inline void SetModelVersions(const Aws::Vector<ModelVersion>& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = value; }
119 inline void SetModelVersions(Aws::Vector<ModelVersion>&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = std::move(value); }
122 inline UpdateDetectorVersionRequest& AddModelVersions(const ModelVersion& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(value); return *this; }
123 inline UpdateDetectorVersionRequest& AddModelVersions(ModelVersion&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(std::move(value)); return *this; }
125
127
137 inline const RuleExecutionMode& GetRuleExecutionMode() const{ return m_ruleExecutionMode; }
138 inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; }
139 inline void SetRuleExecutionMode(const RuleExecutionMode& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; }
140 inline void SetRuleExecutionMode(RuleExecutionMode&& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = std::move(value); }
144 private:
145
146 Aws::String m_detectorId;
147 bool m_detectorIdHasBeenSet = false;
148
149 Aws::String m_detectorVersionId;
150 bool m_detectorVersionIdHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_externalModelEndpoints;
153 bool m_externalModelEndpointsHasBeenSet = false;
154
155 Aws::Vector<Rule> m_rules;
156 bool m_rulesHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::Vector<ModelVersion> m_modelVersions;
162 bool m_modelVersionsHasBeenSet = false;
163
164 RuleExecutionMode m_ruleExecutionMode;
165 bool m_ruleExecutionModeHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace FraudDetector
170} // namespace Aws
void SetExternalModelEndpoints(const Aws::Vector< Aws::String > &value)
UpdateDetectorVersionRequest & AddModelVersions(ModelVersion &&value)
UpdateDetectorVersionRequest & WithExternalModelEndpoints(Aws::Vector< Aws::String > &&value)
UpdateDetectorVersionRequest & WithDetectorVersionId(const char *value)
UpdateDetectorVersionRequest & AddExternalModelEndpoints(Aws::String &&value)
UpdateDetectorVersionRequest & WithRules(Aws::Vector< Rule > &&value)
UpdateDetectorVersionRequest & WithDetectorId(Aws::String &&value)
UpdateDetectorVersionRequest & WithDescription(const Aws::String &value)
UpdateDetectorVersionRequest & AddRules(const Rule &value)
UpdateDetectorVersionRequest & WithDetectorId(const char *value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
UpdateDetectorVersionRequest & WithRuleExecutionMode(const RuleExecutionMode &value)
UpdateDetectorVersionRequest & WithDetectorVersionId(const Aws::String &value)
UpdateDetectorVersionRequest & WithModelVersions(const Aws::Vector< ModelVersion > &value)
UpdateDetectorVersionRequest & WithDetectorVersionId(Aws::String &&value)
UpdateDetectorVersionRequest & AddExternalModelEndpoints(const Aws::String &value)
UpdateDetectorVersionRequest & WithRuleExecutionMode(RuleExecutionMode &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDetectorVersionRequest & AddExternalModelEndpoints(const char *value)
UpdateDetectorVersionRequest & WithRules(const Aws::Vector< Rule > &value)
void SetModelVersions(const Aws::Vector< ModelVersion > &value)
UpdateDetectorVersionRequest & WithExternalModelEndpoints(const Aws::Vector< Aws::String > &value)
UpdateDetectorVersionRequest & WithDescription(const char *value)
void SetExternalModelEndpoints(Aws::Vector< Aws::String > &&value)
UpdateDetectorVersionRequest & WithModelVersions(Aws::Vector< ModelVersion > &&value)
UpdateDetectorVersionRequest & AddModelVersions(const ModelVersion &value)
const Aws::Vector< Aws::String > & GetExternalModelEndpoints() const
UpdateDetectorVersionRequest & WithDetectorId(const Aws::String &value)
UpdateDetectorVersionRequest & WithDescription(Aws::String &&value)
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