/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace StorageGateway { namespace Model { /** *

DeleteFileShareInput

See Also:

AWS * API Reference

*/ class DeleteFileShareRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API DeleteFileShareRequest(); // 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 "DeleteFileShare"; } AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override; AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline const Aws::String& GetFileShareARN() const{ return m_fileShareARN; } /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline void SetFileShareARN(const Aws::String& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = value; } /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline void SetFileShareARN(Aws::String&& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline void SetFileShareARN(const char* value) { m_fileShareARNHasBeenSet = true; m_fileShareARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline DeleteFileShareRequest& WithFileShareARN(const Aws::String& value) { SetFileShareARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline DeleteFileShareRequest& WithFileShareARN(Aws::String&& value) { SetFileShareARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the file share to be deleted.

*/ inline DeleteFileShareRequest& WithFileShareARN(const char* value) { SetFileShareARN(value); return *this;} /** *

If this value is set to true, the operation deletes a file share * immediately and aborts all data uploads to Amazon Web Services. Otherwise, the * file share is not deleted until all data is uploaded to Amazon Web Services. * This process aborts the data upload process, and the file share enters the * FORCE_DELETING status.

Valid Values: true | * false

*/ inline bool GetForceDelete() const{ return m_forceDelete; } /** *

If this value is set to true, the operation deletes a file share * immediately and aborts all data uploads to Amazon Web Services. Otherwise, the * file share is not deleted until all data is uploaded to Amazon Web Services. * This process aborts the data upload process, and the file share enters the * FORCE_DELETING status.

Valid Values: true | * false

*/ inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; } /** *

If this value is set to true, the operation deletes a file share * immediately and aborts all data uploads to Amazon Web Services. Otherwise, the * file share is not deleted until all data is uploaded to Amazon Web Services. * This process aborts the data upload process, and the file share enters the * FORCE_DELETING status.

Valid Values: true | * false

*/ inline void SetForceDelete(bool value) { m_forceDeleteHasBeenSet = true; m_forceDelete = value; } /** *

If this value is set to true, the operation deletes a file share * immediately and aborts all data uploads to Amazon Web Services. Otherwise, the * file share is not deleted until all data is uploaded to Amazon Web Services. * This process aborts the data upload process, and the file share enters the * FORCE_DELETING status.

Valid Values: true | * false

*/ inline DeleteFileShareRequest& WithForceDelete(bool value) { SetForceDelete(value); return *this;} private: Aws::String m_fileShareARN; bool m_fileShareARNHasBeenSet = false; bool m_forceDelete; bool m_forceDeleteHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws