AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PerformanceMeasurement.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/internetmonitor/model/RoundTripTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace InternetMonitor
22{
23namespace Model
24{
25
49 {
50 public:
51 AWS_INTERNETMONITOR_API PerformanceMeasurement() = default;
52 AWS_INTERNETMONITOR_API PerformanceMeasurement(Aws::Utils::Json::JsonView jsonValue);
53 AWS_INTERNETMONITOR_API PerformanceMeasurement& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
73 inline double GetExperienceScore() const { return m_experienceScore; }
74 inline bool ExperienceScoreHasBeenSet() const { return m_experienceScoreHasBeenSet; }
75 inline void SetExperienceScore(double value) { m_experienceScoreHasBeenSet = true; m_experienceScore = value; }
76 inline PerformanceMeasurement& WithExperienceScore(double value) { SetExperienceScore(value); return *this;}
78
80
90 inline double GetPercentOfTotalTrafficImpacted() const { return m_percentOfTotalTrafficImpacted; }
91 inline bool PercentOfTotalTrafficImpactedHasBeenSet() const { return m_percentOfTotalTrafficImpactedHasBeenSet; }
92 inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpactedHasBeenSet = true; m_percentOfTotalTrafficImpacted = value; }
95
97
107 inline double GetPercentOfClientLocationImpacted() const { return m_percentOfClientLocationImpacted; }
108 inline bool PercentOfClientLocationImpactedHasBeenSet() const { return m_percentOfClientLocationImpactedHasBeenSet; }
109 inline void SetPercentOfClientLocationImpacted(double value) { m_percentOfClientLocationImpactedHasBeenSet = true; m_percentOfClientLocationImpacted = value; }
112
114
122 inline const RoundTripTime& GetRoundTripTime() const { return m_roundTripTime; }
123 inline bool RoundTripTimeHasBeenSet() const { return m_roundTripTimeHasBeenSet; }
124 template<typename RoundTripTimeT = RoundTripTime>
125 void SetRoundTripTime(RoundTripTimeT&& value) { m_roundTripTimeHasBeenSet = true; m_roundTripTime = std::forward<RoundTripTimeT>(value); }
126 template<typename RoundTripTimeT = RoundTripTime>
127 PerformanceMeasurement& WithRoundTripTime(RoundTripTimeT&& value) { SetRoundTripTime(std::forward<RoundTripTimeT>(value)); return *this;}
129 private:
130
131 double m_experienceScore{0.0};
132 bool m_experienceScoreHasBeenSet = false;
133
134 double m_percentOfTotalTrafficImpacted{0.0};
135 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
136
137 double m_percentOfClientLocationImpacted{0.0};
138 bool m_percentOfClientLocationImpactedHasBeenSet = false;
139
140 RoundTripTime m_roundTripTime;
141 bool m_roundTripTimeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace InternetMonitor
146} // namespace Aws
PerformanceMeasurement & WithRoundTripTime(RoundTripTimeT &&value)
PerformanceMeasurement & WithExperienceScore(double value)
PerformanceMeasurement & WithPercentOfClientLocationImpacted(double value)
AWS_INTERNETMONITOR_API PerformanceMeasurement()=default
AWS_INTERNETMONITOR_API PerformanceMeasurement(Aws::Utils::Json::JsonView jsonValue)
PerformanceMeasurement & WithPercentOfTotalTrafficImpacted(double value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INTERNETMONITOR_API PerformanceMeasurement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue