AWS SDK for C++

AWS SDK for C++ Version 1.11.941

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace InternetMonitor {
20namespace Model {
21
45 public:
46 AWS_INTERNETMONITOR_API PerformanceMeasurement() = default;
47 AWS_INTERNETMONITOR_API PerformanceMeasurement(Aws::Utils::Json::JsonView jsonValue);
48 AWS_INTERNETMONITOR_API PerformanceMeasurement& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
67 inline double GetExperienceScore() const { return m_experienceScore; }
68 inline bool ExperienceScoreHasBeenSet() const { return m_experienceScoreHasBeenSet; }
69 inline void SetExperienceScore(double value) {
70 m_experienceScoreHasBeenSet = true;
71 m_experienceScore = value;
72 }
74 SetExperienceScore(value);
75 return *this;
76 }
78
80
90 inline double GetPercentOfTotalTrafficImpacted() const { return m_percentOfTotalTrafficImpacted; }
91 inline bool PercentOfTotalTrafficImpactedHasBeenSet() const { return m_percentOfTotalTrafficImpactedHasBeenSet; }
92 inline void SetPercentOfTotalTrafficImpacted(double value) {
93 m_percentOfTotalTrafficImpactedHasBeenSet = true;
94 m_percentOfTotalTrafficImpacted = value;
95 }
98 return *this;
99 }
101
103
113 inline double GetPercentOfClientLocationImpacted() const { return m_percentOfClientLocationImpacted; }
114 inline bool PercentOfClientLocationImpactedHasBeenSet() const { return m_percentOfClientLocationImpactedHasBeenSet; }
115 inline void SetPercentOfClientLocationImpacted(double value) {
116 m_percentOfClientLocationImpactedHasBeenSet = true;
117 m_percentOfClientLocationImpacted = value;
118 }
121 return *this;
122 }
124
126
134 inline const RoundTripTime& GetRoundTripTime() const { return m_roundTripTime; }
135 inline bool RoundTripTimeHasBeenSet() const { return m_roundTripTimeHasBeenSet; }
136 template <typename RoundTripTimeT = RoundTripTime>
137 void SetRoundTripTime(RoundTripTimeT&& value) {
138 m_roundTripTimeHasBeenSet = true;
139 m_roundTripTime = std::forward<RoundTripTimeT>(value);
140 }
141 template <typename RoundTripTimeT = RoundTripTime>
142 PerformanceMeasurement& WithRoundTripTime(RoundTripTimeT&& value) {
143 SetRoundTripTime(std::forward<RoundTripTimeT>(value));
144 return *this;
145 }
147 private:
148 double m_experienceScore{0.0};
149
150 double m_percentOfTotalTrafficImpacted{0.0};
151
152 double m_percentOfClientLocationImpacted{0.0};
153
154 RoundTripTime m_roundTripTime;
155 bool m_experienceScoreHasBeenSet = false;
156 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
157 bool m_percentOfClientLocationImpactedHasBeenSet = false;
158 bool m_roundTripTimeHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace InternetMonitor
163} // 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