AWS SDK for C++  1.9.20
AWS SDK for C++
CreateDetectorVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace FraudDetector
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
46 
50  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
51 
55  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
56 
60  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
61 
65  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
66 
70  inline CreateDetectorVersionRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
71 
75  inline CreateDetectorVersionRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
76 
80  inline CreateDetectorVersionRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
81 
82 
86  inline const Aws::String& GetDescription() const{ return m_description; }
87 
91  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 
96  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 
101  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 
106  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 
111  inline CreateDetectorVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 
116  inline CreateDetectorVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
117 
121  inline CreateDetectorVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
122 
123 
127  inline const Aws::Vector<Aws::String>& GetExternalModelEndpoints() const{ return m_externalModelEndpoints; }
128 
132  inline bool ExternalModelEndpointsHasBeenSet() const { return m_externalModelEndpointsHasBeenSet; }
133 
137  inline void SetExternalModelEndpoints(const Aws::Vector<Aws::String>& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = value; }
138 
142  inline void SetExternalModelEndpoints(Aws::Vector<Aws::String>&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = std::move(value); }
143 
147  inline CreateDetectorVersionRequest& WithExternalModelEndpoints(const Aws::Vector<Aws::String>& value) { SetExternalModelEndpoints(value); return *this;}
148 
152  inline CreateDetectorVersionRequest& WithExternalModelEndpoints(Aws::Vector<Aws::String>&& value) { SetExternalModelEndpoints(std::move(value)); return *this;}
153 
157  inline CreateDetectorVersionRequest& AddExternalModelEndpoints(const Aws::String& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; }
158 
162  inline CreateDetectorVersionRequest& AddExternalModelEndpoints(Aws::String&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(std::move(value)); return *this; }
163 
167  inline CreateDetectorVersionRequest& AddExternalModelEndpoints(const char* value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; }
168 
169 
173  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
174 
178  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
179 
183  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
184 
188  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
189 
193  inline CreateDetectorVersionRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
194 
198  inline CreateDetectorVersionRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
199 
203  inline CreateDetectorVersionRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
204 
208  inline CreateDetectorVersionRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
209 
210 
214  inline const Aws::Vector<ModelVersion>& GetModelVersions() const{ return m_modelVersions; }
215 
219  inline bool ModelVersionsHasBeenSet() const { return m_modelVersionsHasBeenSet; }
220 
224  inline void SetModelVersions(const Aws::Vector<ModelVersion>& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = value; }
225 
229  inline void SetModelVersions(Aws::Vector<ModelVersion>&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = std::move(value); }
230 
234  inline CreateDetectorVersionRequest& WithModelVersions(const Aws::Vector<ModelVersion>& value) { SetModelVersions(value); return *this;}
235 
239  inline CreateDetectorVersionRequest& WithModelVersions(Aws::Vector<ModelVersion>&& value) { SetModelVersions(std::move(value)); return *this;}
240 
244  inline CreateDetectorVersionRequest& AddModelVersions(const ModelVersion& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(value); return *this; }
245 
249  inline CreateDetectorVersionRequest& AddModelVersions(ModelVersion&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(std::move(value)); return *this; }
250 
251 
262  inline const RuleExecutionMode& GetRuleExecutionMode() const{ return m_ruleExecutionMode; }
263 
274  inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; }
275 
286  inline void SetRuleExecutionMode(const RuleExecutionMode& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; }
287 
298  inline void SetRuleExecutionMode(RuleExecutionMode&& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = std::move(value); }
299 
310  inline CreateDetectorVersionRequest& WithRuleExecutionMode(const RuleExecutionMode& value) { SetRuleExecutionMode(value); return *this;}
311 
322  inline CreateDetectorVersionRequest& WithRuleExecutionMode(RuleExecutionMode&& value) { SetRuleExecutionMode(std::move(value)); return *this;}
323 
324 
328  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
329 
333  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
334 
338  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
339 
343  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
344 
348  inline CreateDetectorVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
349 
353  inline CreateDetectorVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
354 
358  inline CreateDetectorVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
359 
363  inline CreateDetectorVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
364 
365  private:
366 
367  Aws::String m_detectorId;
368  bool m_detectorIdHasBeenSet;
369 
370  Aws::String m_description;
371  bool m_descriptionHasBeenSet;
372 
373  Aws::Vector<Aws::String> m_externalModelEndpoints;
374  bool m_externalModelEndpointsHasBeenSet;
375 
376  Aws::Vector<Rule> m_rules;
377  bool m_rulesHasBeenSet;
378 
379  Aws::Vector<ModelVersion> m_modelVersions;
380  bool m_modelVersionsHasBeenSet;
381 
382  RuleExecutionMode m_ruleExecutionMode;
383  bool m_ruleExecutionModeHasBeenSet;
384 
385  Aws::Vector<Tag> m_tags;
386  bool m_tagsHasBeenSet;
387  };
388 
389 } // namespace Model
390 } // namespace FraudDetector
391 } // namespace Aws
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateDetectorVersionRequest.h:86
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateDetectorVersionRequest.h:101
Aws::FraudDetector::Model::RuleExecutionMode
RuleExecutionMode
Definition: RuleExecutionMode.h:17
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithRules
CreateDetectorVersionRequest & WithRules(Aws::Vector< Rule > &&value)
Definition: CreateDetectorVersionRequest.h:198
FraudDetectorRequest.h
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateDetectorVersionRequest.h:55
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithModelVersions
CreateDetectorVersionRequest & WithModelVersions(const Aws::Vector< ModelVersion > &value)
Definition: CreateDetectorVersionRequest.h:234
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddExternalModelEndpoints
CreateDetectorVersionRequest & AddExternalModelEndpoints(const char *value)
Definition: CreateDetectorVersionRequest.h:167
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::CreateDetectorVersionRequest::ExternalModelEndpointsHasBeenSet
bool ExternalModelEndpointsHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:132
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SerializePayload
Aws::String SerializePayload() const override
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithDescription
CreateDetectorVersionRequest & WithDescription(const Aws::String &value)
Definition: CreateDetectorVersionRequest.h:111
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetRuleExecutionMode
void SetRuleExecutionMode(RuleExecutionMode &&value)
Definition: CreateDetectorVersionRequest.h:298
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetExternalModelEndpoints
const Aws::Vector< Aws::String > & GetExternalModelEndpoints() const
Definition: CreateDetectorVersionRequest.h:127
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDetectorVersionRequest.h:338
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithModelVersions
CreateDetectorVersionRequest & WithModelVersions(Aws::Vector< ModelVersion > &&value)
Definition: CreateDetectorVersionRequest.h:239
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDetectorVersionRequest.h:343
ModelVersion.h
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithExternalModelEndpoints
CreateDetectorVersionRequest & WithExternalModelEndpoints(Aws::Vector< Aws::String > &&value)
Definition: CreateDetectorVersionRequest.h:152
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddModelVersions
CreateDetectorVersionRequest & AddModelVersions(ModelVersion &&value)
Definition: CreateDetectorVersionRequest.h:249
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddModelVersions
CreateDetectorVersionRequest & AddModelVersions(const ModelVersion &value)
Definition: CreateDetectorVersionRequest.h:244
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDetectorVersionRequest.h:328
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithRules
CreateDetectorVersionRequest & WithRules(const Aws::Vector< Rule > &value)
Definition: CreateDetectorVersionRequest.h:193
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDetectorVersionRequest.h:35
Aws::FraudDetector::Model::CreateDetectorVersionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::CreateDetectorVersionRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:178
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetRuleExecutionMode
const RuleExecutionMode & GetRuleExecutionMode() const
Definition: CreateDetectorVersionRequest.h:262
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddRules
CreateDetectorVersionRequest & AddRules(Rule &&value)
Definition: CreateDetectorVersionRequest.h:208
Aws::FraudDetector::Model::CreateDetectorVersionRequest::ModelVersionsHasBeenSet
bool ModelVersionsHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:219
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetModelVersions
void SetModelVersions(Aws::Vector< ModelVersion > &&value)
Definition: CreateDetectorVersionRequest.h:229
AWSVector.h
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithDescription
CreateDetectorVersionRequest & WithDescription(Aws::String &&value)
Definition: CreateDetectorVersionRequest.h:116
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithExternalModelEndpoints
CreateDetectorVersionRequest & WithExternalModelEndpoints(const Aws::Vector< Aws::String > &value)
Definition: CreateDetectorVersionRequest.h:147
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddExternalModelEndpoints
CreateDetectorVersionRequest & AddExternalModelEndpoints(const Aws::String &value)
Definition: CreateDetectorVersionRequest.h:157
Aws::FraudDetector::Model::CreateDetectorVersionRequest::RuleExecutionModeHasBeenSet
bool RuleExecutionModeHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:274
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateDetectorVersionRequest.h:60
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithDescription
CreateDetectorVersionRequest & WithDescription(const char *value)
Definition: CreateDetectorVersionRequest.h:121
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetExternalModelEndpoints
void SetExternalModelEndpoints(Aws::Vector< Aws::String > &&value)
Definition: CreateDetectorVersionRequest.h:142
RuleExecutionMode.h
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: CreateDetectorVersionRequest.h:173
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithDetectorId
CreateDetectorVersionRequest & WithDetectorId(Aws::String &&value)
Definition: CreateDetectorVersionRequest.h:75
Aws::FraudDetector::Model::CreateDetectorVersionRequest::CreateDetectorVersionRequest
CreateDetectorVersionRequest()
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithRuleExecutionMode
CreateDetectorVersionRequest & WithRuleExecutionMode(RuleExecutionMode &&value)
Definition: CreateDetectorVersionRequest.h:322
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddRules
CreateDetectorVersionRequest & AddRules(const Rule &value)
Definition: CreateDetectorVersionRequest.h:203
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithDetectorId
CreateDetectorVersionRequest & WithDetectorId(const Aws::String &value)
Definition: CreateDetectorVersionRequest.h:70
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetRules
void SetRules(Aws::Vector< Rule > &&value)
Definition: CreateDetectorVersionRequest.h:188
AWSString.h
Aws::FraudDetector::Model::CreateDetectorVersionRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:50
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateDetectorVersionRequest.h:96
Aws::FraudDetector::Model::Rule
Definition: Rule.h:32
Rule.h
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateDetectorVersionRequest.h:45
Aws::FraudDetector::Model::CreateDetectorVersionRequest
Definition: CreateDetectorVersionRequest.h:27
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithTags
CreateDetectorVersionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDetectorVersionRequest.h:353
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddTags
CreateDetectorVersionRequest & AddTags(const Tag &value)
Definition: CreateDetectorVersionRequest.h:358
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithTags
CreateDetectorVersionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDetectorVersionRequest.h:348
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetModelVersions
void SetModelVersions(const Aws::Vector< ModelVersion > &value)
Definition: CreateDetectorVersionRequest.h:224
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::ModelVersion
Definition: ModelVersion.h:33
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetModelVersions
const Aws::Vector< ModelVersion > & GetModelVersions() const
Definition: CreateDetectorVersionRequest.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetExternalModelEndpoints
void SetExternalModelEndpoints(const Aws::Vector< Aws::String > &value)
Definition: CreateDetectorVersionRequest.h:137
Aws::FraudDetector::Model::CreateDetectorVersionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDetectorVersionRequest.h:333
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateDetectorVersionRequest.h:65
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddExternalModelEndpoints
CreateDetectorVersionRequest & AddExternalModelEndpoints(Aws::String &&value)
Definition: CreateDetectorVersionRequest.h:162
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetRuleExecutionMode
void SetRuleExecutionMode(const RuleExecutionMode &value)
Definition: CreateDetectorVersionRequest.h:286
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: CreateDetectorVersionRequest.h:183
Aws::FraudDetector::Model::CreateDetectorVersionRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateDetectorVersionRequest.h:106
Aws::FraudDetector::Model::CreateDetectorVersionRequest::AddTags
CreateDetectorVersionRequest & AddTags(Tag &&value)
Definition: CreateDetectorVersionRequest.h:363
Aws::FraudDetector::Model::CreateDetectorVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithRuleExecutionMode
CreateDetectorVersionRequest & WithRuleExecutionMode(const RuleExecutionMode &value)
Definition: CreateDetectorVersionRequest.h:310
Aws::FraudDetector::Model::CreateDetectorVersionRequest::WithDetectorId
CreateDetectorVersionRequest & WithDetectorId(const char *value)
Definition: CreateDetectorVersionRequest.h:80