AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace InternetMonitor
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_INTERNETMONITOR_API InternetHealth() = default;
45 AWS_INTERNETMONITOR_API InternetHealth(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INTERNETMONITOR_API InternetHealth& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
62 inline const AvailabilityMeasurement& GetAvailability() const { return m_availability; }
63 inline bool AvailabilityHasBeenSet() const { return m_availabilityHasBeenSet; }
64 template<typename AvailabilityT = AvailabilityMeasurement>
65 void SetAvailability(AvailabilityT&& value) { m_availabilityHasBeenSet = true; m_availability = std::forward<AvailabilityT>(value); }
66 template<typename AvailabilityT = AvailabilityMeasurement>
67 InternetHealth& WithAvailability(AvailabilityT&& value) { SetAvailability(std::forward<AvailabilityT>(value)); return *this;}
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) { m_performanceHasBeenSet = true; m_performance = std::forward<PerformanceT>(value); }
86 template<typename PerformanceT = PerformanceMeasurement>
87 InternetHealth& WithPerformance(PerformanceT&& value) { SetPerformance(std::forward<PerformanceT>(value)); return *this;}
89 private:
90
91 AvailabilityMeasurement m_availability;
92 bool m_availabilityHasBeenSet = false;
93
94 PerformanceMeasurement m_performance;
95 bool m_performanceHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace InternetMonitor
100} // 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