AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
50 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
51 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
52 inline Statistics& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
53 inline Statistics& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
54 inline Statistics& WithQueueId(const char* value) { SetQueueId(value); return *this;}
56
58
61 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
62 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
63 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
64 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
65 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
66 inline Statistics& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
67 inline Statistics& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
68 inline Statistics& WithFleetId(const char* value) { SetFleetId(value); return *this;}
70
72
75 inline const Aws::String& GetJobId() const{ return m_jobId; }
76 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
77 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
78 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
79 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
80 inline Statistics& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
81 inline Statistics& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
82 inline Statistics& WithJobId(const char* value) { SetJobId(value); return *this;}
84
86
89 inline const Aws::String& GetJobName() const{ return m_jobName; }
90 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
91 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
92 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
93 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
94 inline Statistics& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
95 inline Statistics& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
96 inline Statistics& WithJobName(const char* value) { SetJobName(value); return *this;}
98
100
103 inline const Aws::String& GetUserId() const{ return m_userId; }
104 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
105 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
106 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
107 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
108 inline Statistics& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
109 inline Statistics& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
110 inline Statistics& WithUserId(const char* value) { SetUserId(value); return *this;}
112
114
117 inline const UsageType& GetUsageType() const{ return m_usageType; }
118 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
119 inline void SetUsageType(const UsageType& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
120 inline void SetUsageType(UsageType&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
121 inline Statistics& WithUsageType(const UsageType& value) { SetUsageType(value); return *this;}
122 inline Statistics& WithUsageType(UsageType&& value) { SetUsageType(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetLicenseProduct() const{ return m_licenseProduct; }
130 inline bool LicenseProductHasBeenSet() const { return m_licenseProductHasBeenSet; }
131 inline void SetLicenseProduct(const Aws::String& value) { m_licenseProductHasBeenSet = true; m_licenseProduct = value; }
132 inline void SetLicenseProduct(Aws::String&& value) { m_licenseProductHasBeenSet = true; m_licenseProduct = std::move(value); }
133 inline void SetLicenseProduct(const char* value) { m_licenseProductHasBeenSet = true; m_licenseProduct.assign(value); }
134 inline Statistics& WithLicenseProduct(const Aws::String& value) { SetLicenseProduct(value); return *this;}
135 inline Statistics& WithLicenseProduct(Aws::String&& value) { SetLicenseProduct(std::move(value)); return *this;}
136 inline Statistics& WithLicenseProduct(const char* value) { SetLicenseProduct(value); return *this;}
138
140
143 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
144 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
145 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
146 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
147 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
148 inline Statistics& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
149 inline Statistics& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
150 inline Statistics& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
152
154
157 inline int GetCount() const{ return m_count; }
158 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
159 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
160 inline Statistics& WithCount(int value) { SetCount(value); return *this;}
162
164
168 inline const Stats& GetCostInUsd() const{ return m_costInUsd; }
169 inline bool CostInUsdHasBeenSet() const { return m_costInUsdHasBeenSet; }
170 inline void SetCostInUsd(const Stats& value) { m_costInUsdHasBeenSet = true; m_costInUsd = value; }
171 inline void SetCostInUsd(Stats&& value) { m_costInUsdHasBeenSet = true; m_costInUsd = std::move(value); }
172 inline Statistics& WithCostInUsd(const Stats& value) { SetCostInUsd(value); return *this;}
173 inline Statistics& WithCostInUsd(Stats&& value) { SetCostInUsd(std::move(value)); return *this;}
175
177
180 inline const Stats& GetRuntimeInSeconds() const{ return m_runtimeInSeconds; }
181 inline bool RuntimeInSecondsHasBeenSet() const { return m_runtimeInSecondsHasBeenSet; }
182 inline void SetRuntimeInSeconds(const Stats& value) { m_runtimeInSecondsHasBeenSet = true; m_runtimeInSeconds = value; }
183 inline void SetRuntimeInSeconds(Stats&& value) { m_runtimeInSecondsHasBeenSet = true; m_runtimeInSeconds = std::move(value); }
184 inline Statistics& WithRuntimeInSeconds(const Stats& value) { SetRuntimeInSeconds(value); return *this;}
185 inline Statistics& WithRuntimeInSeconds(Stats&& value) { SetRuntimeInSeconds(std::move(value)); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetAggregationStartTime() const{ return m_aggregationStartTime; }
193 inline bool AggregationStartTimeHasBeenSet() const { return m_aggregationStartTimeHasBeenSet; }
194 inline void SetAggregationStartTime(const Aws::Utils::DateTime& value) { m_aggregationStartTimeHasBeenSet = true; m_aggregationStartTime = value; }
195 inline void SetAggregationStartTime(Aws::Utils::DateTime&& value) { m_aggregationStartTimeHasBeenSet = true; m_aggregationStartTime = std::move(value); }
197 inline Statistics& WithAggregationStartTime(Aws::Utils::DateTime&& value) { SetAggregationStartTime(std::move(value)); return *this;}
199
201
204 inline const Aws::Utils::DateTime& GetAggregationEndTime() const{ return m_aggregationEndTime; }
205 inline bool AggregationEndTimeHasBeenSet() const { return m_aggregationEndTimeHasBeenSet; }
206 inline void SetAggregationEndTime(const Aws::Utils::DateTime& value) { m_aggregationEndTimeHasBeenSet = true; m_aggregationEndTime = value; }
207 inline void SetAggregationEndTime(Aws::Utils::DateTime&& value) { m_aggregationEndTimeHasBeenSet = true; m_aggregationEndTime = std::move(value); }
209 inline Statistics& WithAggregationEndTime(Aws::Utils::DateTime&& value) { SetAggregationEndTime(std::move(value)); return *this;}
211 private:
212
213 Aws::String m_queueId;
214 bool m_queueIdHasBeenSet = false;
215
216 Aws::String m_fleetId;
217 bool m_fleetIdHasBeenSet = false;
218
219 Aws::String m_jobId;
220 bool m_jobIdHasBeenSet = false;
221
222 Aws::String m_jobName;
223 bool m_jobNameHasBeenSet = false;
224
225 Aws::String m_userId;
226 bool m_userIdHasBeenSet = false;
227
228 UsageType m_usageType;
229 bool m_usageTypeHasBeenSet = false;
230
231 Aws::String m_licenseProduct;
232 bool m_licenseProductHasBeenSet = false;
233
234 Aws::String m_instanceType;
235 bool m_instanceTypeHasBeenSet = false;
236
237 int m_count;
238 bool m_countHasBeenSet = false;
239
240 Stats m_costInUsd;
241 bool m_costInUsdHasBeenSet = false;
242
243 Stats m_runtimeInSeconds;
244 bool m_runtimeInSecondsHasBeenSet = false;
245
246 Aws::Utils::DateTime m_aggregationStartTime;
247 bool m_aggregationStartTimeHasBeenSet = false;
248
249 Aws::Utils::DateTime m_aggregationEndTime;
250 bool m_aggregationEndTimeHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace deadline
255} // namespace Aws
Statistics & WithUserId(Aws::String &&value)
Definition Statistics.h:109
Statistics & WithFleetId(const Aws::String &value)
Definition Statistics.h:66
bool AggregationStartTimeHasBeenSet() const
Definition Statistics.h:193
Statistics & WithInstanceType(Aws::String &&value)
Definition Statistics.h:149
void SetUserId(const char *value)
Definition Statistics.h:107
Statistics & WithQueueId(Aws::String &&value)
Definition Statistics.h:53
Statistics & WithAggregationStartTime(const Aws::Utils::DateTime &value)
Definition Statistics.h:196
const Aws::String & GetJobId() const
Definition Statistics.h:75
void SetLicenseProduct(Aws::String &&value)
Definition Statistics.h:132
void SetLicenseProduct(const Aws::String &value)
Definition Statistics.h:131
Statistics & WithCostInUsd(const Stats &value)
Definition Statistics.h:172
void SetCostInUsd(const Stats &value)
Definition Statistics.h:170
Statistics & WithUserId(const char *value)
Definition Statistics.h:110
void SetRuntimeInSeconds(Stats &&value)
Definition Statistics.h:183
void SetInstanceType(const char *value)
Definition Statistics.h:147
void SetAggregationStartTime(const Aws::Utils::DateTime &value)
Definition Statistics.h:194
Statistics & WithInstanceType(const char *value)
Definition Statistics.h:150
Statistics & WithAggregationEndTime(Aws::Utils::DateTime &&value)
Definition Statistics.h:209
const Stats & GetRuntimeInSeconds() const
Definition Statistics.h:180
Statistics & WithJobId(const Aws::String &value)
Definition Statistics.h:80
Statistics & WithAggregationEndTime(const Aws::Utils::DateTime &value)
Definition Statistics.h:208
Statistics & WithJobName(Aws::String &&value)
Definition Statistics.h:95
void SetCostInUsd(Stats &&value)
Definition Statistics.h:171
void SetJobId(Aws::String &&value)
Definition Statistics.h:78
Statistics & WithJobName(const char *value)
Definition Statistics.h:96
const Aws::String & GetJobName() const
Definition Statistics.h:89
const UsageType & GetUsageType() const
Definition Statistics.h:117
void SetAggregationEndTime(const Aws::Utils::DateTime &value)
Definition Statistics.h:206
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFleetId(Aws::String &&value)
Definition Statistics.h:64
bool AggregationEndTimeHasBeenSet() const
Definition Statistics.h:205
Statistics & WithFleetId(const char *value)
Definition Statistics.h:68
void SetJobName(const Aws::String &value)
Definition Statistics.h:91
Statistics & WithQueueId(const char *value)
Definition Statistics.h:54
AWS_DEADLINE_API Statistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
Definition Statistics.h:143
void SetUserId(Aws::String &&value)
Definition Statistics.h:106
void SetJobName(Aws::String &&value)
Definition Statistics.h:92
Statistics & WithJobName(const Aws::String &value)
Definition Statistics.h:94
void SetLicenseProduct(const char *value)
Definition Statistics.h:133
void SetUsageType(UsageType &&value)
Definition Statistics.h:120
void SetQueueId(const char *value)
Definition Statistics.h:51
void SetAggregationStartTime(Aws::Utils::DateTime &&value)
Definition Statistics.h:195
const Aws::Utils::DateTime & GetAggregationEndTime() const
Definition Statistics.h:204
Statistics & WithRuntimeInSeconds(Stats &&value)
Definition Statistics.h:185
void SetJobName(const char *value)
Definition Statistics.h:93
Statistics & WithAggregationStartTime(Aws::Utils::DateTime &&value)
Definition Statistics.h:197
const Aws::Utils::DateTime & GetAggregationStartTime() const
Definition Statistics.h:192
void SetUsageType(const UsageType &value)
Definition Statistics.h:119
Statistics & WithLicenseProduct(Aws::String &&value)
Definition Statistics.h:135
Statistics & WithUsageType(const UsageType &value)
Definition Statistics.h:121
Statistics & WithQueueId(const Aws::String &value)
Definition Statistics.h:52
Statistics & WithJobId(const char *value)
Definition Statistics.h:82
Statistics & WithInstanceType(const Aws::String &value)
Definition Statistics.h:148
Statistics & WithUsageType(UsageType &&value)
Definition Statistics.h:122
Statistics & WithCostInUsd(Stats &&value)
Definition Statistics.h:173
const Stats & GetCostInUsd() const
Definition Statistics.h:168
void SetFleetId(const char *value)
Definition Statistics.h:65
Statistics & WithFleetId(Aws::String &&value)
Definition Statistics.h:67
void SetUserId(const Aws::String &value)
Definition Statistics.h:105
void SetQueueId(Aws::String &&value)
Definition Statistics.h:50
void SetQueueId(const Aws::String &value)
Definition Statistics.h:49
Statistics & WithUserId(const Aws::String &value)
Definition Statistics.h:108
const Aws::String & GetLicenseProduct() const
Definition Statistics.h:129
const Aws::String & GetFleetId() const
Definition Statistics.h:61
void SetRuntimeInSeconds(const Stats &value)
Definition Statistics.h:182
const Aws::String & GetUserId() const
Definition Statistics.h:103
Statistics & WithCount(int value)
Definition Statistics.h:160
void SetAggregationEndTime(Aws::Utils::DateTime &&value)
Definition Statistics.h:207
AWS_DEADLINE_API Statistics(Aws::Utils::Json::JsonView jsonValue)
Statistics & WithLicenseProduct(const Aws::String &value)
Definition Statistics.h:134
void SetInstanceType(const Aws::String &value)
Definition Statistics.h:145
void SetJobId(const char *value)
Definition Statistics.h:79
Statistics & WithLicenseProduct(const char *value)
Definition Statistics.h:136
Statistics & WithRuntimeInSeconds(const Stats &value)
Definition Statistics.h:184
Statistics & WithJobId(Aws::String &&value)
Definition Statistics.h:81
const Aws::String & GetQueueId() const
Definition Statistics.h:47
void SetFleetId(const Aws::String &value)
Definition Statistics.h:63
void SetJobId(const Aws::String &value)
Definition Statistics.h:77
void SetInstanceType(Aws::String &&value)
Definition Statistics.h:146
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue