/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { /** *

The model version evaluated for generating prediction.

See * Also:

AWS * API Reference

*/ class EvaluatedModelVersion { public: AWS_FRAUDDETECTOR_API EvaluatedModelVersion(); AWS_FRAUDDETECTOR_API EvaluatedModelVersion(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API EvaluatedModelVersion& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The model ID.

*/ inline const Aws::String& GetModelId() const{ return m_modelId; } /** *

The model ID.

*/ inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } /** *

The model ID.

*/ inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } /** *

The model ID.

*/ inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } /** *

The model ID.

*/ inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } /** *

The model ID.

*/ inline EvaluatedModelVersion& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} /** *

The model ID.

*/ inline EvaluatedModelVersion& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} /** *

The model ID.

*/ inline EvaluatedModelVersion& WithModelId(const char* value) { SetModelId(value); return *this;} /** *

The model version.

*/ inline const Aws::String& GetModelVersion() const{ return m_modelVersion; } /** *

The model version.

*/ inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; } /** *

The model version.

*/ inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; } /** *

The model version.

*/ inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); } /** *

The model version.

*/ inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); } /** *

The model version.

*/ inline EvaluatedModelVersion& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;} /** *

The model version.

*/ inline EvaluatedModelVersion& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;} /** *

The model version.

*/ inline EvaluatedModelVersion& WithModelVersion(const char* value) { SetModelVersion(value); return *this;} /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline const Aws::String& GetModelType() const{ return m_modelType; } /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; } /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline void SetModelType(const Aws::String& value) { m_modelTypeHasBeenSet = true; m_modelType = value; } /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline void SetModelType(Aws::String&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); } /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline void SetModelType(const char* value) { m_modelTypeHasBeenSet = true; m_modelType.assign(value); } /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline EvaluatedModelVersion& WithModelType(const Aws::String& value) { SetModelType(value); return *this;} /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline EvaluatedModelVersion& WithModelType(Aws::String&& value) { SetModelType(std::move(value)); return *this;} /** *

The model type.

Valid values: ONLINE_FRAUD_INSIGHTS | * TRANSACTION_FRAUD_INSIGHTS

*/ inline EvaluatedModelVersion& WithModelType(const char* value) { SetModelType(value); return *this;} /** *

Evaluations generated for the model version.

*/ inline const Aws::Vector& GetEvaluations() const{ return m_evaluations; } /** *

Evaluations generated for the model version.

*/ inline bool EvaluationsHasBeenSet() const { return m_evaluationsHasBeenSet; } /** *

Evaluations generated for the model version.

*/ inline void SetEvaluations(const Aws::Vector& value) { m_evaluationsHasBeenSet = true; m_evaluations = value; } /** *

Evaluations generated for the model version.

*/ inline void SetEvaluations(Aws::Vector&& value) { m_evaluationsHasBeenSet = true; m_evaluations = std::move(value); } /** *

Evaluations generated for the model version.

*/ inline EvaluatedModelVersion& WithEvaluations(const Aws::Vector& value) { SetEvaluations(value); return *this;} /** *

Evaluations generated for the model version.

*/ inline EvaluatedModelVersion& WithEvaluations(Aws::Vector&& value) { SetEvaluations(std::move(value)); return *this;} /** *

Evaluations generated for the model version.

*/ inline EvaluatedModelVersion& AddEvaluations(const ModelVersionEvaluation& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(value); return *this; } /** *

Evaluations generated for the model version.

*/ inline EvaluatedModelVersion& AddEvaluations(ModelVersionEvaluation&& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(std::move(value)); return *this; } private: Aws::String m_modelId; bool m_modelIdHasBeenSet = false; Aws::String m_modelVersion; bool m_modelVersionHasBeenSet = false; Aws::String m_modelType; bool m_modelTypeHasBeenSet = false; Aws::Vector m_evaluations; bool m_evaluationsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws