/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace XRay { namespace Model { class GetInsightEventsResult { public: AWS_XRAY_API GetInsightEventsResult(); AWS_XRAY_API GetInsightEventsResult(const Aws::AmazonWebServiceResult& result); AWS_XRAY_API GetInsightEventsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline const Aws::Vector& GetInsightEvents() const{ return m_insightEvents; } /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline void SetInsightEvents(const Aws::Vector& value) { m_insightEvents = value; } /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline void SetInsightEvents(Aws::Vector&& value) { m_insightEvents = std::move(value); } /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline GetInsightEventsResult& WithInsightEvents(const Aws::Vector& value) { SetInsightEvents(value); return *this;} /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline GetInsightEventsResult& WithInsightEvents(Aws::Vector&& value) { SetInsightEvents(std::move(value)); return *this;} /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline GetInsightEventsResult& AddInsightEvents(const InsightEvent& value) { m_insightEvents.push_back(value); return *this; } /** *

A detailed description of the event. This includes the time of the event, * client and root cause impact statistics, and the top anomalous service at the * time of the event.

*/ inline GetInsightEventsResult& AddInsightEvents(InsightEvent&& value) { m_insightEvents.push_back(std::move(value)); return *this; } /** *

Use this token to retrieve the next page of insight events.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Use this token to retrieve the next page of insight events.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

Use this token to retrieve the next page of insight events.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

Use this token to retrieve the next page of insight events.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

Use this token to retrieve the next page of insight events.

*/ inline GetInsightEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Use this token to retrieve the next page of insight events.

*/ inline GetInsightEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Use this token to retrieve the next page of insight events.

*/ inline GetInsightEventsResult& WithNextToken(const char* value) { SetNextToken(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 GetInsightEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetInsightEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetInsightEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_insightEvents; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace XRay } // namespace Aws