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

Inventory query results.

See Also:

AWS * API Reference

*/ class InventoryResultEntity { public: AWS_SSM_API InventoryResultEntity(); AWS_SSM_API InventoryResultEntity(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API InventoryResultEntity& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline InventoryResultEntity& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline InventoryResultEntity& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

ID of the inventory result entity. For example, for managed node inventory * the result will be the managed node ID. For EC2 instance inventory, the result * will be the instance ID.

*/ inline InventoryResultEntity& WithId(const char* value) { SetId(value); return *this;} /** *

The data section in the inventory result entity JSON.

*/ inline const Aws::Map& GetData() const{ return m_data; } /** *

The data section in the inventory result entity JSON.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

The data section in the inventory result entity JSON.

*/ inline void SetData(const Aws::Map& value) { m_dataHasBeenSet = true; m_data = value; } /** *

The data section in the inventory result entity JSON.

*/ inline void SetData(Aws::Map&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& WithData(const Aws::Map& value) { SetData(value); return *this;} /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& WithData(Aws::Map&& value) { SetData(std::move(value)); return *this;} /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& AddData(const Aws::String& key, const InventoryResultItem& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; } /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& AddData(Aws::String&& key, const InventoryResultItem& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), value); return *this; } /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& AddData(const Aws::String& key, InventoryResultItem&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; } /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& AddData(Aws::String&& key, InventoryResultItem&& value) { m_dataHasBeenSet = true; m_data.emplace(std::move(key), std::move(value)); return *this; } /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& AddData(const char* key, InventoryResultItem&& value) { m_dataHasBeenSet = true; m_data.emplace(key, std::move(value)); return *this; } /** *

The data section in the inventory result entity JSON.

*/ inline InventoryResultEntity& AddData(const char* key, const InventoryResultItem& value) { m_dataHasBeenSet = true; m_data.emplace(key, value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Map m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws