AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline CreateBudgetRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline CreateBudgetRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline CreateBudgetRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Budget& GetBudget() const{ return m_budget; }
63 inline bool BudgetHasBeenSet() const { return m_budgetHasBeenSet; }
64 inline void SetBudget(const Budget& value) { m_budgetHasBeenSet = true; m_budget = value; }
65 inline void SetBudget(Budget&& value) { m_budgetHasBeenSet = true; m_budget = std::move(value); }
66 inline CreateBudgetRequest& WithBudget(const Budget& value) { SetBudget(value); return *this;}
67 inline CreateBudgetRequest& WithBudget(Budget&& value) { SetBudget(std::move(value)); return *this;}
69
71
78 inline const Aws::Vector<NotificationWithSubscribers>& GetNotificationsWithSubscribers() const{ return m_notificationsWithSubscribers; }
79 inline bool NotificationsWithSubscribersHasBeenSet() const { return m_notificationsWithSubscribersHasBeenSet; }
80 inline void SetNotificationsWithSubscribers(const Aws::Vector<NotificationWithSubscribers>& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers = value; }
81 inline void SetNotificationsWithSubscribers(Aws::Vector<NotificationWithSubscribers>&& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers = std::move(value); }
84 inline CreateBudgetRequest& AddNotificationsWithSubscribers(const NotificationWithSubscribers& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers.push_back(value); return *this; }
85 inline CreateBudgetRequest& AddNotificationsWithSubscribers(NotificationWithSubscribers&& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers.push_back(std::move(value)); return *this; }
87
89
93 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
94 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
95 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
96 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
98 inline CreateBudgetRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
99 inline CreateBudgetRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
100 inline CreateBudgetRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_accountId;
105 bool m_accountIdHasBeenSet = false;
106
107 Budget m_budget;
108 bool m_budgetHasBeenSet = false;
109
110 Aws::Vector<NotificationWithSubscribers> m_notificationsWithSubscribers;
111 bool m_notificationsWithSubscribersHasBeenSet = false;
112
113 Aws::Vector<ResourceTag> m_resourceTags;
114 bool m_resourceTagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Budgets
119} // namespace Aws
CreateBudgetRequest & WithNotificationsWithSubscribers(const Aws::Vector< NotificationWithSubscribers > &value)
CreateBudgetRequest & AddNotificationsWithSubscribers(NotificationWithSubscribers &&value)
CreateBudgetRequest & AddResourceTags(ResourceTag &&value)
CreateBudgetRequest & AddResourceTags(const ResourceTag &value)
CreateBudgetRequest & WithAccountId(Aws::String &&value)
void SetAccountId(const Aws::String &value)
CreateBudgetRequest & WithBudget(const Budget &value)
CreateBudgetRequest & WithAccountId(const char *value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
void SetNotificationsWithSubscribers(Aws::Vector< NotificationWithSubscribers > &&value)
const Aws::Vector< NotificationWithSubscribers > & GetNotificationsWithSubscribers() const
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
CreateBudgetRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
CreateBudgetRequest & WithBudget(Budget &&value)
CreateBudgetRequest & AddNotificationsWithSubscribers(const NotificationWithSubscribers &value)
void SetNotificationsWithSubscribers(const Aws::Vector< NotificationWithSubscribers > &value)
CreateBudgetRequest & WithAccountId(const Aws::String &value)
CreateBudgetRequest & WithNotificationsWithSubscribers(Aws::Vector< NotificationWithSubscribers > &&value)
virtual const char * GetServiceRequestName() const override
CreateBudgetRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ResourceTag > & GetResourceTags() const
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