/** * 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 namespace Aws { namespace FraudDetector { namespace Model { /** */ class UpdateDetectorVersionRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API UpdateDetectorVersionRequest(); // 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 "UpdateDetectorVersion"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The parent detector ID for the detector version you want to update.

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

The detector version ID.

*/ inline const Aws::String& GetDetectorVersionId() const{ return m_detectorVersionId; } /** *

The detector version ID.

*/ inline bool DetectorVersionIdHasBeenSet() const { return m_detectorVersionIdHasBeenSet; } /** *

The detector version ID.

*/ inline void SetDetectorVersionId(const Aws::String& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = value; } /** *

The detector version ID.

*/ inline void SetDetectorVersionId(Aws::String&& value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId = std::move(value); } /** *

The detector version ID.

*/ inline void SetDetectorVersionId(const char* value) { m_detectorVersionIdHasBeenSet = true; m_detectorVersionId.assign(value); } /** *

The detector version ID.

*/ inline UpdateDetectorVersionRequest& WithDetectorVersionId(const Aws::String& value) { SetDetectorVersionId(value); return *this;} /** *

The detector version ID.

*/ inline UpdateDetectorVersionRequest& WithDetectorVersionId(Aws::String&& value) { SetDetectorVersionId(std::move(value)); return *this;} /** *

The detector version ID.

*/ inline UpdateDetectorVersionRequest& WithDetectorVersionId(const char* value) { SetDetectorVersionId(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 UpdateDetectorVersionRequest& WithExternalModelEndpoints(const Aws::Vector& value) { SetExternalModelEndpoints(value); return *this;} /** *

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

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

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

*/ inline UpdateDetectorVersionRequest& 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 UpdateDetectorVersionRequest& 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 UpdateDetectorVersionRequest& 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 UpdateDetectorVersionRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The rules to include in the detector version.

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

The rules to include in the detector version.

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

The rules to include in the detector version.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

*/ inline UpdateDetectorVersionRequest& WithDescription(const char* value) { SetDescription(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 UpdateDetectorVersionRequest& WithModelVersions(const Aws::Vector& value) { SetModelVersions(value); return *this;} /** *

The model versions to include in the detector version.

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

The model versions to include in the detector version.

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

The model versions to include in the detector version.

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

The rule execution mode to add to the detector.

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. You can define and edit the rule mode at the * detector version level, when it is in draft status.

The default behavior * is FIRST_MATCHED.

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

The rule execution mode to add to the detector.

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. You can define and edit the rule mode at the * detector version level, when it is in draft status.

The default behavior * is FIRST_MATCHED.

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

The rule execution mode to add to the detector.

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. You can define and edit the rule mode at the * detector version level, when it is in draft status.

The default behavior * is FIRST_MATCHED.

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

The rule execution mode to add to the detector.

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. You can define and edit the rule mode at the * detector version level, when it is in draft status.

The default behavior * is FIRST_MATCHED.

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

The rule execution mode to add to the detector.

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. You can define and edit the rule mode at the * detector version level, when it is in draft status.

The default behavior * is FIRST_MATCHED.

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

The rule execution mode to add to the detector.

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. You can define and edit the rule mode at the * detector version level, when it is in draft status.

The default behavior * is FIRST_MATCHED.

*/ inline UpdateDetectorVersionRequest& WithRuleExecutionMode(RuleExecutionMode&& value) { SetRuleExecutionMode(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::String m_detectorVersionId; bool m_detectorVersionIdHasBeenSet = false; Aws::Vector m_externalModelEndpoints; bool m_externalModelEndpointsHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_modelVersions; bool m_modelVersionsHasBeenSet = false; RuleExecutionMode m_ruleExecutionMode; bool m_ruleExecutionModeHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws