/**
 * 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/ssm/SSM_EXPORTS.h>
#include <aws/ssm/model/InventoryAttributeDataType.h>

#include <utility>

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

/**
 * <p>Attributes are the entries within the inventory item content. It contains
 * name and value.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InventoryItemAttribute">AWS
 * API Reference</a></p>
 */
class InventoryItemAttribute {
 public:
  AWS_SSM_API InventoryItemAttribute() = default;
  AWS_SSM_API InventoryItemAttribute(Aws::Utils::Json::JsonView jsonValue);
  AWS_SSM_API InventoryItemAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>Name of the inventory item attribute.</p>
   */
  inline const Aws::String& GetName() const { return m_name; }
  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
  template <typename NameT = Aws::String>
  void SetName(NameT&& value) {
    m_nameHasBeenSet = true;
    m_name = std::forward<NameT>(value);
  }
  template <typename NameT = Aws::String>
  InventoryItemAttribute& WithName(NameT&& value) {
    SetName(std::forward<NameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The data type of the inventory item attribute. </p>
   */
  inline InventoryAttributeDataType GetDataType() const { return m_dataType; }
  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
  inline void SetDataType(InventoryAttributeDataType value) {
    m_dataTypeHasBeenSet = true;
    m_dataType = value;
  }
  inline InventoryItemAttribute& WithDataType(InventoryAttributeDataType value) {
    SetDataType(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_name;

  InventoryAttributeDataType m_dataType{InventoryAttributeDataType::NOT_SET};
  bool m_nameHasBeenSet = false;
  bool m_dataTypeHasBeenSet = false;
};

}  // namespace Model
}  // namespace SSM
}  // namespace Aws
