/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

Information about a connection between two services. An edge can be a * synchronous connection, such as typical call between client and service, or an * asynchronous link, such as a Lambda function which retrieves an event from an * SNS queue.

See Also:

AWS API * Reference

*/ class Edge { public: AWS_XRAY_API Edge(); AWS_XRAY_API Edge(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Edge& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Identifier of the edge. Unique within a service map.

*/ inline int GetReferenceId() const{ return m_referenceId; } /** *

Identifier of the edge. Unique within a service map.

*/ inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; } /** *

Identifier of the edge. Unique within a service map.

*/ inline void SetReferenceId(int value) { m_referenceIdHasBeenSet = true; m_referenceId = value; } /** *

Identifier of the edge. Unique within a service map.

*/ inline Edge& WithReferenceId(int value) { SetReferenceId(value); return *this;} /** *

The start time of the first segment on the edge.

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

The start time of the first segment on the edge.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the first segment on the edge.

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

The start time of the first segment on the edge.

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

The start time of the first segment on the edge.

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

The start time of the first segment on the edge.

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

The end time of the last segment on the edge.

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

The end time of the last segment on the edge.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time of the last segment on the edge.

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

The end time of the last segment on the edge.

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

The end time of the last segment on the edge.

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

The end time of the last segment on the edge.

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

Response statistics for segments on the edge.

*/ inline const EdgeStatistics& GetSummaryStatistics() const{ return m_summaryStatistics; } /** *

Response statistics for segments on the edge.

*/ inline bool SummaryStatisticsHasBeenSet() const { return m_summaryStatisticsHasBeenSet; } /** *

Response statistics for segments on the edge.

*/ inline void SetSummaryStatistics(const EdgeStatistics& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = value; } /** *

Response statistics for segments on the edge.

*/ inline void SetSummaryStatistics(EdgeStatistics&& value) { m_summaryStatisticsHasBeenSet = true; m_summaryStatistics = std::move(value); } /** *

Response statistics for segments on the edge.

*/ inline Edge& WithSummaryStatistics(const EdgeStatistics& value) { SetSummaryStatistics(value); return *this;} /** *

Response statistics for segments on the edge.

*/ inline Edge& WithSummaryStatistics(EdgeStatistics&& value) { SetSummaryStatistics(std::move(value)); return *this;} /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline const Aws::Vector& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; } /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; } /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline void SetResponseTimeHistogram(const Aws::Vector& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; } /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline void SetResponseTimeHistogram(Aws::Vector&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); } /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline Edge& WithResponseTimeHistogram(const Aws::Vector& value) { SetResponseTimeHistogram(value); return *this;} /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline Edge& WithResponseTimeHistogram(Aws::Vector&& value) { SetResponseTimeHistogram(std::move(value)); return *this;} /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline Edge& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; } /** *

A histogram that maps the spread of client response times on an edge. Only * populated for synchronous edges.

*/ inline Edge& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; } /** *

Aliases for the edge.

*/ inline const Aws::Vector& GetAliases() const{ return m_aliases; } /** *

Aliases for the edge.

*/ inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; } /** *

Aliases for the edge.

*/ inline void SetAliases(const Aws::Vector& value) { m_aliasesHasBeenSet = true; m_aliases = value; } /** *

Aliases for the edge.

*/ inline void SetAliases(Aws::Vector&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); } /** *

Aliases for the edge.

*/ inline Edge& WithAliases(const Aws::Vector& value) { SetAliases(value); return *this;} /** *

Aliases for the edge.

*/ inline Edge& WithAliases(Aws::Vector&& value) { SetAliases(std::move(value)); return *this;} /** *

Aliases for the edge.

*/ inline Edge& AddAliases(const Alias& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; } /** *

Aliases for the edge.

*/ inline Edge& AddAliases(Alias&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; } /** *

Describes an asynchronous connection, with a value of link.

*/ inline const Aws::String& GetEdgeType() const{ return m_edgeType; } /** *

Describes an asynchronous connection, with a value of link.

*/ inline bool EdgeTypeHasBeenSet() const { return m_edgeTypeHasBeenSet; } /** *

Describes an asynchronous connection, with a value of link.

*/ inline void SetEdgeType(const Aws::String& value) { m_edgeTypeHasBeenSet = true; m_edgeType = value; } /** *

Describes an asynchronous connection, with a value of link.

*/ inline void SetEdgeType(Aws::String&& value) { m_edgeTypeHasBeenSet = true; m_edgeType = std::move(value); } /** *

Describes an asynchronous connection, with a value of link.

*/ inline void SetEdgeType(const char* value) { m_edgeTypeHasBeenSet = true; m_edgeType.assign(value); } /** *

Describes an asynchronous connection, with a value of link.

*/ inline Edge& WithEdgeType(const Aws::String& value) { SetEdgeType(value); return *this;} /** *

Describes an asynchronous connection, with a value of link.

*/ inline Edge& WithEdgeType(Aws::String&& value) { SetEdgeType(std::move(value)); return *this;} /** *

Describes an asynchronous connection, with a value of link.

*/ inline Edge& WithEdgeType(const char* value) { SetEdgeType(value); return *this;} /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline const Aws::Vector& GetReceivedEventAgeHistogram() const{ return m_receivedEventAgeHistogram; } /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline bool ReceivedEventAgeHistogramHasBeenSet() const { return m_receivedEventAgeHistogramHasBeenSet; } /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline void SetReceivedEventAgeHistogram(const Aws::Vector& value) { m_receivedEventAgeHistogramHasBeenSet = true; m_receivedEventAgeHistogram = value; } /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline void SetReceivedEventAgeHistogram(Aws::Vector&& value) { m_receivedEventAgeHistogramHasBeenSet = true; m_receivedEventAgeHistogram = std::move(value); } /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline Edge& WithReceivedEventAgeHistogram(const Aws::Vector& value) { SetReceivedEventAgeHistogram(value); return *this;} /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline Edge& WithReceivedEventAgeHistogram(Aws::Vector&& value) { SetReceivedEventAgeHistogram(std::move(value)); return *this;} /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline Edge& AddReceivedEventAgeHistogram(const HistogramEntry& value) { m_receivedEventAgeHistogramHasBeenSet = true; m_receivedEventAgeHistogram.push_back(value); return *this; } /** *

A histogram that maps the spread of event age when received by consumers. Age * is calculated each time an event is received. Only populated when * EdgeType is link.

*/ inline Edge& AddReceivedEventAgeHistogram(HistogramEntry&& value) { m_receivedEventAgeHistogramHasBeenSet = true; m_receivedEventAgeHistogram.push_back(std::move(value)); return *this; } private: int m_referenceId; bool m_referenceIdHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; EdgeStatistics m_summaryStatistics; bool m_summaryStatisticsHasBeenSet = false; Aws::Vector m_responseTimeHistogram; bool m_responseTimeHistogramHasBeenSet = false; Aws::Vector m_aliases; bool m_aliasesHasBeenSet = false; Aws::String m_edgeType; bool m_edgeTypeHasBeenSet = false; Aws::Vector m_receivedEventAgeHistogram; bool m_receivedEventAgeHistogramHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws