AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetWorkerItem.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
33 public:
34 AWS_DEADLINE_API BatchGetWorkerItem() = default;
37 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetFarmId() const { return m_farmId; }
44 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
45 template <typename FarmIdT = Aws::String>
46 void SetFarmId(FarmIdT&& value) {
47 m_farmIdHasBeenSet = true;
48 m_farmId = std::forward<FarmIdT>(value);
49 }
50 template <typename FarmIdT = Aws::String>
51 BatchGetWorkerItem& WithFarmId(FarmIdT&& value) {
52 SetFarmId(std::forward<FarmIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetFleetId() const { return m_fleetId; }
62 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
63 template <typename FleetIdT = Aws::String>
64 void SetFleetId(FleetIdT&& value) {
65 m_fleetIdHasBeenSet = true;
66 m_fleetId = std::forward<FleetIdT>(value);
67 }
68 template <typename FleetIdT = Aws::String>
69 BatchGetWorkerItem& WithFleetId(FleetIdT&& value) {
70 SetFleetId(std::forward<FleetIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetWorkerId() const { return m_workerId; }
80 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
81 template <typename WorkerIdT = Aws::String>
82 void SetWorkerId(WorkerIdT&& value) {
83 m_workerIdHasBeenSet = true;
84 m_workerId = std::forward<WorkerIdT>(value);
85 }
86 template <typename WorkerIdT = Aws::String>
87 BatchGetWorkerItem& WithWorkerId(WorkerIdT&& value) {
88 SetWorkerId(std::forward<WorkerIdT>(value));
89 return *this;
90 }
92
94
97 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
98 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
99 template <typename HostPropertiesT = HostPropertiesResponse>
100 void SetHostProperties(HostPropertiesT&& value) {
101 m_hostPropertiesHasBeenSet = true;
102 m_hostProperties = std::forward<HostPropertiesT>(value);
103 }
104 template <typename HostPropertiesT = HostPropertiesResponse>
105 BatchGetWorkerItem& WithHostProperties(HostPropertiesT&& value) {
106 SetHostProperties(std::forward<HostPropertiesT>(value));
107 return *this;
108 }
110
112
115 inline WorkerStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(WorkerStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
131 inline const LogConfiguration& GetLog() const { return m_log; }
132 inline bool LogHasBeenSet() const { return m_logHasBeenSet; }
133 template <typename LogT = LogConfiguration>
134 void SetLog(LogT&& value) {
135 m_logHasBeenSet = true;
136 m_log = std::forward<LogT>(value);
137 }
138 template <typename LogT = LogConfiguration>
140 SetLog(std::forward<LogT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
150 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 void SetCreatedAt(CreatedAtT&& value) {
153 m_createdAtHasBeenSet = true;
154 m_createdAt = std::forward<CreatedAtT>(value);
155 }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 BatchGetWorkerItem& WithCreatedAt(CreatedAtT&& value) {
158 SetCreatedAt(std::forward<CreatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
168 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
169 template <typename CreatedByT = Aws::String>
170 void SetCreatedBy(CreatedByT&& value) {
171 m_createdByHasBeenSet = true;
172 m_createdBy = std::forward<CreatedByT>(value);
173 }
174 template <typename CreatedByT = Aws::String>
175 BatchGetWorkerItem& WithCreatedBy(CreatedByT&& value) {
176 SetCreatedBy(std::forward<CreatedByT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
186 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
188 void SetUpdatedAt(UpdatedAtT&& value) {
189 m_updatedAtHasBeenSet = true;
190 m_updatedAt = std::forward<UpdatedAtT>(value);
191 }
192 template <typename UpdatedAtT = Aws::Utils::DateTime>
193 BatchGetWorkerItem& WithUpdatedAt(UpdatedAtT&& value) {
194 SetUpdatedAt(std::forward<UpdatedAtT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
204 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
205 template <typename UpdatedByT = Aws::String>
206 void SetUpdatedBy(UpdatedByT&& value) {
207 m_updatedByHasBeenSet = true;
208 m_updatedBy = std::forward<UpdatedByT>(value);
209 }
210 template <typename UpdatedByT = Aws::String>
211 BatchGetWorkerItem& WithUpdatedBy(UpdatedByT&& value) {
212 SetUpdatedBy(std::forward<UpdatedByT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_farmId;
218
219 Aws::String m_fleetId;
220
221 Aws::String m_workerId;
222
223 HostPropertiesResponse m_hostProperties;
224
226
227 LogConfiguration m_log;
228
229 Aws::Utils::DateTime m_createdAt{};
230
231 Aws::String m_createdBy;
232
233 Aws::Utils::DateTime m_updatedAt{};
234
235 Aws::String m_updatedBy;
236 bool m_farmIdHasBeenSet = false;
237 bool m_fleetIdHasBeenSet = false;
238 bool m_workerIdHasBeenSet = false;
239 bool m_hostPropertiesHasBeenSet = false;
240 bool m_statusHasBeenSet = false;
241 bool m_logHasBeenSet = false;
242 bool m_createdAtHasBeenSet = false;
243 bool m_createdByHasBeenSet = false;
244 bool m_updatedAtHasBeenSet = false;
245 bool m_updatedByHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace deadline
250} // namespace Aws
BatchGetWorkerItem & WithHostProperties(HostPropertiesT &&value)
BatchGetWorkerItem & WithCreatedAt(CreatedAtT &&value)
BatchGetWorkerItem & WithFarmId(FarmIdT &&value)
BatchGetWorkerItem & WithStatus(WorkerStatus value)
AWS_DEADLINE_API BatchGetWorkerItem()=default
BatchGetWorkerItem & WithCreatedBy(CreatedByT &&value)
BatchGetWorkerItem & WithFleetId(FleetIdT &&value)
AWS_DEADLINE_API BatchGetWorkerItem(Aws::Utils::Json::JsonView jsonValue)
BatchGetWorkerItem & WithWorkerId(WorkerIdT &&value)
BatchGetWorkerItem & WithUpdatedBy(UpdatedByT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
BatchGetWorkerItem & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const HostPropertiesResponse & GetHostProperties() const
AWS_DEADLINE_API BatchGetWorkerItem & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetWorkerItem & WithLog(LogT &&value)
void SetHostProperties(HostPropertiesT &&value)
const LogConfiguration & GetLog() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue