AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDetectorVersionRequest.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 <aws/frauddetector/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace FraudDetector
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_FRAUDDETECTOR_API CreateDetectorVersionRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDetectorVersion"; }
36
37 AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override;
38
39 AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
47 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
49 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
50 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
51 inline CreateDetectorVersionRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
52 inline CreateDetectorVersionRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
53 inline CreateDetectorVersionRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateDetectorVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline CreateDetectorVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateDetectorVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetExternalModelEndpoints() const{ return m_externalModelEndpoints; }
75 inline bool ExternalModelEndpointsHasBeenSet() const { return m_externalModelEndpointsHasBeenSet; }
76 inline void SetExternalModelEndpoints(const Aws::Vector<Aws::String>& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = value; }
77 inline void SetExternalModelEndpoints(Aws::Vector<Aws::String>&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = std::move(value); }
80 inline CreateDetectorVersionRequest& AddExternalModelEndpoints(const Aws::String& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; }
81 inline CreateDetectorVersionRequest& AddExternalModelEndpoints(Aws::String&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(std::move(value)); return *this; }
82 inline CreateDetectorVersionRequest& AddExternalModelEndpoints(const char* value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; }
84
86
89 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
90 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
91 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
92 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
93 inline CreateDetectorVersionRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
94 inline CreateDetectorVersionRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
95 inline CreateDetectorVersionRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
96 inline CreateDetectorVersionRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
98
100
103 inline const Aws::Vector<ModelVersion>& GetModelVersions() const{ return m_modelVersions; }
104 inline bool ModelVersionsHasBeenSet() const { return m_modelVersionsHasBeenSet; }
105 inline void SetModelVersions(const Aws::Vector<ModelVersion>& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = value; }
106 inline void SetModelVersions(Aws::Vector<ModelVersion>&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = std::move(value); }
109 inline CreateDetectorVersionRequest& AddModelVersions(const ModelVersion& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(value); return *this; }
110 inline CreateDetectorVersionRequest& AddModelVersions(ModelVersion&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(std::move(value)); return *this; }
112
114
124 inline const RuleExecutionMode& GetRuleExecutionMode() const{ return m_ruleExecutionMode; }
125 inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; }
126 inline void SetRuleExecutionMode(const RuleExecutionMode& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; }
127 inline void SetRuleExecutionMode(RuleExecutionMode&& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = std::move(value); }
131
133
136 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 inline CreateDetectorVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
141 inline CreateDetectorVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
142 inline CreateDetectorVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
143 inline CreateDetectorVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
145 private:
146
147 Aws::String m_detectorId;
148 bool m_detectorIdHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::Vector<Aws::String> m_externalModelEndpoints;
154 bool m_externalModelEndpointsHasBeenSet = false;
155
156 Aws::Vector<Rule> m_rules;
157 bool m_rulesHasBeenSet = false;
158
159 Aws::Vector<ModelVersion> m_modelVersions;
160 bool m_modelVersionsHasBeenSet = false;
161
162 RuleExecutionMode m_ruleExecutionMode;
163 bool m_ruleExecutionModeHasBeenSet = false;
164
165 Aws::Vector<Tag> m_tags;
166 bool m_tagsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace FraudDetector
171} // namespace Aws
CreateDetectorVersionRequest & WithDetectorId(const Aws::String &value)
CreateDetectorVersionRequest & WithRules(Aws::Vector< Rule > &&value)
CreateDetectorVersionRequest & WithModelVersions(Aws::Vector< ModelVersion > &&value)
CreateDetectorVersionRequest & WithRuleExecutionMode(RuleExecutionMode &&value)
CreateDetectorVersionRequest & AddExternalModelEndpoints(const Aws::String &value)
CreateDetectorVersionRequest & WithModelVersions(const Aws::Vector< ModelVersion > &value)
CreateDetectorVersionRequest & AddModelVersions(ModelVersion &&value)
CreateDetectorVersionRequest & AddExternalModelEndpoints(const char *value)
CreateDetectorVersionRequest & WithDetectorId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetExternalModelEndpoints() const
CreateDetectorVersionRequest & AddExternalModelEndpoints(Aws::String &&value)
CreateDetectorVersionRequest & AddModelVersions(const ModelVersion &value)
CreateDetectorVersionRequest & WithDescription(const Aws::String &value)
void SetModelVersions(const Aws::Vector< ModelVersion > &value)
CreateDetectorVersionRequest & WithRules(const Aws::Vector< Rule > &value)
CreateDetectorVersionRequest & WithExternalModelEndpoints(Aws::Vector< Aws::String > &&value)
CreateDetectorVersionRequest & WithDescription(const char *value)
CreateDetectorVersionRequest & WithTags(Aws::Vector< Tag > &&value)
void SetExternalModelEndpoints(const Aws::Vector< Aws::String > &value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDetectorVersionRequest & WithDescription(Aws::String &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
CreateDetectorVersionRequest & WithDetectorId(const char *value)
void SetExternalModelEndpoints(Aws::Vector< Aws::String > &&value)
CreateDetectorVersionRequest & WithRuleExecutionMode(const RuleExecutionMode &value)
CreateDetectorVersionRequest & AddTags(const Tag &value)
CreateDetectorVersionRequest & AddRules(const Rule &value)
CreateDetectorVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDetectorVersionRequest & WithExternalModelEndpoints(const Aws::Vector< 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