/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class DeleteInventoryRequest : public SSMRequest { public: AWS_SSM_API DeleteInventoryRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteInventory"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

The name of the custom inventory type for which you want to delete either all * previously collected data or the inventory type itself.

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

Use the SchemaDeleteOption to delete a custom inventory type * (schema). If you don't choose this option, the system only deletes existing * inventory data associated with the custom inventory type. Choose one of the * following options:

DisableSchema: If you choose this option, the system * ignores all inventory data for the specified version, and any earlier versions. * To enable this schema again, you must call the PutInventory * operation for a version greater than the disabled version.

DeleteSchema: * This option deletes the specified custom type from the Inventory service. You * can recreate the schema later, if you want.

*/ inline const InventorySchemaDeleteOption& GetSchemaDeleteOption() const{ return m_schemaDeleteOption; } /** *

Use the SchemaDeleteOption to delete a custom inventory type * (schema). If you don't choose this option, the system only deletes existing * inventory data associated with the custom inventory type. Choose one of the * following options:

DisableSchema: If you choose this option, the system * ignores all inventory data for the specified version, and any earlier versions. * To enable this schema again, you must call the PutInventory * operation for a version greater than the disabled version.

DeleteSchema: * This option deletes the specified custom type from the Inventory service. You * can recreate the schema later, if you want.

*/ inline bool SchemaDeleteOptionHasBeenSet() const { return m_schemaDeleteOptionHasBeenSet; } /** *

Use the SchemaDeleteOption to delete a custom inventory type * (schema). If you don't choose this option, the system only deletes existing * inventory data associated with the custom inventory type. Choose one of the * following options:

DisableSchema: If you choose this option, the system * ignores all inventory data for the specified version, and any earlier versions. * To enable this schema again, you must call the PutInventory * operation for a version greater than the disabled version.

DeleteSchema: * This option deletes the specified custom type from the Inventory service. You * can recreate the schema later, if you want.

*/ inline void SetSchemaDeleteOption(const InventorySchemaDeleteOption& value) { m_schemaDeleteOptionHasBeenSet = true; m_schemaDeleteOption = value; } /** *

Use the SchemaDeleteOption to delete a custom inventory type * (schema). If you don't choose this option, the system only deletes existing * inventory data associated with the custom inventory type. Choose one of the * following options:

DisableSchema: If you choose this option, the system * ignores all inventory data for the specified version, and any earlier versions. * To enable this schema again, you must call the PutInventory * operation for a version greater than the disabled version.

DeleteSchema: * This option deletes the specified custom type from the Inventory service. You * can recreate the schema later, if you want.

*/ inline void SetSchemaDeleteOption(InventorySchemaDeleteOption&& value) { m_schemaDeleteOptionHasBeenSet = true; m_schemaDeleteOption = std::move(value); } /** *

Use the SchemaDeleteOption to delete a custom inventory type * (schema). If you don't choose this option, the system only deletes existing * inventory data associated with the custom inventory type. Choose one of the * following options:

DisableSchema: If you choose this option, the system * ignores all inventory data for the specified version, and any earlier versions. * To enable this schema again, you must call the PutInventory * operation for a version greater than the disabled version.

DeleteSchema: * This option deletes the specified custom type from the Inventory service. You * can recreate the schema later, if you want.

*/ inline DeleteInventoryRequest& WithSchemaDeleteOption(const InventorySchemaDeleteOption& value) { SetSchemaDeleteOption(value); return *this;} /** *

Use the SchemaDeleteOption to delete a custom inventory type * (schema). If you don't choose this option, the system only deletes existing * inventory data associated with the custom inventory type. Choose one of the * following options:

DisableSchema: If you choose this option, the system * ignores all inventory data for the specified version, and any earlier versions. * To enable this schema again, you must call the PutInventory * operation for a version greater than the disabled version.

DeleteSchema: * This option deletes the specified custom type from the Inventory service. You * can recreate the schema later, if you want.

*/ inline DeleteInventoryRequest& WithSchemaDeleteOption(InventorySchemaDeleteOption&& value) { SetSchemaDeleteOption(std::move(value)); return *this;} /** *

Use this option to view a summary of the deletion request without deleting * any data or the data type. This option is useful when you only want to * understand what will be deleted. Once you validate that the data to be deleted * is what you intend to delete, you can run the same command without specifying * the DryRun option.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Use this option to view a summary of the deletion request without deleting * any data or the data type. This option is useful when you only want to * understand what will be deleted. Once you validate that the data to be deleted * is what you intend to delete, you can run the same command without specifying * the DryRun option.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Use this option to view a summary of the deletion request without deleting * any data or the data type. This option is useful when you only want to * understand what will be deleted. Once you validate that the data to be deleted * is what you intend to delete, you can run the same command without specifying * the DryRun option.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Use this option to view a summary of the deletion request without deleting * any data or the data type. This option is useful when you only want to * understand what will be deleted. Once you validate that the data to be deleted * is what you intend to delete, you can run the same command without specifying * the DryRun option.

*/ inline DeleteInventoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

User-provided idempotency token.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

User-provided idempotency token.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

User-provided idempotency token.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

User-provided idempotency token.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

User-provided idempotency token.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

User-provided idempotency token.

*/ inline DeleteInventoryRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

User-provided idempotency token.

*/ inline DeleteInventoryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

User-provided idempotency token.

*/ inline DeleteInventoryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_typeName; bool m_typeNameHasBeenSet = false; InventorySchemaDeleteOption m_schemaDeleteOption; bool m_schemaDeleteOptionHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws