AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BudgetNotificationsForAccount.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/budgets/model/Notification.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Budgets
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BUDGETS_API BudgetNotificationsForAccount() = default;
40 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::Vector<Notification>& GetNotifications() const { return m_notifications; }
46 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
47 template<typename NotificationsT = Aws::Vector<Notification>>
48 void SetNotifications(NotificationsT&& value) { m_notificationsHasBeenSet = true; m_notifications = std::forward<NotificationsT>(value); }
49 template<typename NotificationsT = Aws::Vector<Notification>>
50 BudgetNotificationsForAccount& WithNotifications(NotificationsT&& value) { SetNotifications(std::forward<NotificationsT>(value)); return *this;}
51 template<typename NotificationsT = Notification>
52 BudgetNotificationsForAccount& AddNotifications(NotificationsT&& value) { m_notificationsHasBeenSet = true; m_notifications.emplace_back(std::forward<NotificationsT>(value)); return *this; }
54
56
57 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
58 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
59 template<typename BudgetNameT = Aws::String>
60 void SetBudgetName(BudgetNameT&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::forward<BudgetNameT>(value); }
61 template<typename BudgetNameT = Aws::String>
62 BudgetNotificationsForAccount& WithBudgetName(BudgetNameT&& value) { SetBudgetName(std::forward<BudgetNameT>(value)); return *this;}
64 private:
65
66 Aws::Vector<Notification> m_notifications;
67 bool m_notificationsHasBeenSet = false;
68
69 Aws::String m_budgetName;
70 bool m_budgetNameHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Budgets
75} // 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