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

Round-trip time (RTT) is how long it takes for a request from the user to * return a response to the user. Amazon CloudWatch Internet Monitor calculates RTT * at different percentiles: p50, p90, and p95.

See Also:

AWS * API Reference

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

RTT at the 50th percentile (p50).

*/ inline double GetP50() const{ return m_p50; } /** *

RTT at the 50th percentile (p50).

*/ inline bool P50HasBeenSet() const { return m_p50HasBeenSet; } /** *

RTT at the 50th percentile (p50).

*/ inline void SetP50(double value) { m_p50HasBeenSet = true; m_p50 = value; } /** *

RTT at the 50th percentile (p50).

*/ inline RoundTripTime& WithP50(double value) { SetP50(value); return *this;} /** *

RTT at the 90th percentile (p90).

*/ inline double GetP90() const{ return m_p90; } /** *

RTT at the 90th percentile (p90).

*/ inline bool P90HasBeenSet() const { return m_p90HasBeenSet; } /** *

RTT at the 90th percentile (p90).

*/ inline void SetP90(double value) { m_p90HasBeenSet = true; m_p90 = value; } /** *

RTT at the 90th percentile (p90).

*/ inline RoundTripTime& WithP90(double value) { SetP90(value); return *this;} /** *

RTT at the 95th percentile (p95).

*/ inline double GetP95() const{ return m_p95; } /** *

RTT at the 95th percentile (p95).

*/ inline bool P95HasBeenSet() const { return m_p95HasBeenSet; } /** *

RTT at the 95th percentile (p95).

*/ inline void SetP95(double value) { m_p95HasBeenSet = true; m_p95 = value; } /** *

RTT at the 95th percentile (p95).

*/ inline RoundTripTime& WithP95(double value) { SetP95(value); return *this;} private: double m_p50; bool m_p50HasBeenSet = false; double m_p90; bool m_p90HasBeenSet = false; double m_p95; bool m_p95HasBeenSet = false; }; } // namespace Model } // namespace InternetMonitor } // namespace Aws