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/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/xray/model/InsightSummary.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace XRay 26 { 27 namespace Model 28 { 29 class AWS_XRAY_API GetInsightSummariesResult 30 { 31 public: 32 GetInsightSummariesResult(); 33 GetInsightSummariesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 GetInsightSummariesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>The summary of each insight within the group matching the provided filters. 39 * The summary contains the InsightID, start and end time, the root cause service, 40 * the root cause and client impact statistics, the top anomalous services, and the 41 * status of the insight.</p> 42 */ GetInsightSummaries()43 inline const Aws::Vector<InsightSummary>& GetInsightSummaries() const{ return m_insightSummaries; } 44 45 /** 46 * <p>The summary of each insight within the group matching the provided filters. 47 * The summary contains the InsightID, start and end time, the root cause service, 48 * the root cause and client impact statistics, the top anomalous services, and the 49 * status of the insight.</p> 50 */ SetInsightSummaries(const Aws::Vector<InsightSummary> & value)51 inline void SetInsightSummaries(const Aws::Vector<InsightSummary>& value) { m_insightSummaries = value; } 52 53 /** 54 * <p>The summary of each insight within the group matching the provided filters. 55 * The summary contains the InsightID, start and end time, the root cause service, 56 * the root cause and client impact statistics, the top anomalous services, and the 57 * status of the insight.</p> 58 */ SetInsightSummaries(Aws::Vector<InsightSummary> && value)59 inline void SetInsightSummaries(Aws::Vector<InsightSummary>&& value) { m_insightSummaries = std::move(value); } 60 61 /** 62 * <p>The summary of each insight within the group matching the provided filters. 63 * The summary contains the InsightID, start and end time, the root cause service, 64 * the root cause and client impact statistics, the top anomalous services, and the 65 * status of the insight.</p> 66 */ WithInsightSummaries(const Aws::Vector<InsightSummary> & value)67 inline GetInsightSummariesResult& WithInsightSummaries(const Aws::Vector<InsightSummary>& value) { SetInsightSummaries(value); return *this;} 68 69 /** 70 * <p>The summary of each insight within the group matching the provided filters. 71 * The summary contains the InsightID, start and end time, the root cause service, 72 * the root cause and client impact statistics, the top anomalous services, and the 73 * status of the insight.</p> 74 */ WithInsightSummaries(Aws::Vector<InsightSummary> && value)75 inline GetInsightSummariesResult& WithInsightSummaries(Aws::Vector<InsightSummary>&& value) { SetInsightSummaries(std::move(value)); return *this;} 76 77 /** 78 * <p>The summary of each insight within the group matching the provided filters. 79 * The summary contains the InsightID, start and end time, the root cause service, 80 * the root cause and client impact statistics, the top anomalous services, and the 81 * status of the insight.</p> 82 */ AddInsightSummaries(const InsightSummary & value)83 inline GetInsightSummariesResult& AddInsightSummaries(const InsightSummary& value) { m_insightSummaries.push_back(value); return *this; } 84 85 /** 86 * <p>The summary of each insight within the group matching the provided filters. 87 * The summary contains the InsightID, start and end time, the root cause service, 88 * the root cause and client impact statistics, the top anomalous services, and the 89 * status of the insight.</p> 90 */ AddInsightSummaries(InsightSummary && value)91 inline GetInsightSummariesResult& AddInsightSummaries(InsightSummary&& value) { m_insightSummaries.push_back(std::move(value)); return *this; } 92 93 94 /** 95 * <p>Pagination token.</p> 96 */ GetNextToken()97 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 98 99 /** 100 * <p>Pagination token.</p> 101 */ SetNextToken(const Aws::String & value)102 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 103 104 /** 105 * <p>Pagination token.</p> 106 */ SetNextToken(Aws::String && value)107 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 108 109 /** 110 * <p>Pagination token.</p> 111 */ SetNextToken(const char * value)112 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 113 114 /** 115 * <p>Pagination token.</p> 116 */ WithNextToken(const Aws::String & value)117 inline GetInsightSummariesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 118 119 /** 120 * <p>Pagination token.</p> 121 */ WithNextToken(Aws::String && value)122 inline GetInsightSummariesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 123 124 /** 125 * <p>Pagination token.</p> 126 */ WithNextToken(const char * value)127 inline GetInsightSummariesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 128 129 private: 130 131 Aws::Vector<InsightSummary> m_insightSummaries; 132 133 Aws::String m_nextToken; 134 }; 135 136 } // namespace Model 137 } // namespace XRay 138 } // namespace Aws 139