/** * 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 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.

See Also:

* AWS API * Reference

*/ class AWS_XRAY_API Edge { public: Edge(); Edge(Aws::Utils::Json::JsonView jsonValue); Edge& operator=(Aws::Utils::Json::JsonView jsonValue); 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.

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

A histogram that maps the spread of client response times on an edge.

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

A histogram that maps the spread of client response times on an edge.

*/ 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.

*/ 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.

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

A histogram that maps the spread of client response times on an edge.

*/ 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.

*/ 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.

*/ 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; } private: int m_referenceId; bool m_referenceIdHasBeenSet; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet; EdgeStatistics m_summaryStatistics; bool m_summaryStatisticsHasBeenSet; Aws::Vector m_responseTimeHistogram; bool m_responseTimeHistogramHasBeenSet; Aws::Vector m_aliases; bool m_aliasesHasBeenSet; }; } // namespace Model } // namespace XRay } // namespace Aws