AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LocalHealthEventsConfig.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/internetmonitor/model/LocalHealthEventsConfigStatus.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
45 {
46 public:
47 AWS_INTERNETMONITOR_API LocalHealthEventsConfig() = default;
48 AWS_INTERNETMONITOR_API LocalHealthEventsConfig(Aws::Utils::Json::JsonView jsonValue);
50 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
59 inline LocalHealthEventsConfigStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(LocalHealthEventsConfigStatus value) { m_statusHasBeenSet = true; m_status = value; }
64
66
69 inline double GetHealthScoreThreshold() const { return m_healthScoreThreshold; }
70 inline bool HealthScoreThresholdHasBeenSet() const { return m_healthScoreThresholdHasBeenSet; }
71 inline void SetHealthScoreThreshold(double value) { m_healthScoreThresholdHasBeenSet = true; m_healthScoreThreshold = value; }
72 inline LocalHealthEventsConfig& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;}
74
76
82 inline double GetMinTrafficImpact() const { return m_minTrafficImpact; }
83 inline bool MinTrafficImpactHasBeenSet() const { return m_minTrafficImpactHasBeenSet; }
84 inline void SetMinTrafficImpact(double value) { m_minTrafficImpactHasBeenSet = true; m_minTrafficImpact = value; }
85 inline LocalHealthEventsConfig& WithMinTrafficImpact(double value) { SetMinTrafficImpact(value); return *this;}
87 private:
88
90 bool m_statusHasBeenSet = false;
91
92 double m_healthScoreThreshold{0.0};
93 bool m_healthScoreThresholdHasBeenSet = false;
94
95 double m_minTrafficImpact{0.0};
96 bool m_minTrafficImpactHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace InternetMonitor
101} // namespace Aws
AWS_INTERNETMONITOR_API LocalHealthEventsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(LocalHealthEventsConfigStatus value)
LocalHealthEventsConfig & WithStatus(LocalHealthEventsConfigStatus value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
LocalHealthEventsConfig & WithHealthScoreThreshold(double value)
AWS_INTERNETMONITOR_API LocalHealthEventsConfig()=default
AWS_INTERNETMONITOR_API LocalHealthEventsConfig(Aws::Utils::Json::JsonView jsonValue)
LocalHealthEventsConfig & WithMinTrafficImpact(double value)
Aws::Utils::Json::JsonValue JsonValue