AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
52 CreateBudgetRequest& WithClientToken(ClientTokenT&& value) {
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFarmId() const { return m_farmId; }
63 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
64 template <typename FarmIdT = Aws::String>
65 void SetFarmId(FarmIdT&& value) {
66 m_farmIdHasBeenSet = true;
67 m_farmId = std::forward<FarmIdT>(value);
68 }
69 template <typename FarmIdT = Aws::String>
70 CreateBudgetRequest& WithFarmId(FarmIdT&& value) {
71 SetFarmId(std::forward<FarmIdT>(value));
72 return *this;
73 }
75
77
80 inline const UsageTrackingResource& GetUsageTrackingResource() const { return m_usageTrackingResource; }
81 inline bool UsageTrackingResourceHasBeenSet() const { return m_usageTrackingResourceHasBeenSet; }
82 template <typename UsageTrackingResourceT = UsageTrackingResource>
83 void SetUsageTrackingResource(UsageTrackingResourceT&& value) {
84 m_usageTrackingResourceHasBeenSet = true;
85 m_usageTrackingResource = std::forward<UsageTrackingResourceT>(value);
86 }
87 template <typename UsageTrackingResourceT = UsageTrackingResource>
88 CreateBudgetRequest& WithUsageTrackingResource(UsageTrackingResourceT&& value) {
89 SetUsageTrackingResource(std::forward<UsageTrackingResourceT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetDisplayName() const { return m_displayName; }
101 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
102 template <typename DisplayNameT = Aws::String>
103 void SetDisplayName(DisplayNameT&& value) {
104 m_displayNameHasBeenSet = true;
105 m_displayName = std::forward<DisplayNameT>(value);
106 }
107 template <typename DisplayNameT = Aws::String>
108 CreateBudgetRequest& WithDisplayName(DisplayNameT&& value) {
109 SetDisplayName(std::forward<DisplayNameT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 CreateBudgetRequest& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(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:
218
219 Aws::String m_farmId;
220
221 UsageTrackingResource m_usageTrackingResource;
222
223 Aws::String m_displayName;
224
225 Aws::String m_description;
226
227 double m_approximateDollarLimit{0.0};
228
230
231 BudgetSchedule m_schedule;
232
234 bool m_clientTokenHasBeenSet = true;
235 bool m_farmIdHasBeenSet = false;
236 bool m_usageTrackingResourceHasBeenSet = false;
237 bool m_displayNameHasBeenSet = false;
238 bool m_descriptionHasBeenSet = 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