/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SageMaker {
namespace Model {

/**
 * <p>A time limit for how long the monitoring job is allowed to run before
 * stopping.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MonitoringStoppingCondition">AWS
 * API Reference</a></p>
 */
class MonitoringStoppingCondition {
 public:
  AWS_SAGEMAKER_API MonitoringStoppingCondition() = default;
  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;

  ///@{
  /**
   * <p>The maximum runtime allowed in seconds.</p>  <p>The
   * <code>MaxRuntimeInSeconds</code> 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.</p>
   */
  inline int GetMaxRuntimeInSeconds() const { return m_maxRuntimeInSeconds; }
  inline bool MaxRuntimeInSecondsHasBeenSet() const { return m_maxRuntimeInSecondsHasBeenSet; }
  inline void SetMaxRuntimeInSeconds(int value) {
    m_maxRuntimeInSecondsHasBeenSet = true;
    m_maxRuntimeInSeconds = value;
  }
  inline MonitoringStoppingCondition& WithMaxRuntimeInSeconds(int value) {
    SetMaxRuntimeInSeconds(value);
    return *this;
  }
  ///@}
 private:
  int m_maxRuntimeInSeconds{0};
  bool m_maxRuntimeInSecondsHasBeenSet = false;
};

}  // namespace Model
}  // namespace SageMaker
}  // namespace Aws
