AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const LocalHealthEventsConfigStatus& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const LocalHealthEventsConfigStatus& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(LocalHealthEventsConfigStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline LocalHealthEventsConfig& WithStatus(const LocalHealthEventsConfigStatus& value) { SetStatus(value); return *this;}
64 inline LocalHealthEventsConfig& WithStatus(LocalHealthEventsConfigStatus&& value) { SetStatus(std::move(value)); return *this;}
66
68
71 inline double GetHealthScoreThreshold() const{ return m_healthScoreThreshold; }
72 inline bool HealthScoreThresholdHasBeenSet() const { return m_healthScoreThresholdHasBeenSet; }
73 inline void SetHealthScoreThreshold(double value) { m_healthScoreThresholdHasBeenSet = true; m_healthScoreThreshold = value; }
74 inline LocalHealthEventsConfig& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;}
76
78
84 inline double GetMinTrafficImpact() const{ return m_minTrafficImpact; }
85 inline bool MinTrafficImpactHasBeenSet() const { return m_minTrafficImpactHasBeenSet; }
86 inline void SetMinTrafficImpact(double value) { m_minTrafficImpactHasBeenSet = true; m_minTrafficImpact = value; }
87 inline LocalHealthEventsConfig& WithMinTrafficImpact(double value) { SetMinTrafficImpact(value); return *this;}
89 private:
90
92 bool m_statusHasBeenSet = false;
93
94 double m_healthScoreThreshold;
95 bool m_healthScoreThresholdHasBeenSet = false;
96
97 double m_minTrafficImpact;
98 bool m_minTrafficImpactHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace InternetMonitor
103} // namespace Aws
void SetStatus(LocalHealthEventsConfigStatus &&value)
AWS_INTERNETMONITOR_API LocalHealthEventsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const LocalHealthEventsConfigStatus & GetStatus() const
void SetStatus(const LocalHealthEventsConfigStatus &value)
LocalHealthEventsConfig & WithStatus(const LocalHealthEventsConfigStatus &value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
LocalHealthEventsConfig & WithHealthScoreThreshold(double value)
AWS_INTERNETMONITOR_API LocalHealthEventsConfig(Aws::Utils::Json::JsonView jsonValue)
LocalHealthEventsConfig & WithMinTrafficImpact(double value)
LocalHealthEventsConfig & WithStatus(LocalHealthEventsConfigStatus &&value)
Aws::Utils::Json::JsonValue JsonValue