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

Specifies limits for how long an Amazon Braket job can run.

See * Also:

AWS * API Reference

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

The maximum length of time, in seconds, that an Amazon Braket job can * run.

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

The maximum length of time, in seconds, that an Amazon Braket job can * run.

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

The maximum length of time, in seconds, that an Amazon Braket job can * run.

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

The maximum length of time, in seconds, that an Amazon Braket job can * run.

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