AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
CreateBudgetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/deadline/DeadlineRequest.h>
12#include <aws/deadline/Deadline_EXPORTS.h>
13#include <aws/deadline/model/BudgetActionToAdd.h>
14#include <aws/deadline/model/BudgetSchedule.h>
15#include <aws/deadline/model/UsageTrackingResource.h>
16
17#include <utility>
18
19namespace Aws {
20namespace deadline {
21namespace Model {
22
31 public:
32 AWS_DEADLINE_API CreateBudgetRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateBudget"; }
39
40 AWS_DEADLINE_API Aws::String SerializePayload() const override;
41
43
45
48 inline const Aws::String& GetFarmId() const { return m_farmId; }
49 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
50 template <typename FarmIdT = Aws::String>
51 void SetFarmId(FarmIdT&& value) {
52 m_farmIdHasBeenSet = true;
53 m_farmId = std::forward<FarmIdT>(value);
54 }
55 template <typename FarmIdT = Aws::String>
56 CreateBudgetRequest& WithFarmId(FarmIdT&& value) {
57 SetFarmId(std::forward<FarmIdT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::String& GetDisplayName() const { return m_displayName; }
69 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
70 template <typename DisplayNameT = Aws::String>
71 void SetDisplayName(DisplayNameT&& value) {
72 m_displayNameHasBeenSet = true;
73 m_displayName = std::forward<DisplayNameT>(value);
74 }
75 template <typename DisplayNameT = Aws::String>
76 CreateBudgetRequest& WithDisplayName(DisplayNameT&& value) {
77 SetDisplayName(std::forward<DisplayNameT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 CreateBudgetRequest& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetClientToken() const { return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 template <typename ClientTokenT = Aws::String>
110 void SetClientToken(ClientTokenT&& value) {
111 m_clientTokenHasBeenSet = true;
112 m_clientToken = std::forward<ClientTokenT>(value);
113 }
114 template <typename ClientTokenT = Aws::String>
115 CreateBudgetRequest& WithClientToken(ClientTokenT&& value) {
116 SetClientToken(std::forward<ClientTokenT>(value));
117 return *this;
118 }
120
122
125 inline const UsageTrackingResource& GetUsageTrackingResource() const { return m_usageTrackingResource; }
126 inline bool UsageTrackingResourceHasBeenSet() const { return m_usageTrackingResourceHasBeenSet; }
127 template <typename UsageTrackingResourceT = UsageTrackingResource>
128 void SetUsageTrackingResource(UsageTrackingResourceT&& value) {
129 m_usageTrackingResourceHasBeenSet = true;
130 m_usageTrackingResource = std::forward<UsageTrackingResourceT>(value);
131 }
132 template <typename UsageTrackingResourceT = UsageTrackingResource>
133 CreateBudgetRequest& WithUsageTrackingResource(UsageTrackingResourceT&& value) {
134 SetUsageTrackingResource(std::forward<UsageTrackingResourceT>(value));
135 return *this;
136 }
138
140
143 inline double GetApproximateDollarLimit() const { return m_approximateDollarLimit; }
144 inline bool ApproximateDollarLimitHasBeenSet() const { return m_approximateDollarLimitHasBeenSet; }
145 inline void SetApproximateDollarLimit(double value) {
146 m_approximateDollarLimitHasBeenSet = true;
147 m_approximateDollarLimit = value;
148 }
151 return *this;
152 }
154
156
159 inline const Aws::Vector<BudgetActionToAdd>& GetActions() const { return m_actions; }
160 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
161 template <typename ActionsT = Aws::Vector<BudgetActionToAdd>>
162 void SetActions(ActionsT&& value) {
163 m_actionsHasBeenSet = true;
164 m_actions = std::forward<ActionsT>(value);
165 }
166 template <typename ActionsT = Aws::Vector<BudgetActionToAdd>>
167 CreateBudgetRequest& WithActions(ActionsT&& value) {
168 SetActions(std::forward<ActionsT>(value));
169 return *this;
170 }
171 template <typename ActionsT = BudgetActionToAdd>
172 CreateBudgetRequest& AddActions(ActionsT&& value) {
173 m_actionsHasBeenSet = true;
174 m_actions.emplace_back(std::forward<ActionsT>(value));
175 return *this;
176 }
178
180
183 inline const BudgetSchedule& GetSchedule() const { return m_schedule; }
184 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
185 template <typename ScheduleT = BudgetSchedule>
186 void SetSchedule(ScheduleT&& value) {
187 m_scheduleHasBeenSet = true;
188 m_schedule = std::forward<ScheduleT>(value);
189 }
190 template <typename ScheduleT = BudgetSchedule>
191 CreateBudgetRequest& WithSchedule(ScheduleT&& value) {
192 SetSchedule(std::forward<ScheduleT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 CreateBudgetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_farmId;
223
224 Aws::String m_displayName;
225
226 Aws::String m_description;
227
229
230 UsageTrackingResource m_usageTrackingResource;
231
232 double m_approximateDollarLimit{0.0};
233
235
236 BudgetSchedule m_schedule;
237
239 bool m_farmIdHasBeenSet = false;
240 bool m_displayNameHasBeenSet = false;
241 bool m_descriptionHasBeenSet = false;
242 bool m_clientTokenHasBeenSet = true;
243 bool m_usageTrackingResourceHasBeenSet = false;
244 bool m_approximateDollarLimitHasBeenSet = false;
245 bool m_actionsHasBeenSet = false;
246 bool m_scheduleHasBeenSet = false;
247 bool m_tagsHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace deadline
252} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateBudgetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateBudgetRequest & WithSchedule(ScheduleT &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEADLINE_API CreateBudgetRequest()=default
CreateBudgetRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
void SetUsageTrackingResource(UsageTrackingResourceT &&value)
CreateBudgetRequest & WithTags(TagsT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateBudgetRequest & WithApproximateDollarLimit(double value)
CreateBudgetRequest & WithClientToken(ClientTokenT &&value)
CreateBudgetRequest & WithActions(ActionsT &&value)
CreateBudgetRequest & AddActions(ActionsT &&value)
CreateBudgetRequest & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const BudgetSchedule & GetSchedule() const
const UsageTrackingResource & GetUsageTrackingResource() const
CreateBudgetRequest & WithFarmId(FarmIdT &&value)
CreateBudgetRequest & WithUsageTrackingResource(UsageTrackingResourceT &&value)
const Aws::Vector< BudgetActionToAdd > & GetActions() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector