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

A JSON object containing the DeleteVolumeInput$VolumeARN to * delete.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline DeleteVolumeRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline DeleteVolumeRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline DeleteVolumeRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;} private: Aws::String m_volumeARN; bool m_volumeARNHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws