AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
WorkerSummary.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/HostPropertiesResponse.h>
11#include <aws/deadline/model/LogConfiguration.h>
12#include <aws/deadline/model/WorkerStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline {
24namespace Model {
25
32 public:
33 AWS_DEADLINE_API WorkerSummary() = default;
34 AWS_DEADLINE_API WorkerSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetWorkerId() const { return m_workerId; }
43 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
44 template <typename WorkerIdT = Aws::String>
45 void SetWorkerId(WorkerIdT&& value) {
46 m_workerIdHasBeenSet = true;
47 m_workerId = std::forward<WorkerIdT>(value);
48 }
49 template <typename WorkerIdT = Aws::String>
50 WorkerSummary& WithWorkerId(WorkerIdT&& value) {
51 SetWorkerId(std::forward<WorkerIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFarmId() const { return m_farmId; }
61 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
62 template <typename FarmIdT = Aws::String>
63 void SetFarmId(FarmIdT&& value) {
64 m_farmIdHasBeenSet = true;
65 m_farmId = std::forward<FarmIdT>(value);
66 }
67 template <typename FarmIdT = Aws::String>
68 WorkerSummary& WithFarmId(FarmIdT&& value) {
69 SetFarmId(std::forward<FarmIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetFleetId() const { return m_fleetId; }
79 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
80 template <typename FleetIdT = Aws::String>
81 void SetFleetId(FleetIdT&& value) {
82 m_fleetIdHasBeenSet = true;
83 m_fleetId = std::forward<FleetIdT>(value);
84 }
85 template <typename FleetIdT = Aws::String>
86 WorkerSummary& WithFleetId(FleetIdT&& value) {
87 SetFleetId(std::forward<FleetIdT>(value));
88 return *this;
89 }
91
93
96 inline WorkerStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(WorkerStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
113 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
114 template <typename HostPropertiesT = HostPropertiesResponse>
115 void SetHostProperties(HostPropertiesT&& value) {
116 m_hostPropertiesHasBeenSet = true;
117 m_hostProperties = std::forward<HostPropertiesT>(value);
118 }
119 template <typename HostPropertiesT = HostPropertiesResponse>
120 WorkerSummary& WithHostProperties(HostPropertiesT&& value) {
121 SetHostProperties(std::forward<HostPropertiesT>(value));
122 return *this;
123 }
125
127
130 inline const LogConfiguration& GetLog() const { return m_log; }
131 inline bool LogHasBeenSet() const { return m_logHasBeenSet; }
132 template <typename LogT = LogConfiguration>
133 void SetLog(LogT&& value) {
134 m_logHasBeenSet = true;
135 m_log = std::forward<LogT>(value);
136 }
137 template <typename LogT = LogConfiguration>
138 WorkerSummary& WithLog(LogT&& value) {
139 SetLog(std::forward<LogT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
149 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
151 void SetCreatedAt(CreatedAtT&& value) {
152 m_createdAtHasBeenSet = true;
153 m_createdAt = std::forward<CreatedAtT>(value);
154 }
155 template <typename CreatedAtT = Aws::Utils::DateTime>
156 WorkerSummary& WithCreatedAt(CreatedAtT&& value) {
157 SetCreatedAt(std::forward<CreatedAtT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
167 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
168 template <typename CreatedByT = Aws::String>
169 void SetCreatedBy(CreatedByT&& value) {
170 m_createdByHasBeenSet = true;
171 m_createdBy = std::forward<CreatedByT>(value);
172 }
173 template <typename CreatedByT = Aws::String>
174 WorkerSummary& WithCreatedBy(CreatedByT&& value) {
175 SetCreatedBy(std::forward<CreatedByT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
185 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 void SetUpdatedAt(UpdatedAtT&& value) {
188 m_updatedAtHasBeenSet = true;
189 m_updatedAt = std::forward<UpdatedAtT>(value);
190 }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
192 WorkerSummary& WithUpdatedAt(UpdatedAtT&& value) {
193 SetUpdatedAt(std::forward<UpdatedAtT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
203 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
204 template <typename UpdatedByT = Aws::String>
205 void SetUpdatedBy(UpdatedByT&& value) {
206 m_updatedByHasBeenSet = true;
207 m_updatedBy = std::forward<UpdatedByT>(value);
208 }
209 template <typename UpdatedByT = Aws::String>
210 WorkerSummary& WithUpdatedBy(UpdatedByT&& value) {
211 SetUpdatedBy(std::forward<UpdatedByT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_workerId;
217
218 Aws::String m_farmId;
219
220 Aws::String m_fleetId;
221
223
224 HostPropertiesResponse m_hostProperties;
225
226 LogConfiguration m_log;
227
228 Aws::Utils::DateTime m_createdAt{};
229
230 Aws::String m_createdBy;
231
232 Aws::Utils::DateTime m_updatedAt{};
233
234 Aws::String m_updatedBy;
235 bool m_workerIdHasBeenSet = false;
236 bool m_farmIdHasBeenSet = false;
237 bool m_fleetIdHasBeenSet = false;
238 bool m_statusHasBeenSet = false;
239 bool m_hostPropertiesHasBeenSet = false;
240 bool m_logHasBeenSet = false;
241 bool m_createdAtHasBeenSet = false;
242 bool m_createdByHasBeenSet = false;
243 bool m_updatedAtHasBeenSet = false;
244 bool m_updatedByHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace deadline
249} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
WorkerSummary & WithCreatedBy(CreatedByT &&value)
WorkerSummary & WithHostProperties(HostPropertiesT &&value)
const HostPropertiesResponse & GetHostProperties() const
const LogConfiguration & GetLog() const
void SetCreatedBy(CreatedByT &&value)
void SetHostProperties(HostPropertiesT &&value)
WorkerSummary & WithUpdatedBy(UpdatedByT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStatus(WorkerStatus value)
const Aws::String & GetCreatedBy() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerSummary & WithLog(LogT &&value)
void SetUpdatedBy(UpdatedByT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DEADLINE_API WorkerSummary()=default
void SetFleetId(FleetIdT &&value)
WorkerSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetFleetId() const
WorkerSummary & WithStatus(WorkerStatus value)
AWS_DEADLINE_API WorkerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetUpdatedBy() const
WorkerSummary & WithWorkerId(WorkerIdT &&value)
const Aws::String & GetFarmId() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetWorkerId(WorkerIdT &&value)
WorkerSummary & WithFleetId(FleetIdT &&value)
AWS_DEADLINE_API WorkerSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWorkerId() const
WorkerSummary & WithFarmId(FarmIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue