/** * 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 IoT { namespace Model { /** *

The summary of an ML Detect behavior model.

See Also:

AWS * API Reference

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

The name of the security profile.

*/ inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; } /** *

The name of the security profile.

*/ inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; } /** *

The name of the security profile.

*/ inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; } /** *

The name of the security profile.

*/ inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); } /** *

The name of the security profile.

*/ inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); } /** *

The name of the security profile.

*/ inline BehaviorModelTrainingSummary& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;} /** *

The name of the security profile.

*/ inline BehaviorModelTrainingSummary& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;} /** *

The name of the security profile.

*/ inline BehaviorModelTrainingSummary& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} /** *

The name of the behavior.

*/ inline const Aws::String& GetBehaviorName() const{ return m_behaviorName; } /** *

The name of the behavior.

*/ inline bool BehaviorNameHasBeenSet() const { return m_behaviorNameHasBeenSet; } /** *

The name of the behavior.

*/ inline void SetBehaviorName(const Aws::String& value) { m_behaviorNameHasBeenSet = true; m_behaviorName = value; } /** *

The name of the behavior.

*/ inline void SetBehaviorName(Aws::String&& value) { m_behaviorNameHasBeenSet = true; m_behaviorName = std::move(value); } /** *

The name of the behavior.

*/ inline void SetBehaviorName(const char* value) { m_behaviorNameHasBeenSet = true; m_behaviorName.assign(value); } /** *

The name of the behavior.

*/ inline BehaviorModelTrainingSummary& WithBehaviorName(const Aws::String& value) { SetBehaviorName(value); return *this;} /** *

The name of the behavior.

*/ inline BehaviorModelTrainingSummary& WithBehaviorName(Aws::String&& value) { SetBehaviorName(std::move(value)); return *this;} /** *

The name of the behavior.

*/ inline BehaviorModelTrainingSummary& WithBehaviorName(const char* value) { SetBehaviorName(value); return *this;} /** *

The date a training model started collecting data.

*/ inline const Aws::Utils::DateTime& GetTrainingDataCollectionStartDate() const{ return m_trainingDataCollectionStartDate; } /** *

The date a training model started collecting data.

*/ inline bool TrainingDataCollectionStartDateHasBeenSet() const { return m_trainingDataCollectionStartDateHasBeenSet; } /** *

The date a training model started collecting data.

*/ inline void SetTrainingDataCollectionStartDate(const Aws::Utils::DateTime& value) { m_trainingDataCollectionStartDateHasBeenSet = true; m_trainingDataCollectionStartDate = value; } /** *

The date a training model started collecting data.

*/ inline void SetTrainingDataCollectionStartDate(Aws::Utils::DateTime&& value) { m_trainingDataCollectionStartDateHasBeenSet = true; m_trainingDataCollectionStartDate = std::move(value); } /** *

The date a training model started collecting data.

*/ inline BehaviorModelTrainingSummary& WithTrainingDataCollectionStartDate(const Aws::Utils::DateTime& value) { SetTrainingDataCollectionStartDate(value); return *this;} /** *

The date a training model started collecting data.

*/ inline BehaviorModelTrainingSummary& WithTrainingDataCollectionStartDate(Aws::Utils::DateTime&& value) { SetTrainingDataCollectionStartDate(std::move(value)); return *this;} /** *

The status of the behavior model.

*/ inline const ModelStatus& GetModelStatus() const{ return m_modelStatus; } /** *

The status of the behavior model.

*/ inline bool ModelStatusHasBeenSet() const { return m_modelStatusHasBeenSet; } /** *

The status of the behavior model.

*/ inline void SetModelStatus(const ModelStatus& value) { m_modelStatusHasBeenSet = true; m_modelStatus = value; } /** *

The status of the behavior model.

*/ inline void SetModelStatus(ModelStatus&& value) { m_modelStatusHasBeenSet = true; m_modelStatus = std::move(value); } /** *

The status of the behavior model.

*/ inline BehaviorModelTrainingSummary& WithModelStatus(const ModelStatus& value) { SetModelStatus(value); return *this;} /** *

The status of the behavior model.

*/ inline BehaviorModelTrainingSummary& WithModelStatus(ModelStatus&& value) { SetModelStatus(std::move(value)); return *this;} /** *

The percentage of datapoints collected.

*/ inline double GetDatapointsCollectionPercentage() const{ return m_datapointsCollectionPercentage; } /** *

The percentage of datapoints collected.

*/ inline bool DatapointsCollectionPercentageHasBeenSet() const { return m_datapointsCollectionPercentageHasBeenSet; } /** *

The percentage of datapoints collected.

*/ inline void SetDatapointsCollectionPercentage(double value) { m_datapointsCollectionPercentageHasBeenSet = true; m_datapointsCollectionPercentage = value; } /** *

The percentage of datapoints collected.

*/ inline BehaviorModelTrainingSummary& WithDatapointsCollectionPercentage(double value) { SetDatapointsCollectionPercentage(value); return *this;} /** *

The date the model was last refreshed.

*/ inline const Aws::Utils::DateTime& GetLastModelRefreshDate() const{ return m_lastModelRefreshDate; } /** *

The date the model was last refreshed.

*/ inline bool LastModelRefreshDateHasBeenSet() const { return m_lastModelRefreshDateHasBeenSet; } /** *

The date the model was last refreshed.

*/ inline void SetLastModelRefreshDate(const Aws::Utils::DateTime& value) { m_lastModelRefreshDateHasBeenSet = true; m_lastModelRefreshDate = value; } /** *

The date the model was last refreshed.

*/ inline void SetLastModelRefreshDate(Aws::Utils::DateTime&& value) { m_lastModelRefreshDateHasBeenSet = true; m_lastModelRefreshDate = std::move(value); } /** *

The date the model was last refreshed.

*/ inline BehaviorModelTrainingSummary& WithLastModelRefreshDate(const Aws::Utils::DateTime& value) { SetLastModelRefreshDate(value); return *this;} /** *

The date the model was last refreshed.

*/ inline BehaviorModelTrainingSummary& WithLastModelRefreshDate(Aws::Utils::DateTime&& value) { SetLastModelRefreshDate(std::move(value)); return *this;} private: Aws::String m_securityProfileName; bool m_securityProfileNameHasBeenSet = false; Aws::String m_behaviorName; bool m_behaviorNameHasBeenSet = false; Aws::Utils::DateTime m_trainingDataCollectionStartDate; bool m_trainingDataCollectionStartDateHasBeenSet = false; ModelStatus m_modelStatus; bool m_modelStatusHasBeenSet = false; double m_datapointsCollectionPercentage; bool m_datapointsCollectionPercentageHasBeenSet = false; Aws::Utils::DateTime m_lastModelRefreshDate; bool m_lastModelRefreshDateHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws