/** * 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 { /** */ class DisassociateFileSystemRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API DisassociateFileSystemRequest(); // 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 "DisassociateFileSystem"; } 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 system association to be * deleted.

*/ inline const Aws::String& GetFileSystemAssociationARN() const{ return m_fileSystemAssociationARN; } /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline bool FileSystemAssociationARNHasBeenSet() const { return m_fileSystemAssociationARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline void SetFileSystemAssociationARN(const Aws::String& value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN = value; } /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline void SetFileSystemAssociationARN(Aws::String&& value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline void SetFileSystemAssociationARN(const char* value) { m_fileSystemAssociationARNHasBeenSet = true; m_fileSystemAssociationARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline DisassociateFileSystemRequest& WithFileSystemAssociationARN(const Aws::String& value) { SetFileSystemAssociationARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline DisassociateFileSystemRequest& WithFileSystemAssociationARN(Aws::String&& value) { SetFileSystemAssociationARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the file system association to be * deleted.

*/ inline DisassociateFileSystemRequest& WithFileSystemAssociationARN(const char* value) { SetFileSystemAssociationARN(value); return *this;} /** *

If this value is set to true, the operation disassociates an Amazon FSx file * system immediately. It ends all data uploads to the file system, and the file * system association enters the FORCE_DELETING status. If this value * is set to false, the Amazon FSx file system does not disassociate until all data * is uploaded.

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

If this value is set to true, the operation disassociates an Amazon FSx file * system immediately. It ends all data uploads to the file system, and the file * system association enters the FORCE_DELETING status. If this value * is set to false, the Amazon FSx file system does not disassociate until all data * is uploaded.

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

If this value is set to true, the operation disassociates an Amazon FSx file * system immediately. It ends all data uploads to the file system, and the file * system association enters the FORCE_DELETING status. If this value * is set to false, the Amazon FSx file system does not disassociate until all data * is uploaded.

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

If this value is set to true, the operation disassociates an Amazon FSx file * system immediately. It ends all data uploads to the file system, and the file * system association enters the FORCE_DELETING status. If this value * is set to false, the Amazon FSx file system does not disassociate until all data * is uploaded.

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