/** * 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 Lightsail { namespace Model { class GetInstanceSnapshotResult { public: AWS_LIGHTSAIL_API GetInstanceSnapshotResult(); AWS_LIGHTSAIL_API GetInstanceSnapshotResult(const Aws::AmazonWebServiceResult& result); AWS_LIGHTSAIL_API GetInstanceSnapshotResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of key-value pairs containing information about the results of your * get instance snapshot request.

*/ inline const InstanceSnapshot& GetInstanceSnapshot() const{ return m_instanceSnapshot; } /** *

An array of key-value pairs containing information about the results of your * get instance snapshot request.

*/ inline void SetInstanceSnapshot(const InstanceSnapshot& value) { m_instanceSnapshot = value; } /** *

An array of key-value pairs containing information about the results of your * get instance snapshot request.

*/ inline void SetInstanceSnapshot(InstanceSnapshot&& value) { m_instanceSnapshot = std::move(value); } /** *

An array of key-value pairs containing information about the results of your * get instance snapshot request.

*/ inline GetInstanceSnapshotResult& WithInstanceSnapshot(const InstanceSnapshot& value) { SetInstanceSnapshot(value); return *this;} /** *

An array of key-value pairs containing information about the results of your * get instance snapshot request.

*/ inline GetInstanceSnapshotResult& WithInstanceSnapshot(InstanceSnapshot&& value) { SetInstanceSnapshot(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 GetInstanceSnapshotResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetInstanceSnapshotResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetInstanceSnapshotResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: InstanceSnapshot m_instanceSnapshot; Aws::String m_requestId; }; } // namespace Model } // namespace Lightsail } // namespace Aws