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

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/lambda/Lambda_EXPORTS.h>

#include <utility>

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() = default;
  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;

  ///@{
  /**
   * <p>The number of concurrent executions that are reserved for this function. For
   * more information, see <a
   * href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing
   * Lambda reserved concurrency</a>.</p>
   */
  inline int GetReservedConcurrentExecutions() const { return m_reservedConcurrentExecutions; }
  inline bool ReservedConcurrentExecutionsHasBeenSet() const { return m_reservedConcurrentExecutionsHasBeenSet; }
  inline void SetReservedConcurrentExecutions(int value) {
    m_reservedConcurrentExecutionsHasBeenSet = true;
    m_reservedConcurrentExecutions = value;
  }
  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; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  Concurrency& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  int m_reservedConcurrentExecutions{0};

  Aws::String m_requestId;
  bool m_reservedConcurrentExecutionsHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace Lambda
}  // namespace Aws
