AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Statistics.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/UsageType.h>
10#include <aws/deadline/model/Stats.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DEADLINE_API Statistics() = default;
38 AWS_DEADLINE_API Statistics(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEADLINE_API Statistics& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetQueueId() const { return m_queueId; }
48 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
49 template<typename QueueIdT = Aws::String>
50 void SetQueueId(QueueIdT&& value) { m_queueIdHasBeenSet = true; m_queueId = std::forward<QueueIdT>(value); }
51 template<typename QueueIdT = Aws::String>
52 Statistics& WithQueueId(QueueIdT&& value) { SetQueueId(std::forward<QueueIdT>(value)); return *this;}
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) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
63 template<typename FleetIdT = Aws::String>
64 Statistics& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetJobId() const { return m_jobId; }
72 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
73 template<typename JobIdT = Aws::String>
74 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
75 template<typename JobIdT = Aws::String>
76 Statistics& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetJobName() const { return m_jobName; }
84 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
85 template<typename JobNameT = Aws::String>
86 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
87 template<typename JobNameT = Aws::String>
88 Statistics& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
90
92
95 inline const Aws::String& GetUserId() const { return m_userId; }
96 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
97 template<typename UserIdT = Aws::String>
98 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
99 template<typename UserIdT = Aws::String>
100 Statistics& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
102
104
107 inline UsageType GetUsageType() const { return m_usageType; }
108 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
109 inline void SetUsageType(UsageType value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
110 inline Statistics& WithUsageType(UsageType value) { SetUsageType(value); return *this;}
112
114
117 inline const Aws::String& GetLicenseProduct() const { return m_licenseProduct; }
118 inline bool LicenseProductHasBeenSet() const { return m_licenseProductHasBeenSet; }
119 template<typename LicenseProductT = Aws::String>
120 void SetLicenseProduct(LicenseProductT&& value) { m_licenseProductHasBeenSet = true; m_licenseProduct = std::forward<LicenseProductT>(value); }
121 template<typename LicenseProductT = Aws::String>
122 Statistics& WithLicenseProduct(LicenseProductT&& value) { SetLicenseProduct(std::forward<LicenseProductT>(value)); return *this;}
124
126
129 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
130 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
131 template<typename InstanceTypeT = Aws::String>
132 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
133 template<typename InstanceTypeT = Aws::String>
134 Statistics& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
136
138
141 inline int GetCount() const { return m_count; }
142 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
143 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
144 inline Statistics& WithCount(int value) { SetCount(value); return *this;}
146
148
152 inline const Stats& GetCostInUsd() const { return m_costInUsd; }
153 inline bool CostInUsdHasBeenSet() const { return m_costInUsdHasBeenSet; }
154 template<typename CostInUsdT = Stats>
155 void SetCostInUsd(CostInUsdT&& value) { m_costInUsdHasBeenSet = true; m_costInUsd = std::forward<CostInUsdT>(value); }
156 template<typename CostInUsdT = Stats>
157 Statistics& WithCostInUsd(CostInUsdT&& value) { SetCostInUsd(std::forward<CostInUsdT>(value)); return *this;}
159
161
164 inline const Stats& GetRuntimeInSeconds() const { return m_runtimeInSeconds; }
165 inline bool RuntimeInSecondsHasBeenSet() const { return m_runtimeInSecondsHasBeenSet; }
166 template<typename RuntimeInSecondsT = Stats>
167 void SetRuntimeInSeconds(RuntimeInSecondsT&& value) { m_runtimeInSecondsHasBeenSet = true; m_runtimeInSeconds = std::forward<RuntimeInSecondsT>(value); }
168 template<typename RuntimeInSecondsT = Stats>
169 Statistics& WithRuntimeInSeconds(RuntimeInSecondsT&& value) { SetRuntimeInSeconds(std::forward<RuntimeInSecondsT>(value)); return *this;}
171
173
176 inline const Aws::Utils::DateTime& GetAggregationStartTime() const { return m_aggregationStartTime; }
177 inline bool AggregationStartTimeHasBeenSet() const { return m_aggregationStartTimeHasBeenSet; }
178 template<typename AggregationStartTimeT = Aws::Utils::DateTime>
179 void SetAggregationStartTime(AggregationStartTimeT&& value) { m_aggregationStartTimeHasBeenSet = true; m_aggregationStartTime = std::forward<AggregationStartTimeT>(value); }
180 template<typename AggregationStartTimeT = Aws::Utils::DateTime>
181 Statistics& WithAggregationStartTime(AggregationStartTimeT&& value) { SetAggregationStartTime(std::forward<AggregationStartTimeT>(value)); return *this;}
183
185
188 inline const Aws::Utils::DateTime& GetAggregationEndTime() const { return m_aggregationEndTime; }
189 inline bool AggregationEndTimeHasBeenSet() const { return m_aggregationEndTimeHasBeenSet; }
190 template<typename AggregationEndTimeT = Aws::Utils::DateTime>
191 void SetAggregationEndTime(AggregationEndTimeT&& value) { m_aggregationEndTimeHasBeenSet = true; m_aggregationEndTime = std::forward<AggregationEndTimeT>(value); }
192 template<typename AggregationEndTimeT = Aws::Utils::DateTime>
193 Statistics& WithAggregationEndTime(AggregationEndTimeT&& value) { SetAggregationEndTime(std::forward<AggregationEndTimeT>(value)); return *this;}
195 private:
196
197 Aws::String m_queueId;
198 bool m_queueIdHasBeenSet = false;
199
200 Aws::String m_fleetId;
201 bool m_fleetIdHasBeenSet = false;
202
203 Aws::String m_jobId;
204 bool m_jobIdHasBeenSet = false;
205
206 Aws::String m_jobName;
207 bool m_jobNameHasBeenSet = false;
208
209 Aws::String m_userId;
210 bool m_userIdHasBeenSet = false;
211
212 UsageType m_usageType{UsageType::NOT_SET};
213 bool m_usageTypeHasBeenSet = false;
214
215 Aws::String m_licenseProduct;
216 bool m_licenseProductHasBeenSet = false;
217
218 Aws::String m_instanceType;
219 bool m_instanceTypeHasBeenSet = false;
220
221 int m_count{0};
222 bool m_countHasBeenSet = false;
223
224 Stats m_costInUsd;
225 bool m_costInUsdHasBeenSet = false;
226
227 Stats m_runtimeInSeconds;
228 bool m_runtimeInSecondsHasBeenSet = false;
229
230 Aws::Utils::DateTime m_aggregationStartTime{};
231 bool m_aggregationStartTimeHasBeenSet = false;
232
233 Aws::Utils::DateTime m_aggregationEndTime{};
234 bool m_aggregationEndTimeHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace deadline
239} // namespace Aws
void SetAggregationStartTime(AggregationStartTimeT &&value)
Definition Statistics.h:179
bool AggregationStartTimeHasBeenSet() const
Definition Statistics.h:177
void SetUsageType(UsageType value)
Definition Statistics.h:109
Statistics & WithAggregationEndTime(AggregationEndTimeT &&value)
Definition Statistics.h:193
Statistics & WithInstanceType(InstanceTypeT &&value)
Definition Statistics.h:134
Statistics & WithFleetId(FleetIdT &&value)
Definition Statistics.h:64
const Aws::String & GetJobId() const
Definition Statistics.h:71
void SetLicenseProduct(LicenseProductT &&value)
Definition Statistics.h:120
Statistics & WithJobId(JobIdT &&value)
Definition Statistics.h:76
void SetJobName(JobNameT &&value)
Definition Statistics.h:86
const Stats & GetRuntimeInSeconds() const
Definition Statistics.h:164
void SetFleetId(FleetIdT &&value)
Definition Statistics.h:62
void SetQueueId(QueueIdT &&value)
Definition Statistics.h:50
const Aws::String & GetJobName() const
Definition Statistics.h:83
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
bool AggregationEndTimeHasBeenSet() const
Definition Statistics.h:189
AWS_DEADLINE_API Statistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
Definition Statistics.h:129
Statistics & WithUsageType(UsageType value)
Definition Statistics.h:110
Statistics & WithRuntimeInSeconds(RuntimeInSecondsT &&value)
Definition Statistics.h:169
void SetAggregationEndTime(AggregationEndTimeT &&value)
Definition Statistics.h:191
AWS_DEADLINE_API Statistics()=default
Statistics & WithUserId(UserIdT &&value)
Definition Statistics.h:100
const Aws::Utils::DateTime & GetAggregationEndTime() const
Definition Statistics.h:188
const Aws::Utils::DateTime & GetAggregationStartTime() const
Definition Statistics.h:176
Statistics & WithCostInUsd(CostInUsdT &&value)
Definition Statistics.h:157
void SetInstanceType(InstanceTypeT &&value)
Definition Statistics.h:132
void SetCostInUsd(CostInUsdT &&value)
Definition Statistics.h:155
Statistics & WithJobName(JobNameT &&value)
Definition Statistics.h:88
const Stats & GetCostInUsd() const
Definition Statistics.h:152
void SetUserId(UserIdT &&value)
Definition Statistics.h:98
Statistics & WithLicenseProduct(LicenseProductT &&value)
Definition Statistics.h:122
Statistics & WithAggregationStartTime(AggregationStartTimeT &&value)
Definition Statistics.h:181
void SetJobId(JobIdT &&value)
Definition Statistics.h:74
const Aws::String & GetLicenseProduct() const
Definition Statistics.h:117
const Aws::String & GetFleetId() const
Definition Statistics.h:59
const Aws::String & GetUserId() const
Definition Statistics.h:95
Statistics & WithCount(int value)
Definition Statistics.h:144
AWS_DEADLINE_API Statistics(Aws::Utils::Json::JsonView jsonValue)
void SetRuntimeInSeconds(RuntimeInSecondsT &&value)
Definition Statistics.h:167
Statistics & WithQueueId(QueueIdT &&value)
Definition Statistics.h:52
const Aws::String & GetQueueId() const
Definition Statistics.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue