AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
InternetHealth.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/internetmonitor/model/AvailabilityMeasurement.h>
9#include <aws/internetmonitor/model/PerformanceMeasurement.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace InternetMonitor {
21namespace Model {
22
38 public:
39 AWS_INTERNETMONITOR_API InternetHealth() = default;
40 AWS_INTERNETMONITOR_API InternetHealth(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INTERNETMONITOR_API InternetHealth& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
56 inline const AvailabilityMeasurement& GetAvailability() const { return m_availability; }
57 inline bool AvailabilityHasBeenSet() const { return m_availabilityHasBeenSet; }
58 template <typename AvailabilityT = AvailabilityMeasurement>
59 void SetAvailability(AvailabilityT&& value) {
60 m_availabilityHasBeenSet = true;
61 m_availability = std::forward<AvailabilityT>(value);
62 }
63 template <typename AvailabilityT = AvailabilityMeasurement>
64 InternetHealth& WithAvailability(AvailabilityT&& value) {
65 SetAvailability(std::forward<AvailabilityT>(value));
66 return *this;
67 }
69
71
82 inline const PerformanceMeasurement& GetPerformance() const { return m_performance; }
83 inline bool PerformanceHasBeenSet() const { return m_performanceHasBeenSet; }
84 template <typename PerformanceT = PerformanceMeasurement>
85 void SetPerformance(PerformanceT&& value) {
86 m_performanceHasBeenSet = true;
87 m_performance = std::forward<PerformanceT>(value);
88 }
89 template <typename PerformanceT = PerformanceMeasurement>
90 InternetHealth& WithPerformance(PerformanceT&& value) {
91 SetPerformance(std::forward<PerformanceT>(value));
92 return *this;
93 }
95 private:
96 AvailabilityMeasurement m_availability;
97
98 PerformanceMeasurement m_performance;
99 bool m_availabilityHasBeenSet = false;
100 bool m_performanceHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace InternetMonitor
105} // namespace Aws
void SetAvailability(AvailabilityT &&value)
const AvailabilityMeasurement & GetAvailability() const
AWS_INTERNETMONITOR_API InternetHealth(Aws::Utils::Json::JsonView jsonValue)
InternetHealth & WithAvailability(AvailabilityT &&value)
AWS_INTERNETMONITOR_API InternetHealth & operator=(Aws::Utils::Json::JsonView jsonValue)
const PerformanceMeasurement & GetPerformance() const
AWS_INTERNETMONITOR_API InternetHealth()=default
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
InternetHealth & WithPerformance(PerformanceT &&value)
void SetPerformance(PerformanceT &&value)
Aws::Utils::Json::JsonValue JsonValue