AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DetectorIdT = Aws::String>
49 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
50 template<typename DetectorIdT = Aws::String>
51 CreateDetectorVersionRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 CreateDetectorVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetExternalModelEndpoints() const { return m_externalModelEndpoints; }
71 inline bool ExternalModelEndpointsHasBeenSet() const { return m_externalModelEndpointsHasBeenSet; }
72 template<typename ExternalModelEndpointsT = Aws::Vector<Aws::String>>
73 void SetExternalModelEndpoints(ExternalModelEndpointsT&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = std::forward<ExternalModelEndpointsT>(value); }
74 template<typename ExternalModelEndpointsT = Aws::Vector<Aws::String>>
75 CreateDetectorVersionRequest& WithExternalModelEndpoints(ExternalModelEndpointsT&& value) { SetExternalModelEndpoints(std::forward<ExternalModelEndpointsT>(value)); return *this;}
76 template<typename ExternalModelEndpointsT = Aws::String>
77 CreateDetectorVersionRequest& AddExternalModelEndpoints(ExternalModelEndpointsT&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.emplace_back(std::forward<ExternalModelEndpointsT>(value)); return *this; }
79
81
84 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
85 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
86 template<typename RulesT = Aws::Vector<Rule>>
87 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
88 template<typename RulesT = Aws::Vector<Rule>>
89 CreateDetectorVersionRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
90 template<typename RulesT = Rule>
91 CreateDetectorVersionRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
93
95
98 inline const Aws::Vector<ModelVersion>& GetModelVersions() const { return m_modelVersions; }
99 inline bool ModelVersionsHasBeenSet() const { return m_modelVersionsHasBeenSet; }
100 template<typename ModelVersionsT = Aws::Vector<ModelVersion>>
101 void SetModelVersions(ModelVersionsT&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = std::forward<ModelVersionsT>(value); }
102 template<typename ModelVersionsT = Aws::Vector<ModelVersion>>
103 CreateDetectorVersionRequest& WithModelVersions(ModelVersionsT&& value) { SetModelVersions(std::forward<ModelVersionsT>(value)); return *this;}
104 template<typename ModelVersionsT = ModelVersion>
105 CreateDetectorVersionRequest& AddModelVersions(ModelVersionsT&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.emplace_back(std::forward<ModelVersionsT>(value)); return *this; }
107
109
119 inline RuleExecutionMode GetRuleExecutionMode() const { return m_ruleExecutionMode; }
120 inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; }
121 inline void SetRuleExecutionMode(RuleExecutionMode value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; }
124
126
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Vector<Tag>>
134 CreateDetectorVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsT = Tag>
136 CreateDetectorVersionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
138 private:
139
140 Aws::String m_detectorId;
141 bool m_detectorIdHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_externalModelEndpoints;
147 bool m_externalModelEndpointsHasBeenSet = false;
148
149 Aws::Vector<Rule> m_rules;
150 bool m_rulesHasBeenSet = false;
151
152 Aws::Vector<ModelVersion> m_modelVersions;
153 bool m_modelVersionsHasBeenSet = false;
154
156 bool m_ruleExecutionModeHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace FraudDetector
164} // namespace Aws
CreateDetectorVersionRequest & AddModelVersions(ModelVersionsT &&value)
const Aws::Vector< Aws::String > & GetExternalModelEndpoints() const
CreateDetectorVersionRequest & WithRuleExecutionMode(RuleExecutionMode value)
CreateDetectorVersionRequest & AddExternalModelEndpoints(ExternalModelEndpointsT &&value)
const Aws::Vector< ModelVersion > & GetModelVersions() const
CreateDetectorVersionRequest & WithDetectorId(DetectorIdT &&value)
CreateDetectorVersionRequest & WithModelVersions(ModelVersionsT &&value)
CreateDetectorVersionRequest & WithDescription(DescriptionT &&value)
AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDetectorVersionRequest & WithRules(RulesT &&value)
AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override
CreateDetectorVersionRequest & AddRules(RulesT &&value)
CreateDetectorVersionRequest & WithExternalModelEndpoints(ExternalModelEndpointsT &&value)
AWS_FRAUDDETECTOR_API CreateDetectorVersionRequest()=default
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