AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AvailabilityMeasurement.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace InternetMonitor {
17namespace Model {
18
42 public:
43 AWS_INTERNETMONITOR_API AvailabilityMeasurement() = default;
44 AWS_INTERNETMONITOR_API AvailabilityMeasurement(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
64 inline double GetExperienceScore() const { return m_experienceScore; }
65 inline bool ExperienceScoreHasBeenSet() const { return m_experienceScoreHasBeenSet; }
66 inline void SetExperienceScore(double value) {
67 m_experienceScoreHasBeenSet = true;
68 m_experienceScore = value;
69 }
71 SetExperienceScore(value);
72 return *this;
73 }
75
77
88 inline double GetPercentOfTotalTrafficImpacted() const { return m_percentOfTotalTrafficImpacted; }
89 inline bool PercentOfTotalTrafficImpactedHasBeenSet() const { return m_percentOfTotalTrafficImpactedHasBeenSet; }
90 inline void SetPercentOfTotalTrafficImpacted(double value) {
91 m_percentOfTotalTrafficImpactedHasBeenSet = true;
92 m_percentOfTotalTrafficImpacted = value;
93 }
96 return *this;
97 }
99
101
109 inline double GetPercentOfClientLocationImpacted() const { return m_percentOfClientLocationImpacted; }
110 inline bool PercentOfClientLocationImpactedHasBeenSet() const { return m_percentOfClientLocationImpactedHasBeenSet; }
111 inline void SetPercentOfClientLocationImpacted(double value) {
112 m_percentOfClientLocationImpactedHasBeenSet = true;
113 m_percentOfClientLocationImpacted = value;
114 }
117 return *this;
118 }
120 private:
121 double m_experienceScore{0.0};
122
123 double m_percentOfTotalTrafficImpacted{0.0};
124
125 double m_percentOfClientLocationImpacted{0.0};
126 bool m_experienceScoreHasBeenSet = false;
127 bool m_percentOfTotalTrafficImpactedHasBeenSet = false;
128 bool m_percentOfClientLocationImpactedHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace InternetMonitor
133} // namespace Aws
AWS_INTERNETMONITOR_API AvailabilityMeasurement & operator=(Aws::Utils::Json::JsonView jsonValue)
AvailabilityMeasurement & WithPercentOfClientLocationImpacted(double value)
AvailabilityMeasurement & WithExperienceScore(double value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AvailabilityMeasurement & WithPercentOfTotalTrafficImpacted(double value)
AWS_INTERNETMONITOR_API AvailabilityMeasurement(Aws::Utils::Json::JsonView jsonValue)
AWS_INTERNETMONITOR_API AvailabilityMeasurement()=default
Aws::Utils::Json::JsonValue JsonValue