AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateBudgetRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/model/BudgetStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/deadline/model/BudgetSchedule.h>
13#include <aws/deadline/model/BudgetActionToAdd.h>
14#include <aws/deadline/model/BudgetActionToRemove.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace deadline
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DEADLINE_API UpdateBudgetRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateBudget"; }
37
38 AWS_DEADLINE_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline UpdateBudgetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline UpdateBudgetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline UpdateBudgetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
62 inline const Aws::String& GetFarmId() const{ return m_farmId; }
63 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
64 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
65 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
66 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
67 inline UpdateBudgetRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
68 inline UpdateBudgetRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
69 inline UpdateBudgetRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
71
73
76 inline const Aws::String& GetBudgetId() const{ return m_budgetId; }
77 inline bool BudgetIdHasBeenSet() const { return m_budgetIdHasBeenSet; }
78 inline void SetBudgetId(const Aws::String& value) { m_budgetIdHasBeenSet = true; m_budgetId = value; }
79 inline void SetBudgetId(Aws::String&& value) { m_budgetIdHasBeenSet = true; m_budgetId = std::move(value); }
80 inline void SetBudgetId(const char* value) { m_budgetIdHasBeenSet = true; m_budgetId.assign(value); }
81 inline UpdateBudgetRequest& WithBudgetId(const Aws::String& value) { SetBudgetId(value); return *this;}
82 inline UpdateBudgetRequest& WithBudgetId(Aws::String&& value) { SetBudgetId(std::move(value)); return *this;}
83 inline UpdateBudgetRequest& WithBudgetId(const char* value) { SetBudgetId(value); return *this;}
85
87
93 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
94 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
95 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
96 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
97 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
98 inline UpdateBudgetRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
99 inline UpdateBudgetRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
100 inline UpdateBudgetRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
102
104
110 inline const Aws::String& GetDescription() const{ return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
113 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
114 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
115 inline UpdateBudgetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
116 inline UpdateBudgetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
117 inline UpdateBudgetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119
121
127 inline const BudgetStatus& GetStatus() const{ return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(const BudgetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
130 inline void SetStatus(BudgetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
131 inline UpdateBudgetRequest& WithStatus(const BudgetStatus& value) { SetStatus(value); return *this;}
132 inline UpdateBudgetRequest& WithStatus(BudgetStatus&& value) { SetStatus(std::move(value)); return *this;}
134
136
139 inline double GetApproximateDollarLimit() const{ return m_approximateDollarLimit; }
140 inline bool ApproximateDollarLimitHasBeenSet() const { return m_approximateDollarLimitHasBeenSet; }
141 inline void SetApproximateDollarLimit(double value) { m_approximateDollarLimitHasBeenSet = true; m_approximateDollarLimit = value; }
142 inline UpdateBudgetRequest& WithApproximateDollarLimit(double value) { SetApproximateDollarLimit(value); return *this;}
144
146
150 inline const Aws::Vector<BudgetActionToAdd>& GetActionsToAdd() const{ return m_actionsToAdd; }
151 inline bool ActionsToAddHasBeenSet() const { return m_actionsToAddHasBeenSet; }
152 inline void SetActionsToAdd(const Aws::Vector<BudgetActionToAdd>& value) { m_actionsToAddHasBeenSet = true; m_actionsToAdd = value; }
153 inline void SetActionsToAdd(Aws::Vector<BudgetActionToAdd>&& value) { m_actionsToAddHasBeenSet = true; m_actionsToAdd = std::move(value); }
155 inline UpdateBudgetRequest& WithActionsToAdd(Aws::Vector<BudgetActionToAdd>&& value) { SetActionsToAdd(std::move(value)); return *this;}
156 inline UpdateBudgetRequest& AddActionsToAdd(const BudgetActionToAdd& value) { m_actionsToAddHasBeenSet = true; m_actionsToAdd.push_back(value); return *this; }
157 inline UpdateBudgetRequest& AddActionsToAdd(BudgetActionToAdd&& value) { m_actionsToAddHasBeenSet = true; m_actionsToAdd.push_back(std::move(value)); return *this; }
159
161
164 inline const Aws::Vector<BudgetActionToRemove>& GetActionsToRemove() const{ return m_actionsToRemove; }
165 inline bool ActionsToRemoveHasBeenSet() const { return m_actionsToRemoveHasBeenSet; }
166 inline void SetActionsToRemove(const Aws::Vector<BudgetActionToRemove>& value) { m_actionsToRemoveHasBeenSet = true; m_actionsToRemove = value; }
167 inline void SetActionsToRemove(Aws::Vector<BudgetActionToRemove>&& value) { m_actionsToRemoveHasBeenSet = true; m_actionsToRemove = std::move(value); }
170 inline UpdateBudgetRequest& AddActionsToRemove(const BudgetActionToRemove& value) { m_actionsToRemoveHasBeenSet = true; m_actionsToRemove.push_back(value); return *this; }
171 inline UpdateBudgetRequest& AddActionsToRemove(BudgetActionToRemove&& value) { m_actionsToRemoveHasBeenSet = true; m_actionsToRemove.push_back(std::move(value)); return *this; }
173
175
178 inline const BudgetSchedule& GetSchedule() const{ return m_schedule; }
179 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
180 inline void SetSchedule(const BudgetSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
181 inline void SetSchedule(BudgetSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
182 inline UpdateBudgetRequest& WithSchedule(const BudgetSchedule& value) { SetSchedule(value); return *this;}
183 inline UpdateBudgetRequest& WithSchedule(BudgetSchedule&& value) { SetSchedule(std::move(value)); return *this;}
185 private:
186
187 Aws::String m_clientToken;
188 bool m_clientTokenHasBeenSet = false;
189
190 Aws::String m_farmId;
191 bool m_farmIdHasBeenSet = false;
192
193 Aws::String m_budgetId;
194 bool m_budgetIdHasBeenSet = false;
195
196 Aws::String m_displayName;
197 bool m_displayNameHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 BudgetStatus m_status;
203 bool m_statusHasBeenSet = false;
204
205 double m_approximateDollarLimit;
206 bool m_approximateDollarLimitHasBeenSet = false;
207
208 Aws::Vector<BudgetActionToAdd> m_actionsToAdd;
209 bool m_actionsToAddHasBeenSet = false;
210
211 Aws::Vector<BudgetActionToRemove> m_actionsToRemove;
212 bool m_actionsToRemoveHasBeenSet = false;
213
214 BudgetSchedule m_schedule;
215 bool m_scheduleHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace deadline
220} // namespace Aws
void SetBudgetId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateBudgetRequest & WithDescription(Aws::String &&value)
UpdateBudgetRequest & AddActionsToRemove(const BudgetActionToRemove &value)
UpdateBudgetRequest & WithFarmId(const char *value)
UpdateBudgetRequest & AddActionsToAdd(const BudgetActionToAdd &value)
UpdateBudgetRequest & WithDescription(const char *value)
UpdateBudgetRequest & WithApproximateDollarLimit(double value)
UpdateBudgetRequest & WithFarmId(const Aws::String &value)
UpdateBudgetRequest & WithStatus(BudgetStatus &&value)
UpdateBudgetRequest & WithClientToken(Aws::String &&value)
UpdateBudgetRequest & WithFarmId(Aws::String &&value)
UpdateBudgetRequest & WithDescription(const Aws::String &value)
UpdateBudgetRequest & WithDisplayName(const char *value)
void SetActionsToAdd(const Aws::Vector< BudgetActionToAdd > &value)
void SetActionsToRemove(const Aws::Vector< BudgetActionToRemove > &value)
void SetDisplayName(const Aws::String &value)
UpdateBudgetRequest & WithActionsToAdd(const Aws::Vector< BudgetActionToAdd > &value)
void SetDescription(const Aws::String &value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateBudgetRequest & WithStatus(const BudgetStatus &value)
UpdateBudgetRequest & WithSchedule(const BudgetSchedule &value)
UpdateBudgetRequest & WithClientToken(const Aws::String &value)
UpdateBudgetRequest & WithActionsToRemove(Aws::Vector< BudgetActionToRemove > &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const BudgetSchedule & GetSchedule() const
UpdateBudgetRequest & WithActionsToRemove(const Aws::Vector< BudgetActionToRemove > &value)
UpdateBudgetRequest & WithBudgetId(const Aws::String &value)
UpdateBudgetRequest & WithDisplayName(Aws::String &&value)
UpdateBudgetRequest & WithDisplayName(const Aws::String &value)
const Aws::Vector< BudgetActionToAdd > & GetActionsToAdd() const
void SetSchedule(const BudgetSchedule &value)
UpdateBudgetRequest & WithSchedule(BudgetSchedule &&value)
UpdateBudgetRequest & WithClientToken(const char *value)
void SetActionsToAdd(Aws::Vector< BudgetActionToAdd > &&value)
void SetActionsToRemove(Aws::Vector< BudgetActionToRemove > &&value)
const Aws::Vector< BudgetActionToRemove > & GetActionsToRemove() const
void SetStatus(const BudgetStatus &value)
UpdateBudgetRequest & WithBudgetId(Aws::String &&value)
void SetFarmId(const Aws::String &value)
UpdateBudgetRequest & AddActionsToAdd(BudgetActionToAdd &&value)
UpdateBudgetRequest & WithBudgetId(const char *value)
UpdateBudgetRequest & AddActionsToRemove(BudgetActionToRemove &&value)
void SetClientToken(const Aws::String &value)
UpdateBudgetRequest & WithActionsToAdd(Aws::Vector< BudgetActionToAdd > &&value)
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