AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateBudgetRequest.h
1
6#pragma once
7#include <aws/budgets/BudgetsRequest.h>
8#include <aws/budgets/Budgets_EXPORTS.h>
9#include <aws/budgets/model/Budget.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Budgets {
16namespace Model {
17
24 public:
25 AWS_BUDGETS_API UpdateBudgetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateBudget"; }
32
33 AWS_BUDGETS_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
50 UpdateBudgetRequest& WithAccountId(AccountIdT&& value) {
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Budget& GetNewBudget() const { return m_newBudget; }
61 inline bool NewBudgetHasBeenSet() const { return m_newBudgetHasBeenSet; }
62 template <typename NewBudgetT = Budget>
63 void SetNewBudget(NewBudgetT&& value) {
64 m_newBudgetHasBeenSet = true;
65 m_newBudget = std::forward<NewBudgetT>(value);
66 }
67 template <typename NewBudgetT = Budget>
68 UpdateBudgetRequest& WithNewBudget(NewBudgetT&& value) {
69 SetNewBudget(std::forward<NewBudgetT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_accountId;
75
76 Budget m_newBudget;
77 bool m_accountIdHasBeenSet = false;
78 bool m_newBudgetHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Budgets
83} // namespace Aws
AWS_BUDGETS_API UpdateBudgetRequest()=default
AWS_BUDGETS_API Aws::String SerializePayload() const override
UpdateBudgetRequest & WithNewBudget(NewBudgetT &&value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateBudgetRequest & WithAccountId(AccountIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String