AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Statistics.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/Stats.h>
11#include <aws/deadline/model/UsageType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline {
23namespace Model {
24
31 public:
32 AWS_DEADLINE_API Statistics() = default;
33 AWS_DEADLINE_API Statistics(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEADLINE_API Statistics& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetQueueId() const { return m_queueId; }
42 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
43 template <typename QueueIdT = Aws::String>
44 void SetQueueId(QueueIdT&& value) {
45 m_queueIdHasBeenSet = true;
46 m_queueId = std::forward<QueueIdT>(value);
47 }
48 template <typename QueueIdT = Aws::String>
49 Statistics& WithQueueId(QueueIdT&& value) {
50 SetQueueId(std::forward<QueueIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFleetId() const { return m_fleetId; }
60 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
61 template <typename FleetIdT = Aws::String>
62 void SetFleetId(FleetIdT&& value) {
63 m_fleetIdHasBeenSet = true;
64 m_fleetId = std::forward<FleetIdT>(value);
65 }
66 template <typename FleetIdT = Aws::String>
67 Statistics& WithFleetId(FleetIdT&& value) {
68 SetFleetId(std::forward<FleetIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetJobId() const { return m_jobId; }
78 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
79 template <typename JobIdT = Aws::String>
80 void SetJobId(JobIdT&& value) {
81 m_jobIdHasBeenSet = true;
82 m_jobId = std::forward<JobIdT>(value);
83 }
84 template <typename JobIdT = Aws::String>
85 Statistics& WithJobId(JobIdT&& value) {
86 SetJobId(std::forward<JobIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetJobName() const { return m_jobName; }
96 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
97 template <typename JobNameT = Aws::String>
98 void SetJobName(JobNameT&& value) {
99 m_jobNameHasBeenSet = true;
100 m_jobName = std::forward<JobNameT>(value);
101 }
102 template <typename JobNameT = Aws::String>
103 Statistics& WithJobName(JobNameT&& value) {
104 SetJobName(std::forward<JobNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetUserId() const { return m_userId; }
114 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
115 template <typename UserIdT = Aws::String>
116 void SetUserId(UserIdT&& value) {
117 m_userIdHasBeenSet = true;
118 m_userId = std::forward<UserIdT>(value);
119 }
120 template <typename UserIdT = Aws::String>
121 Statistics& WithUserId(UserIdT&& value) {
122 SetUserId(std::forward<UserIdT>(value));
123 return *this;
124 }
126
128
131 inline UsageType GetUsageType() const { return m_usageType; }
132 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
133 inline void SetUsageType(UsageType value) {
134 m_usageTypeHasBeenSet = true;
135 m_usageType = value;
136 }
138 SetUsageType(value);
139 return *this;
140 }
142
144
147 inline const Aws::String& GetLicenseProduct() const { return m_licenseProduct; }
148 inline bool LicenseProductHasBeenSet() const { return m_licenseProductHasBeenSet; }
149 template <typename LicenseProductT = Aws::String>
150 void SetLicenseProduct(LicenseProductT&& value) {
151 m_licenseProductHasBeenSet = true;
152 m_licenseProduct = std::forward<LicenseProductT>(value);
153 }
154 template <typename LicenseProductT = Aws::String>
155 Statistics& WithLicenseProduct(LicenseProductT&& value) {
156 SetLicenseProduct(std::forward<LicenseProductT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
166 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
167 template <typename InstanceTypeT = Aws::String>
168 void SetInstanceType(InstanceTypeT&& value) {
169 m_instanceTypeHasBeenSet = true;
170 m_instanceType = std::forward<InstanceTypeT>(value);
171 }
172 template <typename InstanceTypeT = Aws::String>
173 Statistics& WithInstanceType(InstanceTypeT&& value) {
174 SetInstanceType(std::forward<InstanceTypeT>(value));
175 return *this;
176 }
178
180
183 inline int GetCount() const { return m_count; }
184 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
185 inline void SetCount(int value) {
186 m_countHasBeenSet = true;
187 m_count = value;
188 }
189 inline Statistics& WithCount(int value) {
190 SetCount(value);
191 return *this;
192 }
194
196
200 inline const Stats& GetCostInUsd() const { return m_costInUsd; }
201 inline bool CostInUsdHasBeenSet() const { return m_costInUsdHasBeenSet; }
202 template <typename CostInUsdT = Stats>
203 void SetCostInUsd(CostInUsdT&& value) {
204 m_costInUsdHasBeenSet = true;
205 m_costInUsd = std::forward<CostInUsdT>(value);
206 }
207 template <typename CostInUsdT = Stats>
208 Statistics& WithCostInUsd(CostInUsdT&& value) {
209 SetCostInUsd(std::forward<CostInUsdT>(value));
210 return *this;
211 }
213
215
218 inline const Stats& GetRuntimeInSeconds() const { return m_runtimeInSeconds; }
219 inline bool RuntimeInSecondsHasBeenSet() const { return m_runtimeInSecondsHasBeenSet; }
220 template <typename RuntimeInSecondsT = Stats>
221 void SetRuntimeInSeconds(RuntimeInSecondsT&& value) {
222 m_runtimeInSecondsHasBeenSet = true;
223 m_runtimeInSeconds = std::forward<RuntimeInSecondsT>(value);
224 }
225 template <typename RuntimeInSecondsT = Stats>
226 Statistics& WithRuntimeInSeconds(RuntimeInSecondsT&& value) {
227 SetRuntimeInSeconds(std::forward<RuntimeInSecondsT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Utils::DateTime& GetAggregationStartTime() const { return m_aggregationStartTime; }
237 inline bool AggregationStartTimeHasBeenSet() const { return m_aggregationStartTimeHasBeenSet; }
238 template <typename AggregationStartTimeT = Aws::Utils::DateTime>
239 void SetAggregationStartTime(AggregationStartTimeT&& value) {
240 m_aggregationStartTimeHasBeenSet = true;
241 m_aggregationStartTime = std::forward<AggregationStartTimeT>(value);
242 }
243 template <typename AggregationStartTimeT = Aws::Utils::DateTime>
244 Statistics& WithAggregationStartTime(AggregationStartTimeT&& value) {
245 SetAggregationStartTime(std::forward<AggregationStartTimeT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetAggregationEndTime() const { return m_aggregationEndTime; }
255 inline bool AggregationEndTimeHasBeenSet() const { return m_aggregationEndTimeHasBeenSet; }
256 template <typename AggregationEndTimeT = Aws::Utils::DateTime>
257 void SetAggregationEndTime(AggregationEndTimeT&& value) {
258 m_aggregationEndTimeHasBeenSet = true;
259 m_aggregationEndTime = std::forward<AggregationEndTimeT>(value);
260 }
261 template <typename AggregationEndTimeT = Aws::Utils::DateTime>
262 Statistics& WithAggregationEndTime(AggregationEndTimeT&& value) {
263 SetAggregationEndTime(std::forward<AggregationEndTimeT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_queueId;
269
270 Aws::String m_fleetId;
271
272 Aws::String m_jobId;
273
274 Aws::String m_jobName;
275
276 Aws::String m_userId;
277
278 UsageType m_usageType{UsageType::NOT_SET};
279
280 Aws::String m_licenseProduct;
281
282 Aws::String m_instanceType;
283
284 int m_count{0};
285
286 Stats m_costInUsd;
287
288 Stats m_runtimeInSeconds;
289
290 Aws::Utils::DateTime m_aggregationStartTime{};
291
292 Aws::Utils::DateTime m_aggregationEndTime{};
293 bool m_queueIdHasBeenSet = false;
294 bool m_fleetIdHasBeenSet = false;
295 bool m_jobIdHasBeenSet = false;
296 bool m_jobNameHasBeenSet = false;
297 bool m_userIdHasBeenSet = false;
298 bool m_usageTypeHasBeenSet = false;
299 bool m_licenseProductHasBeenSet = false;
300 bool m_instanceTypeHasBeenSet = false;
301 bool m_countHasBeenSet = false;
302 bool m_costInUsdHasBeenSet = false;
303 bool m_runtimeInSecondsHasBeenSet = false;
304 bool m_aggregationStartTimeHasBeenSet = false;
305 bool m_aggregationEndTimeHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace deadline
310} // namespace Aws
void SetAggregationStartTime(AggregationStartTimeT &&value)
Definition Statistics.h:239
bool AggregationStartTimeHasBeenSet() const
Definition Statistics.h:237
void SetUsageType(UsageType value)
Definition Statistics.h:133
Statistics & WithAggregationEndTime(AggregationEndTimeT &&value)
Definition Statistics.h:262
Statistics & WithInstanceType(InstanceTypeT &&value)
Definition Statistics.h:173
Statistics & WithFleetId(FleetIdT &&value)
Definition Statistics.h:67
const Aws::String & GetJobId() const
Definition Statistics.h:77
void SetLicenseProduct(LicenseProductT &&value)
Definition Statistics.h:150
Statistics & WithJobId(JobIdT &&value)
Definition Statistics.h:85
void SetJobName(JobNameT &&value)
Definition Statistics.h:98
const Stats & GetRuntimeInSeconds() const
Definition Statistics.h:218
void SetFleetId(FleetIdT &&value)
Definition Statistics.h:62
void SetQueueId(QueueIdT &&value)
Definition Statistics.h:44
const Aws::String & GetJobName() const
Definition Statistics.h:95
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
bool AggregationEndTimeHasBeenSet() const
Definition Statistics.h:255
AWS_DEADLINE_API Statistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
Definition Statistics.h:165
Statistics & WithUsageType(UsageType value)
Definition Statistics.h:137
Statistics & WithRuntimeInSeconds(RuntimeInSecondsT &&value)
Definition Statistics.h:226
void SetAggregationEndTime(AggregationEndTimeT &&value)
Definition Statistics.h:257
AWS_DEADLINE_API Statistics()=default
Statistics & WithUserId(UserIdT &&value)
Definition Statistics.h:121
const Aws::Utils::DateTime & GetAggregationEndTime() const
Definition Statistics.h:254
const Aws::Utils::DateTime & GetAggregationStartTime() const
Definition Statistics.h:236
Statistics & WithCostInUsd(CostInUsdT &&value)
Definition Statistics.h:208
void SetInstanceType(InstanceTypeT &&value)
Definition Statistics.h:168
void SetCostInUsd(CostInUsdT &&value)
Definition Statistics.h:203
Statistics & WithJobName(JobNameT &&value)
Definition Statistics.h:103
const Stats & GetCostInUsd() const
Definition Statistics.h:200
void SetUserId(UserIdT &&value)
Definition Statistics.h:116
Statistics & WithLicenseProduct(LicenseProductT &&value)
Definition Statistics.h:155
Statistics & WithAggregationStartTime(AggregationStartTimeT &&value)
Definition Statistics.h:244
void SetJobId(JobIdT &&value)
Definition Statistics.h:80
const Aws::String & GetLicenseProduct() const
Definition Statistics.h:147
const Aws::String & GetFleetId() const
Definition Statistics.h:59
const Aws::String & GetUserId() const
Definition Statistics.h:113
Statistics & WithCount(int value)
Definition Statistics.h:189
AWS_DEADLINE_API Statistics(Aws::Utils::Json::JsonView jsonValue)
void SetRuntimeInSeconds(RuntimeInSecondsT &&value)
Definition Statistics.h:221
Statistics & WithQueueId(QueueIdT &&value)
Definition Statistics.h:49
const Aws::String & GetQueueId() const
Definition Statistics.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue