AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 ApplicationSignals
22{
23namespace Model
24{
25
33 class Goal
34 {
35 public:
36 AWS_APPLICATIONSIGNALS_API Goal();
37 AWS_APPLICATIONSIGNALS_API Goal(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API Goal& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Interval& GetInterval() const{ return m_interval; }
49 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
50 inline void SetInterval(const Interval& value) { m_intervalHasBeenSet = true; m_interval = value; }
51 inline void SetInterval(Interval&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); }
52 inline Goal& WithInterval(const Interval& value) { SetInterval(value); return *this;}
53 inline Goal& WithInterval(Interval&& value) { SetInterval(std::move(value)); return *this;}
55
57
67 inline double GetAttainmentGoal() const{ return m_attainmentGoal; }
68 inline bool AttainmentGoalHasBeenSet() const { return m_attainmentGoalHasBeenSet; }
69 inline void SetAttainmentGoal(double value) { m_attainmentGoalHasBeenSet = true; m_attainmentGoal = value; }
70 inline Goal& WithAttainmentGoal(double value) { SetAttainmentGoal(value); return *this;}
72
74
78 inline double GetWarningThreshold() const{ return m_warningThreshold; }
79 inline bool WarningThresholdHasBeenSet() const { return m_warningThresholdHasBeenSet; }
80 inline void SetWarningThreshold(double value) { m_warningThresholdHasBeenSet = true; m_warningThreshold = value; }
81 inline Goal& WithWarningThreshold(double value) { SetWarningThreshold(value); return *this;}
83 private:
84
85 Interval m_interval;
86 bool m_intervalHasBeenSet = false;
87
88 double m_attainmentGoal;
89 bool m_attainmentGoalHasBeenSet = false;
90
91 double m_warningThreshold;
92 bool m_warningThresholdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ApplicationSignals
97} // namespace Aws
void SetWarningThreshold(double value)
Definition Goal.h:80
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttainmentGoal(double value)
Definition Goal.h:69
double GetWarningThreshold() const
Definition Goal.h:78
bool WarningThresholdHasBeenSet() const
Definition Goal.h:79
Goal & WithInterval(Interval &&value)
Definition Goal.h:53
void SetInterval(Interval &&value)
Definition Goal.h:51
Goal & WithWarningThreshold(double value)
Definition Goal.h:81
AWS_APPLICATIONSIGNALS_API Goal(Aws::Utils::Json::JsonView jsonValue)
Goal & WithAttainmentGoal(double value)
Definition Goal.h:70
double GetAttainmentGoal() const
Definition Goal.h:67
const Interval & GetInterval() const
Definition Goal.h:48
void SetInterval(const Interval &value)
Definition Goal.h:50
AWS_APPLICATIONSIGNALS_API Goal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API Goal()
bool AttainmentGoalHasBeenSet() const
Definition Goal.h:68
Goal & WithInterval(const Interval &value)
Definition Goal.h:52
Aws::Utils::Json::JsonValue JsonValue