/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class Concurrency { public: AWS_LAMBDA_API Concurrency(); AWS_LAMBDA_API Concurrency(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API Concurrency& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of concurrent executions that are reserved for this function. For * more information, see Managing * Lambda reserved concurrency.

*/ inline int GetReservedConcurrentExecutions() const{ return m_reservedConcurrentExecutions; } /** *

The number of concurrent executions that are reserved for this function. For * more information, see Managing * Lambda reserved concurrency.

*/ inline bool ReservedConcurrentExecutionsHasBeenSet() const { return m_reservedConcurrentExecutionsHasBeenSet; } /** *

The number of concurrent executions that are reserved for this function. For * more information, see Managing * Lambda reserved concurrency.

*/ inline void SetReservedConcurrentExecutions(int value) { m_reservedConcurrentExecutionsHasBeenSet = true; m_reservedConcurrentExecutions = value; } /** *

The number of concurrent executions that are reserved for this function. For * more information, see Managing * Lambda reserved concurrency.

*/ inline Concurrency& WithReservedConcurrentExecutions(int value) { SetReservedConcurrentExecutions(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline Concurrency& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline Concurrency& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline Concurrency& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_reservedConcurrentExecutions; bool m_reservedConcurrentExecutionsHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws