1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/lightsail/Lightsail_EXPORTS.h> 8 #include <aws/lightsail/model/InstanceSnapshot.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace Lightsail 24 { 25 namespace Model 26 { 27 class AWS_LIGHTSAIL_API GetInstanceSnapshotResult 28 { 29 public: 30 GetInstanceSnapshotResult(); 31 GetInstanceSnapshotResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 GetInstanceSnapshotResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>An array of key-value pairs containing information about the results of your 37 * get instance snapshot request.</p> 38 */ GetInstanceSnapshot()39 inline const InstanceSnapshot& GetInstanceSnapshot() const{ return m_instanceSnapshot; } 40 41 /** 42 * <p>An array of key-value pairs containing information about the results of your 43 * get instance snapshot request.</p> 44 */ SetInstanceSnapshot(const InstanceSnapshot & value)45 inline void SetInstanceSnapshot(const InstanceSnapshot& value) { m_instanceSnapshot = value; } 46 47 /** 48 * <p>An array of key-value pairs containing information about the results of your 49 * get instance snapshot request.</p> 50 */ SetInstanceSnapshot(InstanceSnapshot && value)51 inline void SetInstanceSnapshot(InstanceSnapshot&& value) { m_instanceSnapshot = std::move(value); } 52 53 /** 54 * <p>An array of key-value pairs containing information about the results of your 55 * get instance snapshot request.</p> 56 */ WithInstanceSnapshot(const InstanceSnapshot & value)57 inline GetInstanceSnapshotResult& WithInstanceSnapshot(const InstanceSnapshot& value) { SetInstanceSnapshot(value); return *this;} 58 59 /** 60 * <p>An array of key-value pairs containing information about the results of your 61 * get instance snapshot request.</p> 62 */ WithInstanceSnapshot(InstanceSnapshot && value)63 inline GetInstanceSnapshotResult& WithInstanceSnapshot(InstanceSnapshot&& value) { SetInstanceSnapshot(std::move(value)); return *this;} 64 65 private: 66 67 InstanceSnapshot m_instanceSnapshot; 68 }; 69 70 } // namespace Model 71 } // namespace Lightsail 72 } // namespace Aws 73