/**
 * 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 <aws/lambda/model/LayerVersionsListItem.h>

#include <utility>

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

/**
 * <p>Details about an <a
 * href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
 * layer</a>.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayersListItem">AWS
 * API Reference</a></p>
 */
class LayersListItem {
 public:
  AWS_LAMBDA_API LayersListItem() = default;
  AWS_LAMBDA_API LayersListItem(Aws::Utils::Json::JsonView jsonValue);
  AWS_LAMBDA_API LayersListItem& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the layer.</p>
   */
  inline const Aws::String& GetLayerName() const { return m_layerName; }
  inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
  template <typename LayerNameT = Aws::String>
  void SetLayerName(LayerNameT&& value) {
    m_layerNameHasBeenSet = true;
    m_layerName = std::forward<LayerNameT>(value);
  }
  template <typename LayerNameT = Aws::String>
  LayersListItem& WithLayerName(LayerNameT&& value) {
    SetLayerName(std::forward<LayerNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the function layer.</p>
   */
  inline const Aws::String& GetLayerArn() const { return m_layerArn; }
  inline bool LayerArnHasBeenSet() const { return m_layerArnHasBeenSet; }
  template <typename LayerArnT = Aws::String>
  void SetLayerArn(LayerArnT&& value) {
    m_layerArnHasBeenSet = true;
    m_layerArn = std::forward<LayerArnT>(value);
  }
  template <typename LayerArnT = Aws::String>
  LayersListItem& WithLayerArn(LayerArnT&& value) {
    SetLayerArn(std::forward<LayerArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The newest version of the layer.</p>
   */
  inline const LayerVersionsListItem& GetLatestMatchingVersion() const { return m_latestMatchingVersion; }
  inline bool LatestMatchingVersionHasBeenSet() const { return m_latestMatchingVersionHasBeenSet; }
  template <typename LatestMatchingVersionT = LayerVersionsListItem>
  void SetLatestMatchingVersion(LatestMatchingVersionT&& value) {
    m_latestMatchingVersionHasBeenSet = true;
    m_latestMatchingVersion = std::forward<LatestMatchingVersionT>(value);
  }
  template <typename LatestMatchingVersionT = LayerVersionsListItem>
  LayersListItem& WithLatestMatchingVersion(LatestMatchingVersionT&& value) {
    SetLatestMatchingVersion(std::forward<LatestMatchingVersionT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_layerName;

  Aws::String m_layerArn;

  LayerVersionsListItem m_latestMatchingVersion;
  bool m_layerNameHasBeenSet = false;
  bool m_layerArnHasBeenSet = false;
  bool m_latestMatchingVersionHasBeenSet = false;
};

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