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

A time limit for how long the monitoring job is allowed to run before * stopping.

See Also:

AWS * API Reference

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

The maximum runtime allowed in seconds.

The * MaxRuntimeInSeconds cannot exceed the frequency of the job. For * data quality and model explainability, this can be up to 3600 seconds for an * hourly schedule. For model bias and model quality hourly schedules, this can be * up to 1800 seconds.

*/ inline int GetMaxRuntimeInSeconds() const{ return m_maxRuntimeInSeconds; } /** *

The maximum runtime allowed in seconds.

The * MaxRuntimeInSeconds cannot exceed the frequency of the job. For * data quality and model explainability, this can be up to 3600 seconds for an * hourly schedule. For model bias and model quality hourly schedules, this can be * up to 1800 seconds.

*/ inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; } /** *

The maximum runtime allowed in seconds.

The * MaxRuntimeInSeconds cannot exceed the frequency of the job. For * data quality and model explainability, this can be up to 3600 seconds for an * hourly schedule. For model bias and model quality hourly schedules, this can be * up to 1800 seconds.

*/ inline void SetMaxRuntimeInSeconds(int value) { m_maxRuntimeInSecondsHasBeenSet = true; m_maxRuntimeInSeconds = value; } /** *

The maximum runtime allowed in seconds.

The * MaxRuntimeInSeconds cannot exceed the frequency of the job. For * data quality and model explainability, this can be up to 3600 seconds for an * hourly schedule. For model bias and model quality hourly schedules, this can be * up to 1800 seconds.

*/ inline MonitoringStoppingCondition& WithMaxRuntimeInSeconds(int value) { SetMaxRuntimeInSeconds(value); return *this;} private: int m_maxRuntimeInSeconds; bool m_maxRuntimeInSecondsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws