AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Notification.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/NotificationType.h>
9#include <aws/budgets/model/ComparisonOperator.h>
10#include <aws/budgets/model/ThresholdType.h>
11#include <aws/budgets/model/NotificationState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Budgets
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_BUDGETS_API Notification() = default;
48 AWS_BUDGETS_API Notification(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
59 inline NotificationType GetNotificationType() const { return m_notificationType; }
60 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
61 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
64
66
69 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
70 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
71 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
74
76
82 inline double GetThreshold() const { return m_threshold; }
83 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
84 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
85 inline Notification& WithThreshold(double value) { SetThreshold(value); return *this;}
87
89
98 inline ThresholdType GetThresholdType() const { return m_thresholdType; }
99 inline bool ThresholdTypeHasBeenSet() const { return m_thresholdTypeHasBeenSet; }
100 inline void SetThresholdType(ThresholdType value) { m_thresholdTypeHasBeenSet = true; m_thresholdType = value; }
101 inline Notification& WithThresholdType(ThresholdType value) { SetThresholdType(value); return *this;}
103
105
110 inline NotificationState GetNotificationState() const { return m_notificationState; }
111 inline bool NotificationStateHasBeenSet() const { return m_notificationStateHasBeenSet; }
112 inline void SetNotificationState(NotificationState value) { m_notificationStateHasBeenSet = true; m_notificationState = value; }
115 private:
116
118 bool m_notificationTypeHasBeenSet = false;
119
121 bool m_comparisonOperatorHasBeenSet = false;
122
123 double m_threshold{0.0};
124 bool m_thresholdHasBeenSet = false;
125
126 ThresholdType m_thresholdType{ThresholdType::NOT_SET};
127 bool m_thresholdTypeHasBeenSet = false;
128
130 bool m_notificationStateHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Budgets
135} // 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