AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateBudgetRequest.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/BudgetsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/budgets/model/Budget.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/budgets/model/NotificationWithSubscribers.h>
13#include <aws/budgets/model/ResourceTag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Budgets
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_BUDGETS_API CreateBudgetRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateBudget"; }
38
39 AWS_BUDGETS_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 CreateBudgetRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
55
57
60 inline const Budget& GetBudget() const { return m_budget; }
61 inline bool BudgetHasBeenSet() const { return m_budgetHasBeenSet; }
62 template<typename BudgetT = Budget>
63 void SetBudget(BudgetT&& value) { m_budgetHasBeenSet = true; m_budget = std::forward<BudgetT>(value); }
64 template<typename BudgetT = Budget>
65 CreateBudgetRequest& WithBudget(BudgetT&& value) { SetBudget(std::forward<BudgetT>(value)); return *this;}
67
69
76 inline const Aws::Vector<NotificationWithSubscribers>& GetNotificationsWithSubscribers() const { return m_notificationsWithSubscribers; }
77 inline bool NotificationsWithSubscribersHasBeenSet() const { return m_notificationsWithSubscribersHasBeenSet; }
78 template<typename NotificationsWithSubscribersT = Aws::Vector<NotificationWithSubscribers>>
79 void SetNotificationsWithSubscribers(NotificationsWithSubscribersT&& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers = std::forward<NotificationsWithSubscribersT>(value); }
80 template<typename NotificationsWithSubscribersT = Aws::Vector<NotificationWithSubscribers>>
81 CreateBudgetRequest& WithNotificationsWithSubscribers(NotificationsWithSubscribersT&& value) { SetNotificationsWithSubscribers(std::forward<NotificationsWithSubscribersT>(value)); return *this;}
82 template<typename NotificationsWithSubscribersT = NotificationWithSubscribers>
83 CreateBudgetRequest& AddNotificationsWithSubscribers(NotificationsWithSubscribersT&& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers.emplace_back(std::forward<NotificationsWithSubscribersT>(value)); return *this; }
85
87
91 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
92 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
93 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
94 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
95 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
96 CreateBudgetRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
97 template<typename ResourceTagsT = ResourceTag>
98 CreateBudgetRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
100 private:
101
102 Aws::String m_accountId;
103 bool m_accountIdHasBeenSet = false;
104
105 Budget m_budget;
106 bool m_budgetHasBeenSet = false;
107
108 Aws::Vector<NotificationWithSubscribers> m_notificationsWithSubscribers;
109 bool m_notificationsWithSubscribersHasBeenSet = false;
110
111 Aws::Vector<ResourceTag> m_resourceTags;
112 bool m_resourceTagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Budgets
117} // namespace Aws
const Aws::Vector< NotificationWithSubscribers > & GetNotificationsWithSubscribers() const
void SetResourceTags(ResourceTagsT &&value)
CreateBudgetRequest & AddNotificationsWithSubscribers(NotificationsWithSubscribersT &&value)
CreateBudgetRequest & WithAccountId(AccountIdT &&value)
CreateBudgetRequest & WithResourceTags(ResourceTagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateBudgetRequest & WithNotificationsWithSubscribers(NotificationsWithSubscribersT &&value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBudgetRequest & WithBudget(BudgetT &&value)
void SetNotificationsWithSubscribers(NotificationsWithSubscribersT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateBudgetRequest & AddResourceTags(ResourceTagsT &&value)
AWS_BUDGETS_API CreateBudgetRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector