/** * 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 item schema definition. Users can use this to compose inventory * query filters.

See Also:

AWS * API Reference

*/ class InventoryItemSchema { public: AWS_SSM_API InventoryItemSchema(); AWS_SSM_API InventoryItemSchema(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API InventoryItemSchema& 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 * Amazon Web Services. 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 * Amazon Web Services. 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 * Amazon Web Services. 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 * Amazon Web Services. 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 * Amazon Web Services. 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 * Amazon Web Services. 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 InventoryItemSchema& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} /** *

The name of the inventory type. Default inventory item type names start with * Amazon Web Services. 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 InventoryItemSchema& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} /** *

The name of the inventory type. Default inventory item type names start with * Amazon Web Services. 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 InventoryItemSchema& WithTypeName(const char* value) { SetTypeName(value); return *this;} /** *

The schema version for the inventory item.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The schema version for the inventory item.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The schema version for the inventory item.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The schema version for the inventory item.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The schema version for the inventory item.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The schema version for the inventory item.

*/ inline InventoryItemSchema& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The schema version for the inventory item.

*/ inline InventoryItemSchema& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The schema version for the inventory item.

*/ inline InventoryItemSchema& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline InventoryItemSchema& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline InventoryItemSchema& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline InventoryItemSchema& AddAttributes(const InventoryItemAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

The schema attributes for inventory. This contains data type and attribute * name.

*/ inline InventoryItemSchema& AddAttributes(InventoryItemAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline InventoryItemSchema& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline InventoryItemSchema& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The alias name of the inventory type. The alias name is used for display * purposes.

*/ inline InventoryItemSchema& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} private: Aws::String m_typeName; bool m_typeNameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws