/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class CreateDetectorVersionRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API CreateDetectorVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDetectorVersion"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the detector under which you want to create a new version.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The ID of the detector under which you want to create a new version.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The ID of the detector under which you want to create a new version.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The ID of the detector under which you want to create a new version.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The ID of the detector under which you want to create a new version.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The ID of the detector under which you want to create a new version.

*/ inline CreateDetectorVersionRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The ID of the detector under which you want to create a new version.

*/ inline CreateDetectorVersionRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The ID of the detector under which you want to create a new version.

*/ inline CreateDetectorVersionRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

The description of the detector version.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the detector version.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the detector version.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the detector version.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the detector version.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the detector version.

*/ inline CreateDetectorVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the detector version.

*/ inline CreateDetectorVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the detector version.

*/ inline CreateDetectorVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline const Aws::Vector& GetExternalModelEndpoints() const{ return m_externalModelEndpoints; } /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline bool ExternalModelEndpointsHasBeenSet() const { return m_externalModelEndpointsHasBeenSet; } /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline void SetExternalModelEndpoints(const Aws::Vector& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = value; } /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline void SetExternalModelEndpoints(Aws::Vector&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints = std::move(value); } /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline CreateDetectorVersionRequest& WithExternalModelEndpoints(const Aws::Vector& value) { SetExternalModelEndpoints(value); return *this;} /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline CreateDetectorVersionRequest& WithExternalModelEndpoints(Aws::Vector&& value) { SetExternalModelEndpoints(std::move(value)); return *this;} /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddExternalModelEndpoints(const Aws::String& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; } /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddExternalModelEndpoints(Aws::String&& value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(std::move(value)); return *this; } /** *

The Amazon Sagemaker model endpoints to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddExternalModelEndpoints(const char* value) { m_externalModelEndpointsHasBeenSet = true; m_externalModelEndpoints.push_back(value); return *this; } /** *

The rules to include in the detector version.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The rules to include in the detector version.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The rules to include in the detector version.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The rules to include in the detector version.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The rules to include in the detector version.

*/ inline CreateDetectorVersionRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The rules to include in the detector version.

*/ inline CreateDetectorVersionRequest& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The rules to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The rules to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } /** *

The model versions to include in the detector version.

*/ inline const Aws::Vector& GetModelVersions() const{ return m_modelVersions; } /** *

The model versions to include in the detector version.

*/ inline bool ModelVersionsHasBeenSet() const { return m_modelVersionsHasBeenSet; } /** *

The model versions to include in the detector version.

*/ inline void SetModelVersions(const Aws::Vector& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = value; } /** *

The model versions to include in the detector version.

*/ inline void SetModelVersions(Aws::Vector&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions = std::move(value); } /** *

The model versions to include in the detector version.

*/ inline CreateDetectorVersionRequest& WithModelVersions(const Aws::Vector& value) { SetModelVersions(value); return *this;} /** *

The model versions to include in the detector version.

*/ inline CreateDetectorVersionRequest& WithModelVersions(Aws::Vector&& value) { SetModelVersions(std::move(value)); return *this;} /** *

The model versions to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddModelVersions(const ModelVersion& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(value); return *this; } /** *

The model versions to include in the detector version.

*/ inline CreateDetectorVersionRequest& AddModelVersions(ModelVersion&& value) { m_modelVersionsHasBeenSet = true; m_modelVersions.push_back(std::move(value)); return *this; } /** *

The rule execution mode for the rules included in the detector version.

*

You can define and edit the rule mode at the detector version level, when it * is in draft status.

If you specify FIRST_MATCHED, Amazon * Fraud Detector evaluates rules sequentially, first to last, stopping at the * first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule.

If you specifiy ALL_MATCHED, Amazon Fraud * Detector evaluates all rules and returns the outcomes for all matched rules. *

The default behavior is FIRST_MATCHED.

*/ inline const RuleExecutionMode& GetRuleExecutionMode() const{ return m_ruleExecutionMode; } /** *

The rule execution mode for the rules included in the detector version.

*

You can define and edit the rule mode at the detector version level, when it * is in draft status.

If you specify FIRST_MATCHED, Amazon * Fraud Detector evaluates rules sequentially, first to last, stopping at the * first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule.

If you specifiy ALL_MATCHED, Amazon Fraud * Detector evaluates all rules and returns the outcomes for all matched rules. *

The default behavior is FIRST_MATCHED.

*/ inline bool RuleExecutionModeHasBeenSet() const { return m_ruleExecutionModeHasBeenSet; } /** *

The rule execution mode for the rules included in the detector version.

*

You can define and edit the rule mode at the detector version level, when it * is in draft status.

If you specify FIRST_MATCHED, Amazon * Fraud Detector evaluates rules sequentially, first to last, stopping at the * first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule.

If you specifiy ALL_MATCHED, Amazon Fraud * Detector evaluates all rules and returns the outcomes for all matched rules. *

The default behavior is FIRST_MATCHED.

*/ inline void SetRuleExecutionMode(const RuleExecutionMode& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = value; } /** *

The rule execution mode for the rules included in the detector version.

*

You can define and edit the rule mode at the detector version level, when it * is in draft status.

If you specify FIRST_MATCHED, Amazon * Fraud Detector evaluates rules sequentially, first to last, stopping at the * first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule.

If you specifiy ALL_MATCHED, Amazon Fraud * Detector evaluates all rules and returns the outcomes for all matched rules. *

The default behavior is FIRST_MATCHED.

*/ inline void SetRuleExecutionMode(RuleExecutionMode&& value) { m_ruleExecutionModeHasBeenSet = true; m_ruleExecutionMode = std::move(value); } /** *

The rule execution mode for the rules included in the detector version.

*

You can define and edit the rule mode at the detector version level, when it * is in draft status.

If you specify FIRST_MATCHED, Amazon * Fraud Detector evaluates rules sequentially, first to last, stopping at the * first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule.

If you specifiy ALL_MATCHED, Amazon Fraud * Detector evaluates all rules and returns the outcomes for all matched rules. *

The default behavior is FIRST_MATCHED.

*/ inline CreateDetectorVersionRequest& WithRuleExecutionMode(const RuleExecutionMode& value) { SetRuleExecutionMode(value); return *this;} /** *

The rule execution mode for the rules included in the detector version.

*

You can define and edit the rule mode at the detector version level, when it * is in draft status.

If you specify FIRST_MATCHED, Amazon * Fraud Detector evaluates rules sequentially, first to last, stopping at the * first matched rule. Amazon Fraud dectector then provides the outcomes for that * single rule.

If you specifiy ALL_MATCHED, Amazon Fraud * Detector evaluates all rules and returns the outcomes for all matched rules. *

The default behavior is FIRST_MATCHED.

*/ inline CreateDetectorVersionRequest& WithRuleExecutionMode(RuleExecutionMode&& value) { SetRuleExecutionMode(std::move(value)); return *this;} /** *

A collection of key and value pairs.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A collection of key and value pairs.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A collection of key and value pairs.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A collection of key and value pairs.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A collection of key and value pairs.

*/ inline CreateDetectorVersionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A collection of key and value pairs.

*/ inline CreateDetectorVersionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A collection of key and value pairs.

*/ inline CreateDetectorVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A collection of key and value pairs.

*/ inline CreateDetectorVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_externalModelEndpoints; bool m_externalModelEndpointsHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; Aws::Vector m_modelVersions; bool m_modelVersionsHasBeenSet = false; RuleExecutionMode m_ruleExecutionMode; bool m_ruleExecutionModeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws