/** * 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 { class CreateSnapshotResult { public: AWS_FSX_API CreateSnapshotResult(); AWS_FSX_API CreateSnapshotResult(const Aws::AmazonWebServiceResult& result); AWS_FSX_API CreateSnapshotResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A description of the snapshot.

*/ inline const Snapshot& GetSnapshot() const{ return m_snapshot; } /** *

A description of the snapshot.

*/ inline void SetSnapshot(const Snapshot& value) { m_snapshot = value; } /** *

A description of the snapshot.

*/ inline void SetSnapshot(Snapshot&& value) { m_snapshot = std::move(value); } /** *

A description of the snapshot.

*/ inline CreateSnapshotResult& WithSnapshot(const Snapshot& value) { SetSnapshot(value); return *this;} /** *

A description of the snapshot.

*/ inline CreateSnapshotResult& WithSnapshot(Snapshot&& value) { SetSnapshot(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 CreateSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Snapshot m_snapshot; Aws::String m_requestId; }; } // namespace Model } // namespace FSx } // namespace Aws