AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
Goal.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/Interval.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationSignals {
20namespace Model {
21
29class Goal {
30 public:
31 AWS_APPLICATIONSIGNALS_API Goal() = default;
32 AWS_APPLICATIONSIGNALS_API Goal(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API Goal& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Interval& GetInterval() const { return m_interval; }
43 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
44 template <typename IntervalT = Interval>
45 void SetInterval(IntervalT&& value) {
46 m_intervalHasBeenSet = true;
47 m_interval = std::forward<IntervalT>(value);
48 }
49 template <typename IntervalT = Interval>
50 Goal& WithInterval(IntervalT&& value) {
51 SetInterval(std::forward<IntervalT>(value));
52 return *this;
53 }
55
57
67 inline double GetAttainmentGoal() const { return m_attainmentGoal; }
68 inline bool AttainmentGoalHasBeenSet() const { return m_attainmentGoalHasBeenSet; }
69 inline void SetAttainmentGoal(double value) {
70 m_attainmentGoalHasBeenSet = true;
71 m_attainmentGoal = value;
72 }
73 inline Goal& WithAttainmentGoal(double value) {
74 SetAttainmentGoal(value);
75 return *this;
76 }
78
80
84 inline double GetWarningThreshold() const { return m_warningThreshold; }
85 inline bool WarningThresholdHasBeenSet() const { return m_warningThresholdHasBeenSet; }
86 inline void SetWarningThreshold(double value) {
87 m_warningThresholdHasBeenSet = true;
88 m_warningThreshold = value;
89 }
90 inline Goal& WithWarningThreshold(double value) {
92 return *this;
93 }
95 private:
96 Interval m_interval;
97 bool m_intervalHasBeenSet = false;
98
99 double m_attainmentGoal{0.0};
100 bool m_attainmentGoalHasBeenSet = false;
101
102 double m_warningThreshold{0.0};
103 bool m_warningThresholdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ApplicationSignals
108} // namespace Aws
void SetWarningThreshold(double value)
Definition Goal.h:86
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttainmentGoal(double value)
Definition Goal.h:69
double GetWarningThreshold() const
Definition Goal.h:84
bool WarningThresholdHasBeenSet() const
Definition Goal.h:85
Goal & WithWarningThreshold(double value)
Definition Goal.h:90
AWS_APPLICATIONSIGNALS_API Goal(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API Goal()=default
Goal & WithAttainmentGoal(double value)
Definition Goal.h:73
Goal & WithInterval(IntervalT &&value)
Definition Goal.h:50
double GetAttainmentGoal() const
Definition Goal.h:67
const Interval & GetInterval() const
Definition Goal.h:42
void SetInterval(IntervalT &&value)
Definition Goal.h:45
AWS_APPLICATIONSIGNALS_API Goal & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AttainmentGoalHasBeenSet() const
Definition Goal.h:68
Aws::Utils::Json::JsonValue JsonValue