/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetServiceGraphResult { public: AWS_XRAY_API GetServiceGraphResult(); AWS_XRAY_API GetServiceGraphResult(const Aws::AmazonWebServiceResult& result); AWS_XRAY_API GetServiceGraphResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The start of the time frame for which the graph was generated.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start of the time frame for which the graph was generated.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

The start of the time frame for which the graph was generated.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

The start of the time frame for which the graph was generated.

*/ inline GetServiceGraphResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start of the time frame for which the graph was generated.

*/ inline GetServiceGraphResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end of the time frame for which the graph was generated.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end of the time frame for which the graph was generated.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; } /** *

The end of the time frame for which the graph was generated.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); } /** *

The end of the time frame for which the graph was generated.

*/ inline GetServiceGraphResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end of the time frame for which the graph was generated.

*/ inline GetServiceGraphResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The services that have processed a traced request during the specified time * frame.

*/ inline const Aws::Vector& GetServices() const{ return m_services; } /** *

The services that have processed a traced request during the specified time * frame.

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

The services that have processed a traced request during the specified time * frame.

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

The services that have processed a traced request during the specified time * frame.

*/ inline GetServiceGraphResult& WithServices(const Aws::Vector& value) { SetServices(value); return *this;} /** *

The services that have processed a traced request during the specified time * frame.

*/ inline GetServiceGraphResult& WithServices(Aws::Vector&& value) { SetServices(std::move(value)); return *this;} /** *

The services that have processed a traced request during the specified time * frame.

*/ inline GetServiceGraphResult& AddServices(const Service& value) { m_services.push_back(value); return *this; } /** *

The services that have processed a traced request during the specified time * frame.

*/ inline GetServiceGraphResult& AddServices(Service&& value) { m_services.push_back(std::move(value)); return *this; } /** *

A flag indicating whether the group's filter expression has been consistent, * or if the returned service graph may show traces from an older version of the * group's filter expression.

*/ inline bool GetContainsOldGroupVersions() const{ return m_containsOldGroupVersions; } /** *

A flag indicating whether the group's filter expression has been consistent, * or if the returned service graph may show traces from an older version of the * group's filter expression.

*/ inline void SetContainsOldGroupVersions(bool value) { m_containsOldGroupVersions = value; } /** *

A flag indicating whether the group's filter expression has been consistent, * or if the returned service graph may show traces from an older version of the * group's filter expression.

*/ inline GetServiceGraphResult& WithContainsOldGroupVersions(bool value) { SetContainsOldGroupVersions(value); return *this;} /** *

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

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

Pagination token.

*/ inline GetServiceGraphResult& 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 GetServiceGraphResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServiceGraphResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServiceGraphResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_startTime; Aws::Utils::DateTime m_endTime; Aws::Vector m_services; bool m_containsOldGroupVersions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace XRay } // namespace Aws