AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBudgetRequest.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/UsageTrackingResource.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 <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace deadline
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DEADLINE_API CreateBudgetRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateBudget"; }
36
37 AWS_DEADLINE_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateBudgetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreateBudgetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateBudgetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
61 inline const Aws::String& GetFarmId() const{ return m_farmId; }
62 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
63 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
64 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
65 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
66 inline CreateBudgetRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
67 inline CreateBudgetRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
68 inline CreateBudgetRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
70
72
75 inline const UsageTrackingResource& GetUsageTrackingResource() const{ return m_usageTrackingResource; }
76 inline bool UsageTrackingResourceHasBeenSet() const { return m_usageTrackingResourceHasBeenSet; }
77 inline void SetUsageTrackingResource(const UsageTrackingResource& value) { m_usageTrackingResourceHasBeenSet = true; m_usageTrackingResource = value; }
78 inline void SetUsageTrackingResource(UsageTrackingResource&& value) { m_usageTrackingResourceHasBeenSet = true; m_usageTrackingResource = std::move(value); }
82
84
89 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
90 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
91 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
92 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
93 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
94 inline CreateBudgetRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
95 inline CreateBudgetRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
96 inline CreateBudgetRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
98
100
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline CreateBudgetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline CreateBudgetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline CreateBudgetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline double GetApproximateDollarLimit() const{ return m_approximateDollarLimit; }
120 inline bool ApproximateDollarLimitHasBeenSet() const { return m_approximateDollarLimitHasBeenSet; }
121 inline void SetApproximateDollarLimit(double value) { m_approximateDollarLimitHasBeenSet = true; m_approximateDollarLimit = value; }
122 inline CreateBudgetRequest& WithApproximateDollarLimit(double value) { SetApproximateDollarLimit(value); return *this;}
124
126
129 inline const Aws::Vector<BudgetActionToAdd>& GetActions() const{ return m_actions; }
130 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
131 inline void SetActions(const Aws::Vector<BudgetActionToAdd>& value) { m_actionsHasBeenSet = true; m_actions = value; }
132 inline void SetActions(Aws::Vector<BudgetActionToAdd>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
133 inline CreateBudgetRequest& WithActions(const Aws::Vector<BudgetActionToAdd>& value) { SetActions(value); return *this;}
134 inline CreateBudgetRequest& WithActions(Aws::Vector<BudgetActionToAdd>&& value) { SetActions(std::move(value)); return *this;}
135 inline CreateBudgetRequest& AddActions(const BudgetActionToAdd& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
136 inline CreateBudgetRequest& AddActions(BudgetActionToAdd&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
138
140
143 inline const BudgetSchedule& GetSchedule() const{ return m_schedule; }
144 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
145 inline void SetSchedule(const BudgetSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
146 inline void SetSchedule(BudgetSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
147 inline CreateBudgetRequest& WithSchedule(const BudgetSchedule& value) { SetSchedule(value); return *this;}
148 inline CreateBudgetRequest& WithSchedule(BudgetSchedule&& value) { SetSchedule(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_clientToken;
153 bool m_clientTokenHasBeenSet = false;
154
155 Aws::String m_farmId;
156 bool m_farmIdHasBeenSet = false;
157
158 UsageTrackingResource m_usageTrackingResource;
159 bool m_usageTrackingResourceHasBeenSet = false;
160
161 Aws::String m_displayName;
162 bool m_displayNameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 double m_approximateDollarLimit;
168 bool m_approximateDollarLimitHasBeenSet = false;
169
171 bool m_actionsHasBeenSet = false;
172
173 BudgetSchedule m_schedule;
174 bool m_scheduleHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace deadline
179} // namespace Aws
CreateBudgetRequest & WithActions(const Aws::Vector< BudgetActionToAdd > &value)
void SetSchedule(const BudgetSchedule &value)
CreateBudgetRequest & AddActions(BudgetActionToAdd &&value)
void SetDescription(const Aws::String &value)
CreateBudgetRequest & WithDisplayName(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
CreateBudgetRequest & WithClientToken(const Aws::String &value)
void SetFarmId(const Aws::String &value)
CreateBudgetRequest & WithSchedule(const BudgetSchedule &value)
CreateBudgetRequest & WithDisplayName(const char *value)
CreateBudgetRequest & WithUsageTrackingResource(UsageTrackingResource &&value)
CreateBudgetRequest & WithActions(Aws::Vector< BudgetActionToAdd > &&value)
void SetUsageTrackingResource(const UsageTrackingResource &value)
CreateBudgetRequest & WithFarmId(Aws::String &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBudgetRequest & WithFarmId(const char *value)
CreateBudgetRequest & WithSchedule(BudgetSchedule &&value)
virtual const char * GetServiceRequestName() const override
AWS_DEADLINE_API Aws::String SerializePayload() const override
void SetActions(const Aws::Vector< BudgetActionToAdd > &value)
CreateBudgetRequest & WithApproximateDollarLimit(double value)
CreateBudgetRequest & WithClientToken(const char *value)
CreateBudgetRequest & WithDescription(const Aws::String &value)
CreateBudgetRequest & WithUsageTrackingResource(const UsageTrackingResource &value)
void SetActions(Aws::Vector< BudgetActionToAdd > &&value)
CreateBudgetRequest & WithDescription(const char *value)
void SetUsageTrackingResource(UsageTrackingResource &&value)
CreateBudgetRequest & WithDescription(Aws::String &&value)
const BudgetSchedule & GetSchedule() const
const UsageTrackingResource & GetUsageTrackingResource() const
CreateBudgetRequest & AddActions(const BudgetActionToAdd &value)
CreateBudgetRequest & WithFarmId(const Aws::String &value)
void SetClientToken(const Aws::String &value)
const Aws::Vector< BudgetActionToAdd > & GetActions() const
CreateBudgetRequest & WithDisplayName(const Aws::String &value)
CreateBudgetRequest & WithClientToken(Aws::String &&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