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

An execution property of a job.

See Also:

AWS * API Reference

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

The maximum number of concurrent runs allowed for the job. The default is 1. * An error is returned when this threshold is reached. The maximum value you can * specify is controlled by a service limit.

*/ inline int GetMaxConcurrentRuns() const{ return m_maxConcurrentRuns; } /** *

The maximum number of concurrent runs allowed for the job. The default is 1. * An error is returned when this threshold is reached. The maximum value you can * specify is controlled by a service limit.

*/ inline bool MaxConcurrentRunsHasBeenSet() const { return m_maxConcurrentRunsHasBeenSet; } /** *

The maximum number of concurrent runs allowed for the job. The default is 1. * An error is returned when this threshold is reached. The maximum value you can * specify is controlled by a service limit.

*/ inline void SetMaxConcurrentRuns(int value) { m_maxConcurrentRunsHasBeenSet = true; m_maxConcurrentRuns = value; } /** *

The maximum number of concurrent runs allowed for the job. The default is 1. * An error is returned when this threshold is reached. The maximum value you can * specify is controlled by a service limit.

*/ inline ExecutionProperty& WithMaxConcurrentRuns(int value) { SetMaxConcurrentRuns(value); return *this;} private: int m_maxConcurrentRuns; bool m_maxConcurrentRunsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws