/** * 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 { /** *

Specifies a time limit for how long the processing job is allowed to * run.

See Also:

AWS * API Reference

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

Specifies the maximum runtime in seconds.

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

Specifies the maximum runtime in seconds.

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

Specifies the maximum runtime in seconds.

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

Specifies the maximum runtime in seconds.

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