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

Information collected from managed nodes based on your inventory policy * document

See Also:

AWS * API Reference

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The name of the inventory type. Default inventory item type names start with * AWS. Custom inventory type names will start with Custom. Default * inventory item types include the following: AWS:AWSComponent, * AWS:Application, AWS:InstanceInformation, * AWS:Network, and AWS:WindowsUpdate.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The schema version for the inventory item.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

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

The time the inventory information was collected.

*/ inline InventoryItem& 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 InventoryItem& 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 InventoryItem& 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 InventoryItem& WithContentHash(const char* value) { SetContentHash(value); return *this;} /** *

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

The inventory data of the inventory type.

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

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline const Aws::Map& GetContext() const{ return m_context; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline void SetContext(const Aws::Map& value) { m_contextHasBeenSet = true; m_context = value; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline void SetContext(Aws::Map&& value) { m_contextHasBeenSet = true; m_context = std::move(value); } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& WithContext(const Aws::Map& value) { SetContext(value); return *this;} /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& WithContext(Aws::Map&& value) { SetContext(std::move(value)); return *this;} /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; } /** *

A map of associated properties for a specified inventory type. For example, * with this attribute, you can specify the ExecutionId, * ExecutionType, ComplianceType properties of the * AWS:ComplianceItem type.

*/ inline InventoryItem& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, 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; Aws::Map m_context; bool m_contextHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws