/** * 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 { /** *

The inventory result item.

See Also:

AWS * API Reference

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

The name of the inventory result item type.

*/ inline const Aws::String& GetTypeName() const{ return m_typeName; } /** *

The name of the inventory result item type.

*/ inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } /** *

The name of the inventory result item type.

*/ inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } /** *

The name of the inventory result item type.

*/ inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } /** *

The name of the inventory result item type.

*/ inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } /** *

The name of the inventory result item type.

*/ inline InventoryResultItem& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} /** *

The name of the inventory result item type.

*/ inline InventoryResultItem& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} /** *

The name of the inventory result item type.

*/ inline InventoryResultItem& WithTypeName(const char* value) { SetTypeName(value); return *this;} /** *

The schema version for the inventory result item/

*/ inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; } /** *

The schema version for the inventory result item/

*/ inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; } /** *

The schema version for the inventory result item/

*/ inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; } /** *

The schema version for the inventory result item/

*/ inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); } /** *

The schema version for the inventory result item/

*/ inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); } /** *

The schema version for the inventory result item/

*/ inline InventoryResultItem& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;} /** *

The schema version for the inventory result item/

*/ inline InventoryResultItem& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;} /** *

The schema version for the inventory result item/

*/ inline InventoryResultItem& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;} /** *

The time inventory item data was captured.

*/ inline const Aws::String& GetCaptureTime() const{ return m_captureTime; } /** *

The time inventory item data was captured.

*/ inline bool CaptureTimeHasBeenSet() const { return m_captureTimeHasBeenSet; } /** *

The time inventory item data was captured.

*/ inline void SetCaptureTime(const Aws::String& value) { m_captureTimeHasBeenSet = true; m_captureTime = value; } /** *

The time inventory item data was captured.

*/ inline void SetCaptureTime(Aws::String&& value) { m_captureTimeHasBeenSet = true; m_captureTime = std::move(value); } /** *

The time inventory item data was captured.

*/ inline void SetCaptureTime(const char* value) { m_captureTimeHasBeenSet = true; m_captureTime.assign(value); } /** *

The time inventory item data was captured.

*/ inline InventoryResultItem& WithCaptureTime(const Aws::String& value) { SetCaptureTime(value); return *this;} /** *

The time inventory item data was captured.

*/ inline InventoryResultItem& WithCaptureTime(Aws::String&& value) { SetCaptureTime(std::move(value)); return *this;} /** *

The time inventory item data was captured.

*/ inline InventoryResultItem& WithCaptureTime(const char* value) { SetCaptureTime(value); return *this;} /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline const Aws::String& GetContentHash() const{ return m_contentHash; } /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline bool ContentHashHasBeenSet() const { return m_contentHashHasBeenSet; } /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline void SetContentHash(const Aws::String& value) { m_contentHashHasBeenSet = true; m_contentHash = value; } /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline void SetContentHash(Aws::String&& value) { m_contentHashHasBeenSet = true; m_contentHash = std::move(value); } /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline void SetContentHash(const char* value) { m_contentHashHasBeenSet = true; m_contentHash.assign(value); } /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline InventoryResultItem& WithContentHash(const Aws::String& value) { SetContentHash(value); return *this;} /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline InventoryResultItem& WithContentHash(Aws::String&& value) { SetContentHash(std::move(value)); return *this;} /** *

MD5 hash of the inventory item type contents. The content hash is used to * determine whether to update inventory information. The PutInventory API doesn't * update the inventory item type contents if the MD5 hash hasn't changed since * last update.

*/ inline InventoryResultItem& WithContentHash(const char* value) { SetContentHash(value); return *this;} /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline const Aws::Vector>& GetContent() const{ return m_content; } /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline void SetContent(const Aws::Vector>& value) { m_contentHasBeenSet = true; m_content = value; } /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline void SetContent(Aws::Vector>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline InventoryResultItem& WithContent(const Aws::Vector>& value) { SetContent(value); return *this;} /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline InventoryResultItem& WithContent(Aws::Vector>&& value) { SetContent(std::move(value)); return *this;} /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline InventoryResultItem& AddContent(const Aws::Map& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; } /** *

Contains all the inventory data of the item type. Results include attribute * names and values.

*/ inline InventoryResultItem& AddContent(Aws::Map&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; } private: Aws::String m_typeName; bool m_typeNameHasBeenSet = false; Aws::String m_schemaVersion; bool m_schemaVersionHasBeenSet = false; Aws::String m_captureTime; bool m_captureTimeHasBeenSet = false; Aws::String m_contentHash; bool m_contentHashHasBeenSet = false; Aws::Vector> m_content; bool m_contentHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws