/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { class GetDetectorVersionResult { public: AWS_FRAUDDETECTOR_API GetDetectorVersionResult(); AWS_FRAUDDETECTOR_API GetDetectorVersionResult(const Aws::AmazonWebServiceResult& result); AWS_FRAUDDETECTOR_API GetDetectorVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The detector ID.

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

The detector ID.

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

The detector ID.

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

The detector ID.

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

The detector ID.

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

The detector ID.

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

The detector ID.

*/ inline GetDetectorVersionResult& 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 void SetDetectorVersionId(const Aws::String& value) { m_detectorVersionId = value; } /** *

The detector version ID.

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

The detector version ID.

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

The detector version ID.

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

The detector version ID.

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

The detector version ID.

*/ inline GetDetectorVersionResult& WithDetectorVersionId(const char* value) { SetDetectorVersionId(value); return *this;} /** *

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The detector version description.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

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

The Amazon SageMaker model endpoints included in the detector version.

*/ inline GetDetectorVersionResult& AddExternalModelEndpoints(const char* value) { m_externalModelEndpoints.push_back(value); return *this; } /** *

The model versions included in the detector version.

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

The model versions included in the detector version.

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

The model versions included in the detector version.

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

The model versions included in the detector version.

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

The model versions included in the detector version.

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

The model versions included in the detector version.

*/ inline GetDetectorVersionResult& AddModelVersions(const ModelVersion& value) { m_modelVersions.push_back(value); return *this; } /** *

The model versions included in the detector version.

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

The rules included in the detector version.

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

The rules included in the detector version.

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

The rules included in the detector version.

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

The rules included in the detector version.

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

The rules included in the detector version.

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

The rules included in the detector version.

*/ inline GetDetectorVersionResult& AddRules(const Rule& value) { m_rules.push_back(value); return *this; } /** *

The rules included in the detector version.

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

The status of the detector version.

*/ inline const DetectorVersionStatus& GetStatus() const{ return m_status; } /** *

The status of the detector version.

*/ inline void SetStatus(const DetectorVersionStatus& value) { m_status = value; } /** *

The status of the detector version.

*/ inline void SetStatus(DetectorVersionStatus&& value) { m_status = std::move(value); } /** *

The status of the detector version.

*/ inline GetDetectorVersionResult& WithStatus(const DetectorVersionStatus& value) { SetStatus(value); return *this;} /** *

The status of the detector version.

*/ inline GetDetectorVersionResult& WithStatus(DetectorVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The timestamp when the detector version was last updated.

*/ inline const Aws::String& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The timestamp when the detector version was last updated.

*/ inline void SetLastUpdatedTime(const Aws::String& value) { m_lastUpdatedTime = value; } /** *

The timestamp when the detector version was last updated.

*/ inline void SetLastUpdatedTime(Aws::String&& value) { m_lastUpdatedTime = std::move(value); } /** *

The timestamp when the detector version was last updated.

*/ inline void SetLastUpdatedTime(const char* value) { m_lastUpdatedTime.assign(value); } /** *

The timestamp when the detector version was last updated.

*/ inline GetDetectorVersionResult& WithLastUpdatedTime(const Aws::String& value) { SetLastUpdatedTime(value); return *this;} /** *

The timestamp when the detector version was last updated.

*/ inline GetDetectorVersionResult& WithLastUpdatedTime(Aws::String&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The timestamp when the detector version was last updated.

*/ inline GetDetectorVersionResult& WithLastUpdatedTime(const char* value) { SetLastUpdatedTime(value); return *this;} /** *

The timestamp when the detector version was created.

*/ inline const Aws::String& GetCreatedTime() const{ return m_createdTime; } /** *

The timestamp when the detector version was created.

*/ inline void SetCreatedTime(const Aws::String& value) { m_createdTime = value; } /** *

The timestamp when the detector version was created.

*/ inline void SetCreatedTime(Aws::String&& value) { m_createdTime = std::move(value); } /** *

The timestamp when the detector version was created.

*/ inline void SetCreatedTime(const char* value) { m_createdTime.assign(value); } /** *

The timestamp when the detector version was created.

*/ inline GetDetectorVersionResult& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;} /** *

The timestamp when the detector version was created.

*/ inline GetDetectorVersionResult& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The timestamp when the detector version was created.

*/ inline GetDetectorVersionResult& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;} /** *

The execution mode of the rule in the dectector

* FIRST_MATCHED indicates that 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.

* ALL_MATCHED indicates that 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.

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

The execution mode of the rule in the dectector

* FIRST_MATCHED indicates that 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.

* ALL_MATCHED indicates that 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.

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

The execution mode of the rule in the dectector

* FIRST_MATCHED indicates that 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.

* ALL_MATCHED indicates that 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.

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

The execution mode of the rule in the dectector

* FIRST_MATCHED indicates that 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.

* ALL_MATCHED indicates that 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.

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

The execution mode of the rule in the dectector

* FIRST_MATCHED indicates that 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.

* ALL_MATCHED indicates that 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.

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

The detector version ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The detector version ARN.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The detector version ARN.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The detector version ARN.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The detector version ARN.

*/ inline GetDetectorVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The detector version ARN.

*/ inline GetDetectorVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The detector version ARN.

*/ inline GetDetectorVersionResult& WithArn(const char* value) { SetArn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetDetectorVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDetectorVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDetectorVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_detectorId; Aws::String m_detectorVersionId; Aws::String m_description; Aws::Vector m_externalModelEndpoints; Aws::Vector m_modelVersions; Aws::Vector m_rules; DetectorVersionStatus m_status; Aws::String m_lastUpdatedTime; Aws::String m_createdTime; RuleExecutionMode m_ruleExecutionMode; Aws::String m_arn; Aws::String m_requestId; }; } // namespace Model } // namespace FraudDetector } // namespace Aws