/** * 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 Lightsail { namespace Model { /** */ class DeleteDiskSnapshotRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API DeleteDiskSnapshotRequest(); // 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 "DeleteDiskSnapshot"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline const Aws::String& GetDiskSnapshotName() const{ return m_diskSnapshotName; } /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline bool DiskSnapshotNameHasBeenSet() const { return m_diskSnapshotNameHasBeenSet; } /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline void SetDiskSnapshotName(const Aws::String& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = value; } /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline void SetDiskSnapshotName(Aws::String&& value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName = std::move(value); } /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline void SetDiskSnapshotName(const char* value) { m_diskSnapshotNameHasBeenSet = true; m_diskSnapshotName.assign(value); } /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline DeleteDiskSnapshotRequest& WithDiskSnapshotName(const Aws::String& value) { SetDiskSnapshotName(value); return *this;} /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline DeleteDiskSnapshotRequest& WithDiskSnapshotName(Aws::String&& value) { SetDiskSnapshotName(std::move(value)); return *this;} /** *

The name of the disk snapshot you want to delete (e.g., * my-disk-snapshot).

*/ inline DeleteDiskSnapshotRequest& WithDiskSnapshotName(const char* value) { SetDiskSnapshotName(value); return *this;} private: Aws::String m_diskSnapshotName; bool m_diskSnapshotNameHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws