/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FSx { namespace Model { /** *

You can't delete a backup while it's being copied.

See Also:

* AWS * API Reference

*/ class BackupBeingCopied { public: AWS_FSX_API BackupBeingCopied(); AWS_FSX_API BackupBeingCopied(Aws::Utils::Json::JsonView jsonValue); AWS_FSX_API BackupBeingCopied& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline BackupBeingCopied& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline BackupBeingCopied& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline BackupBeingCopied& WithMessage(const char* value) { SetMessage(value); return *this;} inline const Aws::String& GetBackupId() const{ return m_backupId; } inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; } inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; } inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); } inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); } inline BackupBeingCopied& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;} inline BackupBeingCopied& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;} inline BackupBeingCopied& WithBackupId(const char* value) { SetBackupId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_backupId; bool m_backupIdHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws