AWS SDK for C++

AWS SDK for C++ Version 1.11.929

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
26 public:
27 AWS_DEADLINE_API CreateBudgetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateBudget"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetFarmId() const { return m_farmId; }
44 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
45 template <typename FarmIdT = Aws::String>
46 void SetFarmId(FarmIdT&& value) {
47 m_farmIdHasBeenSet = true;
48 m_farmId = std::forward<FarmIdT>(value);
49 }
50 template <typename FarmIdT = Aws::String>
51 CreateBudgetRequest& WithFarmId(FarmIdT&& value) {
52 SetFarmId(std::forward<FarmIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetDisplayName() const { return m_displayName; }
64 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
65 template <typename DisplayNameT = Aws::String>
66 void SetDisplayName(DisplayNameT&& value) {
67 m_displayNameHasBeenSet = true;
68 m_displayName = std::forward<DisplayNameT>(value);
69 }
70 template <typename DisplayNameT = Aws::String>
71 CreateBudgetRequest& WithDisplayName(DisplayNameT&& value) {
72 SetDisplayName(std::forward<DisplayNameT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
91 CreateBudgetRequest& WithDescription(DescriptionT&& value) {
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetClientToken() const { return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 template <typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) {
106 m_clientTokenHasBeenSet = true;
107 m_clientToken = std::forward<ClientTokenT>(value);
108 }
109 template <typename ClientTokenT = Aws::String>
110 CreateBudgetRequest& WithClientToken(ClientTokenT&& value) {
111 SetClientToken(std::forward<ClientTokenT>(value));
112 return *this;
113 }
115
117
120 inline const UsageTrackingResource& GetUsageTrackingResource() const { return m_usageTrackingResource; }
121 inline bool UsageTrackingResourceHasBeenSet() const { return m_usageTrackingResourceHasBeenSet; }
122 template <typename UsageTrackingResourceT = UsageTrackingResource>
123 void SetUsageTrackingResource(UsageTrackingResourceT&& value) {
124 m_usageTrackingResourceHasBeenSet = true;
125 m_usageTrackingResource = std::forward<UsageTrackingResourceT>(value);
126 }
127 template <typename UsageTrackingResourceT = UsageTrackingResource>
128 CreateBudgetRequest& WithUsageTrackingResource(UsageTrackingResourceT&& value) {
129 SetUsageTrackingResource(std::forward<UsageTrackingResourceT>(value));
130 return *this;
131 }
133
135
138 inline double GetApproximateDollarLimit() const { return m_approximateDollarLimit; }
139 inline bool ApproximateDollarLimitHasBeenSet() const { return m_approximateDollarLimitHasBeenSet; }
140 inline void SetApproximateDollarLimit(double value) {
141 m_approximateDollarLimitHasBeenSet = true;
142 m_approximateDollarLimit = value;
143 }
146 return *this;
147 }
149
151
154 inline const Aws::Vector<BudgetActionToAdd>& GetActions() const { return m_actions; }
155 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
156 template <typename ActionsT = Aws::Vector<BudgetActionToAdd>>
157 void SetActions(ActionsT&& value) {
158 m_actionsHasBeenSet = true;
159 m_actions = std::forward<ActionsT>(value);
160 }
161 template <typename ActionsT = Aws::Vector<BudgetActionToAdd>>
162 CreateBudgetRequest& WithActions(ActionsT&& value) {
163 SetActions(std::forward<ActionsT>(value));
164 return *this;
165 }
166 template <typename ActionsT = BudgetActionToAdd>
167 CreateBudgetRequest& AddActions(ActionsT&& value) {
168 m_actionsHasBeenSet = true;
169 m_actions.emplace_back(std::forward<ActionsT>(value));
170 return *this;
171 }
173
175
178 inline const BudgetSchedule& GetSchedule() const { return m_schedule; }
179 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
180 template <typename ScheduleT = BudgetSchedule>
181 void SetSchedule(ScheduleT&& value) {
182 m_scheduleHasBeenSet = true;
183 m_schedule = std::forward<ScheduleT>(value);
184 }
185 template <typename ScheduleT = BudgetSchedule>
186 CreateBudgetRequest& WithSchedule(ScheduleT&& value) {
187 SetSchedule(std::forward<ScheduleT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
200 void SetTags(TagsT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags = std::forward<TagsT>(value);
203 }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 SetTags(std::forward<TagsT>(value));
207 return *this;
208 }
209 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
210 CreateBudgetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
211 m_tagsHasBeenSet = true;
212 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_farmId;
218
219 Aws::String m_displayName;
220
221 Aws::String m_description;
222
224
225 UsageTrackingResource m_usageTrackingResource;
226
227 double m_approximateDollarLimit{0.0};
228
230
231 BudgetSchedule m_schedule;
232
234 bool m_farmIdHasBeenSet = false;
235 bool m_displayNameHasBeenSet = false;
236 bool m_descriptionHasBeenSet = false;
237 bool m_clientTokenHasBeenSet = true;
238 bool m_usageTrackingResourceHasBeenSet = false;
239 bool m_approximateDollarLimitHasBeenSet = false;
240 bool m_actionsHasBeenSet = false;
241 bool m_scheduleHasBeenSet = false;
242 bool m_tagsHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace deadline
247} // 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