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

#pragma once
#include <aws/lambda/Lambda_EXPORTS.h>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace Lambda {
namespace Model {

/**
 * <p>The number of functions and amount of storage in use.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountUsage">AWS
 * API Reference</a></p>
 */
class AccountUsage {
 public:
  AWS_LAMBDA_API AccountUsage() = default;
  AWS_LAMBDA_API AccountUsage(Aws::Utils::Json::JsonView jsonValue);
  AWS_LAMBDA_API AccountUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The amount of storage space, in bytes, that's being used by deployment
   * packages and layer archives.</p>
   */
  inline long long GetTotalCodeSize() const { return m_totalCodeSize; }
  inline bool TotalCodeSizeHasBeenSet() const { return m_totalCodeSizeHasBeenSet; }
  inline void SetTotalCodeSize(long long value) {
    m_totalCodeSizeHasBeenSet = true;
    m_totalCodeSize = value;
  }
  inline AccountUsage& WithTotalCodeSize(long long value) {
    SetTotalCodeSize(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The number of Lambda functions.</p>
   */
  inline long long GetFunctionCount() const { return m_functionCount; }
  inline bool FunctionCountHasBeenSet() const { return m_functionCountHasBeenSet; }
  inline void SetFunctionCount(long long value) {
    m_functionCountHasBeenSet = true;
    m_functionCount = value;
  }
  inline AccountUsage& WithFunctionCount(long long value) {
    SetFunctionCount(value);
    return *this;
  }
  ///@}
 private:
  long long m_totalCodeSize{0};

  long long m_functionCount{0};
  bool m_totalCodeSizeHasBeenSet = false;
  bool m_functionCountHasBeenSet = false;
};

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