/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

Attributes are the entries within the inventory item content. It contains * name and value.

See Also:

AWS * API Reference

*/ class InventoryItemAttribute { public: AWS_SSM_API InventoryItemAttribute(); 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; /** *

Name of the inventory item attribute.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the inventory item attribute.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the inventory item attribute.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the inventory item attribute.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the inventory item attribute.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the inventory item attribute.

*/ inline InventoryItemAttribute& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the inventory item attribute.

*/ inline InventoryItemAttribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the inventory item attribute.

*/ inline InventoryItemAttribute& WithName(const char* value) { SetName(value); return *this;} /** *

The data type of the inventory item attribute.

*/ inline const InventoryAttributeDataType& GetDataType() const{ return m_dataType; } /** *

The data type of the inventory item attribute.

*/ inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; } /** *

The data type of the inventory item attribute.

*/ inline void SetDataType(const InventoryAttributeDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } /** *

The data type of the inventory item attribute.

*/ inline void SetDataType(InventoryAttributeDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); } /** *

The data type of the inventory item attribute.

*/ inline InventoryItemAttribute& WithDataType(const InventoryAttributeDataType& value) { SetDataType(value); return *this;} /** *

The data type of the inventory item attribute.

*/ inline InventoryItemAttribute& WithDataType(InventoryAttributeDataType&& value) { SetDataType(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; InventoryAttributeDataType m_dataType; bool m_dataTypeHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws