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/xray/XRay_EXPORTS.h> 8 #include <aws/xray/model/Insight.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 XRay 24 { 25 namespace Model 26 { 27 class AWS_XRAY_API GetInsightResult 28 { 29 public: 30 GetInsightResult(); 31 GetInsightResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 GetInsightResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>The summary information of an insight.</p> 37 */ GetInsight()38 inline const Insight& GetInsight() const{ return m_insight; } 39 40 /** 41 * <p>The summary information of an insight.</p> 42 */ SetInsight(const Insight & value)43 inline void SetInsight(const Insight& value) { m_insight = value; } 44 45 /** 46 * <p>The summary information of an insight.</p> 47 */ SetInsight(Insight && value)48 inline void SetInsight(Insight&& value) { m_insight = std::move(value); } 49 50 /** 51 * <p>The summary information of an insight.</p> 52 */ WithInsight(const Insight & value)53 inline GetInsightResult& WithInsight(const Insight& value) { SetInsight(value); return *this;} 54 55 /** 56 * <p>The summary information of an insight.</p> 57 */ WithInsight(Insight && value)58 inline GetInsightResult& WithInsight(Insight&& value) { SetInsight(std::move(value)); return *this;} 59 60 private: 61 62 Insight m_insight; 63 }; 64 65 } // namespace Model 66 } // namespace XRay 67 } // namespace Aws 68