AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
BudgetNotificationsForAccount.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/Notification.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets {
22namespace Model {
23
31 public:
32 AWS_BUDGETS_API BudgetNotificationsForAccount() = default;
35 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::Vector<Notification>& GetNotifications() const { return m_notifications; }
40 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
41 template <typename NotificationsT = Aws::Vector<Notification>>
42 void SetNotifications(NotificationsT&& value) {
43 m_notificationsHasBeenSet = true;
44 m_notifications = std::forward<NotificationsT>(value);
45 }
46 template <typename NotificationsT = Aws::Vector<Notification>>
48 SetNotifications(std::forward<NotificationsT>(value));
49 return *this;
50 }
51 template <typename NotificationsT = Notification>
53 m_notificationsHasBeenSet = true;
54 m_notifications.emplace_back(std::forward<NotificationsT>(value));
55 return *this;
56 }
58
60
61 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
62 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
63 template <typename BudgetNameT = Aws::String>
64 void SetBudgetName(BudgetNameT&& value) {
65 m_budgetNameHasBeenSet = true;
66 m_budgetName = std::forward<BudgetNameT>(value);
67 }
68 template <typename BudgetNameT = Aws::String>
70 SetBudgetName(std::forward<BudgetNameT>(value));
71 return *this;
72 }
74 private:
75 Aws::Vector<Notification> m_notifications;
76
77 Aws::String m_budgetName;
78 bool m_notificationsHasBeenSet = false;
79 bool m_budgetNameHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Budgets
84} // namespace Aws
AWS_BUDGETS_API BudgetNotificationsForAccount(Aws::Utils::Json::JsonView jsonValue)
BudgetNotificationsForAccount & AddNotifications(NotificationsT &&value)
const Aws::Vector< Notification > & GetNotifications() const
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BUDGETS_API BudgetNotificationsForAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
BudgetNotificationsForAccount & WithNotifications(NotificationsT &&value)
BudgetNotificationsForAccount & WithBudgetName(BudgetNameT &&value)
AWS_BUDGETS_API BudgetNotificationsForAccount()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue