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

AttachVolumeInput

See Also:

AWS * API Reference

*/ class DetachVolumeRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API DetachVolumeRequest(); // 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 "DetachVolume"; } 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 to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

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

The Amazon Resource Name (ARN) of the volume to detach from the gateway.

*/ inline DetachVolumeRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;} /** *

Set to true to forcibly remove the iSCSI connection of the * target volume and detach the volume. The default is false. If this * value is set to false, you must manually disconnect the iSCSI * connection from the target volume.

Valid Values: true | * false

*/ inline bool GetForceDetach() const{ return m_forceDetach; } /** *

Set to true to forcibly remove the iSCSI connection of the * target volume and detach the volume. The default is false. If this * value is set to false, you must manually disconnect the iSCSI * connection from the target volume.

Valid Values: true | * false

*/ inline bool ForceDetachHasBeenSet() const { return m_forceDetachHasBeenSet; } /** *

Set to true to forcibly remove the iSCSI connection of the * target volume and detach the volume. The default is false. If this * value is set to false, you must manually disconnect the iSCSI * connection from the target volume.

Valid Values: true | * false

*/ inline void SetForceDetach(bool value) { m_forceDetachHasBeenSet = true; m_forceDetach = value; } /** *

Set to true to forcibly remove the iSCSI connection of the * target volume and detach the volume. The default is false. If this * value is set to false, you must manually disconnect the iSCSI * connection from the target volume.

Valid Values: true | * false

*/ inline DetachVolumeRequest& WithForceDetach(bool value) { SetForceDetach(value); return *this;} private: Aws::String m_volumeARN; bool m_volumeARNHasBeenSet = false; bool m_forceDetach; bool m_forceDetachHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws