AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Notification.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/ComparisonOperator.h>
9#include <aws/budgets/model/NotificationState.h>
10#include <aws/budgets/model/NotificationType.h>
11#include <aws/budgets/model/ThresholdType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Budgets {
23namespace Model {
24
41 public:
42 AWS_BUDGETS_API Notification() = default;
43 AWS_BUDGETS_API Notification(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
53 inline NotificationType GetNotificationType() const { return m_notificationType; }
54 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
56 m_notificationTypeHasBeenSet = true;
57 m_notificationType = value;
58 }
61 return *this;
62 }
64
66
69 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
70 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
72 m_comparisonOperatorHasBeenSet = true;
73 m_comparisonOperator = value;
74 }
77 return *this;
78 }
80
82
88 inline double GetThreshold() const { return m_threshold; }
89 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
90 inline void SetThreshold(double value) {
91 m_thresholdHasBeenSet = true;
92 m_threshold = value;
93 }
94 inline Notification& WithThreshold(double value) {
95 SetThreshold(value);
96 return *this;
97 }
99
101
110 inline ThresholdType GetThresholdType() const { return m_thresholdType; }
111 inline bool ThresholdTypeHasBeenSet() const { return m_thresholdTypeHasBeenSet; }
112 inline void SetThresholdType(ThresholdType value) {
113 m_thresholdTypeHasBeenSet = true;
114 m_thresholdType = value;
115 }
117 SetThresholdType(value);
118 return *this;
119 }
121
123
128 inline NotificationState GetNotificationState() const { return m_notificationState; }
129 inline bool NotificationStateHasBeenSet() const { return m_notificationStateHasBeenSet; }
131 m_notificationStateHasBeenSet = true;
132 m_notificationState = value;
133 }
136 return *this;
137 }
139 private:
141
143
144 double m_threshold{0.0};
145
146 ThresholdType m_thresholdType{ThresholdType::NOT_SET};
147
149 bool m_notificationTypeHasBeenSet = false;
150 bool m_comparisonOperatorHasBeenSet = false;
151 bool m_thresholdHasBeenSet = false;
152 bool m_thresholdTypeHasBeenSet = false;
153 bool m_notificationStateHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Budgets
158} // namespace Aws
NotificationType GetNotificationType() const
NotificationState GetNotificationState() const
void SetThresholdType(ThresholdType value)
Notification & WithThreshold(double value)
Notification & WithNotificationType(NotificationType value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
Notification & WithComparisonOperator(ComparisonOperator value)
void SetNotificationType(NotificationType value)
ThresholdType GetThresholdType() const
void SetNotificationState(NotificationState value)
void SetComparisonOperator(ComparisonOperator value)
Notification & WithThresholdType(ThresholdType value)
AWS_BUDGETS_API Notification(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API Notification()=default
ComparisonOperator GetComparisonOperator() const
Notification & WithNotificationState(NotificationState value)
AWS_BUDGETS_API Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue