AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkerSummary.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/WorkerStatus.h>
10#include <aws/deadline/model/HostPropertiesResponse.h>
11#include <aws/deadline/model/LogConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DEADLINE_API WorkerSummary();
39 AWS_DEADLINE_API WorkerSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
49 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
50 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
51 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
52 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
53 inline WorkerSummary& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
54 inline WorkerSummary& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
55 inline WorkerSummary& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
57
59
62 inline const Aws::String& GetFarmId() const{ return m_farmId; }
63 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
64 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
65 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
66 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
67 inline WorkerSummary& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
68 inline WorkerSummary& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
69 inline WorkerSummary& WithFarmId(const char* value) { SetFarmId(value); return *this;}
71
73
76 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
77 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
78 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
79 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
80 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
81 inline WorkerSummary& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
82 inline WorkerSummary& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
83 inline WorkerSummary& WithFleetId(const char* value) { SetFleetId(value); return *this;}
85
87
90 inline const WorkerStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const WorkerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(WorkerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline WorkerSummary& WithStatus(const WorkerStatus& value) { SetStatus(value); return *this;}
95 inline WorkerSummary& WithStatus(WorkerStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
102 inline const HostPropertiesResponse& GetHostProperties() const{ return m_hostProperties; }
103 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
104 inline void SetHostProperties(const HostPropertiesResponse& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = value; }
105 inline void SetHostProperties(HostPropertiesResponse&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::move(value); }
106 inline WorkerSummary& WithHostProperties(const HostPropertiesResponse& value) { SetHostProperties(value); return *this;}
107 inline WorkerSummary& WithHostProperties(HostPropertiesResponse&& value) { SetHostProperties(std::move(value)); return *this;}
109
111
114 inline const LogConfiguration& GetLog() const{ return m_log; }
115 inline bool LogHasBeenSet() const { return m_logHasBeenSet; }
116 inline void SetLog(const LogConfiguration& value) { m_logHasBeenSet = true; m_log = value; }
117 inline void SetLog(LogConfiguration&& value) { m_logHasBeenSet = true; m_log = std::move(value); }
118 inline WorkerSummary& WithLog(const LogConfiguration& value) { SetLog(value); return *this;}
119 inline WorkerSummary& WithLog(LogConfiguration&& value) { SetLog(std::move(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
127 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
128 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
129 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
130 inline WorkerSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
131 inline WorkerSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
133
135
138 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
139 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
140 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
141 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
142 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
143 inline WorkerSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
144 inline WorkerSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
145 inline WorkerSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
153 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
154 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
155 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
156 inline WorkerSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
157 inline WorkerSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
165 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
166 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
167 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
168 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
169 inline WorkerSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
170 inline WorkerSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
171 inline WorkerSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
173 private:
174
175 Aws::String m_workerId;
176 bool m_workerIdHasBeenSet = false;
177
178 Aws::String m_farmId;
179 bool m_farmIdHasBeenSet = false;
180
181 Aws::String m_fleetId;
182 bool m_fleetIdHasBeenSet = false;
183
184 WorkerStatus m_status;
185 bool m_statusHasBeenSet = false;
186
187 HostPropertiesResponse m_hostProperties;
188 bool m_hostPropertiesHasBeenSet = false;
189
190 LogConfiguration m_log;
191 bool m_logHasBeenSet = false;
192
193 Aws::Utils::DateTime m_createdAt;
194 bool m_createdAtHasBeenSet = false;
195
196 Aws::String m_createdBy;
197 bool m_createdByHasBeenSet = false;
198
199 Aws::Utils::DateTime m_updatedAt;
200 bool m_updatedAtHasBeenSet = false;
201
202 Aws::String m_updatedBy;
203 bool m_updatedByHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace deadline
208} // namespace Aws
void SetFleetId(const Aws::String &value)
WorkerSummary & WithUpdatedBy(const char *value)
WorkerSummary & WithUpdatedBy(const Aws::String &value)
WorkerSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetWorkerId(const char *value)
void SetFleetId(const char *value)
WorkerSummary & WithWorkerId(const char *value)
WorkerSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
WorkerSummary & WithFleetId(const Aws::String &value)
const HostPropertiesResponse & GetHostProperties() const
const LogConfiguration & GetLog() const
WorkerSummary & WithUpdatedBy(Aws::String &&value)
WorkerSummary & WithCreatedBy(const Aws::String &value)
WorkerSummary & WithHostProperties(const HostPropertiesResponse &value)
WorkerSummary & WithFarmId(const char *value)
void SetFarmId(const Aws::String &value)
void SetUpdatedBy(const Aws::String &value)
void SetUpdatedBy(const char *value)
WorkerSummary & WithWorkerId(Aws::String &&value)
WorkerSummary & WithStatus(WorkerStatus &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetCreatedBy(const char *value)
WorkerSummary & WithFleetId(Aws::String &&value)
void SetFarmId(const char *value)
const WorkerStatus & GetStatus() const
const Aws::String & GetCreatedBy() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
WorkerSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetHostProperties(const HostPropertiesResponse &value)
void SetFarmId(Aws::String &&value)
WorkerSummary & WithLog(const LogConfiguration &value)
void SetWorkerId(Aws::String &&value)
void SetFleetId(Aws::String &&value)
const Aws::String & GetFleetId() const
void SetUpdatedBy(Aws::String &&value)
AWS_DEADLINE_API WorkerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerSummary & WithLog(LogConfiguration &&value)
void SetStatus(WorkerStatus &&value)
const Aws::String & GetUpdatedBy() const
const Aws::String & GetFarmId() const
WorkerSummary & WithFleetId(const char *value)
void SetHostProperties(HostPropertiesResponse &&value)
void SetStatus(const WorkerStatus &value)
void SetWorkerId(const Aws::String &value)
AWS_DEADLINE_API WorkerSummary(Aws::Utils::Json::JsonView jsonValue)
WorkerSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
WorkerSummary & WithCreatedBy(Aws::String &&value)
WorkerSummary & WithCreatedBy(const char *value)
void SetCreatedBy(Aws::String &&value)
WorkerSummary & WithFarmId(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
WorkerSummary & WithWorkerId(const Aws::String &value)
WorkerSummary & WithStatus(const WorkerStatus &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
WorkerSummary & WithHostProperties(HostPropertiesResponse &&value)
const Aws::String & GetWorkerId() const
void SetLog(LogConfiguration &&value)
void SetLog(const LogConfiguration &value)
WorkerSummary & WithFarmId(Aws::String &&value)
void SetCreatedBy(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue