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

Represents the drift check bias baselines that can be used when the model * monitor is set using the model package.

See Also:

AWS * API Reference

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

The bias config file for a model.

*/ inline const FileSource& GetConfigFile() const{ return m_configFile; } /** *

The bias config file for a model.

*/ inline bool ConfigFileHasBeenSet() const { return m_configFileHasBeenSet; } /** *

The bias config file for a model.

*/ inline void SetConfigFile(const FileSource& value) { m_configFileHasBeenSet = true; m_configFile = value; } /** *

The bias config file for a model.

*/ inline void SetConfigFile(FileSource&& value) { m_configFileHasBeenSet = true; m_configFile = std::move(value); } /** *

The bias config file for a model.

*/ inline DriftCheckBias& WithConfigFile(const FileSource& value) { SetConfigFile(value); return *this;} /** *

The bias config file for a model.

*/ inline DriftCheckBias& WithConfigFile(FileSource&& value) { SetConfigFile(std::move(value)); return *this;} /** *

The pre-training constraints.

*/ inline const MetricsSource& GetPreTrainingConstraints() const{ return m_preTrainingConstraints; } /** *

The pre-training constraints.

*/ inline bool PreTrainingConstraintsHasBeenSet() const { return m_preTrainingConstraintsHasBeenSet; } /** *

The pre-training constraints.

*/ inline void SetPreTrainingConstraints(const MetricsSource& value) { m_preTrainingConstraintsHasBeenSet = true; m_preTrainingConstraints = value; } /** *

The pre-training constraints.

*/ inline void SetPreTrainingConstraints(MetricsSource&& value) { m_preTrainingConstraintsHasBeenSet = true; m_preTrainingConstraints = std::move(value); } /** *

The pre-training constraints.

*/ inline DriftCheckBias& WithPreTrainingConstraints(const MetricsSource& value) { SetPreTrainingConstraints(value); return *this;} /** *

The pre-training constraints.

*/ inline DriftCheckBias& WithPreTrainingConstraints(MetricsSource&& value) { SetPreTrainingConstraints(std::move(value)); return *this;} /** *

The post-training constraints.

*/ inline const MetricsSource& GetPostTrainingConstraints() const{ return m_postTrainingConstraints; } /** *

The post-training constraints.

*/ inline bool PostTrainingConstraintsHasBeenSet() const { return m_postTrainingConstraintsHasBeenSet; } /** *

The post-training constraints.

*/ inline void SetPostTrainingConstraints(const MetricsSource& value) { m_postTrainingConstraintsHasBeenSet = true; m_postTrainingConstraints = value; } /** *

The post-training constraints.

*/ inline void SetPostTrainingConstraints(MetricsSource&& value) { m_postTrainingConstraintsHasBeenSet = true; m_postTrainingConstraints = std::move(value); } /** *

The post-training constraints.

*/ inline DriftCheckBias& WithPostTrainingConstraints(const MetricsSource& value) { SetPostTrainingConstraints(value); return *this;} /** *

The post-training constraints.

*/ inline DriftCheckBias& WithPostTrainingConstraints(MetricsSource&& value) { SetPostTrainingConstraints(std::move(value)); return *this;} private: FileSource m_configFile; bool m_configFileHasBeenSet = false; MetricsSource m_preTrainingConstraints; bool m_preTrainingConstraintsHasBeenSet = false; MetricsSource m_postTrainingConstraints; bool m_postTrainingConstraintsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws