AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const NotificationType& GetNotificationType() const{ return m_notificationType; }
60 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
61 inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
62 inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); }
63 inline Notification& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;}
64 inline Notification& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;}
66
68
71 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
72 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
73 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
74 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
75 inline Notification& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
76 inline Notification& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
78
80
86 inline double GetThreshold() const{ return m_threshold; }
87 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
88 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
89 inline Notification& WithThreshold(double value) { SetThreshold(value); return *this;}
91
93
102 inline const ThresholdType& GetThresholdType() const{ return m_thresholdType; }
103 inline bool ThresholdTypeHasBeenSet() const { return m_thresholdTypeHasBeenSet; }
104 inline void SetThresholdType(const ThresholdType& value) { m_thresholdTypeHasBeenSet = true; m_thresholdType = value; }
105 inline void SetThresholdType(ThresholdType&& value) { m_thresholdTypeHasBeenSet = true; m_thresholdType = std::move(value); }
106 inline Notification& WithThresholdType(const ThresholdType& value) { SetThresholdType(value); return *this;}
107 inline Notification& WithThresholdType(ThresholdType&& value) { SetThresholdType(std::move(value)); return *this;}
109
111
116 inline const NotificationState& GetNotificationState() const{ return m_notificationState; }
117 inline bool NotificationStateHasBeenSet() const { return m_notificationStateHasBeenSet; }
118 inline void SetNotificationState(const NotificationState& value) { m_notificationStateHasBeenSet = true; m_notificationState = value; }
119 inline void SetNotificationState(NotificationState&& value) { m_notificationStateHasBeenSet = true; m_notificationState = std::move(value); }
120 inline Notification& WithNotificationState(const NotificationState& value) { SetNotificationState(value); return *this;}
121 inline Notification& WithNotificationState(NotificationState&& value) { SetNotificationState(std::move(value)); return *this;}
123 private:
124
125 NotificationType m_notificationType;
126 bool m_notificationTypeHasBeenSet = false;
127
128 ComparisonOperator m_comparisonOperator;
129 bool m_comparisonOperatorHasBeenSet = false;
130
131 double m_threshold;
132 bool m_thresholdHasBeenSet = false;
133
134 ThresholdType m_thresholdType;
135 bool m_thresholdTypeHasBeenSet = false;
136
137 NotificationState m_notificationState;
138 bool m_notificationStateHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Budgets
143} // namespace Aws
void SetThresholdType(const ThresholdType &value)
const ThresholdType & GetThresholdType() const
void SetNotificationType(NotificationType &&value)
Notification & WithThreshold(double value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComparisonOperator(ComparisonOperator &&value)
const NotificationType & GetNotificationType() const
Notification & WithComparisonOperator(ComparisonOperator &&value)
Notification & WithNotificationState(NotificationState &&value)
void SetThresholdType(ThresholdType &&value)
Notification & WithNotificationState(const NotificationState &value)
void SetComparisonOperator(const ComparisonOperator &value)
Notification & WithThresholdType(ThresholdType &&value)
void SetNotificationState(NotificationState &&value)
Notification & WithNotificationType(NotificationType &&value)
const NotificationState & GetNotificationState() const
Notification & WithThresholdType(const ThresholdType &value)
void SetNotificationType(const NotificationType &value)
Notification & WithComparisonOperator(const ComparisonOperator &value)
AWS_BUDGETS_API Notification(Aws::Utils::Json::JsonView jsonValue)
Notification & WithNotificationType(const NotificationType &value)
const ComparisonOperator & GetComparisonOperator() const
AWS_BUDGETS_API Notification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNotificationState(const NotificationState &value)
Aws::Utils::Json::JsonValue JsonValue