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

The response object for the CreateBackup * operation.

See Also:

AWS * API Reference

*/ class CreateBackupResult { public: AWS_FSX_API CreateBackupResult(); AWS_FSX_API CreateBackupResult(const Aws::AmazonWebServiceResult& result); AWS_FSX_API CreateBackupResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A description of the backup.

*/ inline const Backup& GetBackup() const{ return m_backup; } /** *

A description of the backup.

*/ inline void SetBackup(const Backup& value) { m_backup = value; } /** *

A description of the backup.

*/ inline void SetBackup(Backup&& value) { m_backup = std::move(value); } /** *

A description of the backup.

*/ inline CreateBackupResult& WithBackup(const Backup& value) { SetBackup(value); return *this;} /** *

A description of the backup.

*/ inline CreateBackupResult& WithBackup(Backup&& value) { SetBackup(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateBackupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateBackupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateBackupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Backup m_backup; Aws::String m_requestId; }; } // namespace Model } // namespace FSx } // namespace Aws