AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename WorkerIdT = Aws::String>
51 void SetWorkerId(WorkerIdT&& value) { m_workerIdHasBeenSet = true; m_workerId = std::forward<WorkerIdT>(value); }
52 template<typename WorkerIdT = Aws::String>
53 WorkerSummary& WithWorkerId(WorkerIdT&& value) { SetWorkerId(std::forward<WorkerIdT>(value)); return *this;}
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) { m_farmIdHasBeenSet = true; m_farmId = std::forward<FarmIdT>(value); }
64 template<typename FarmIdT = Aws::String>
65 WorkerSummary& WithFarmId(FarmIdT&& value) { SetFarmId(std::forward<FarmIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetFleetId() const { return m_fleetId; }
73 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
74 template<typename FleetIdT = Aws::String>
75 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
76 template<typename FleetIdT = Aws::String>
77 WorkerSummary& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
79
81
84 inline WorkerStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(WorkerStatus value) { m_statusHasBeenSet = true; m_status = value; }
87 inline WorkerSummary& WithStatus(WorkerStatus value) { SetStatus(value); return *this;}
89
91
94 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
95 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
96 template<typename HostPropertiesT = HostPropertiesResponse>
97 void SetHostProperties(HostPropertiesT&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::forward<HostPropertiesT>(value); }
98 template<typename HostPropertiesT = HostPropertiesResponse>
99 WorkerSummary& WithHostProperties(HostPropertiesT&& value) { SetHostProperties(std::forward<HostPropertiesT>(value)); return *this;}
101
103
106 inline const LogConfiguration& GetLog() const { return m_log; }
107 inline bool LogHasBeenSet() const { return m_logHasBeenSet; }
108 template<typename LogT = LogConfiguration>
109 void SetLog(LogT&& value) { m_logHasBeenSet = true; m_log = std::forward<LogT>(value); }
110 template<typename LogT = LogConfiguration>
111 WorkerSummary& WithLog(LogT&& value) { SetLog(std::forward<LogT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
119 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
120 template<typename CreatedAtT = Aws::Utils::DateTime>
121 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
122 template<typename CreatedAtT = Aws::Utils::DateTime>
123 WorkerSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
125
127
130 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
131 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
132 template<typename CreatedByT = Aws::String>
133 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
134 template<typename CreatedByT = Aws::String>
135 WorkerSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
143 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
144 template<typename UpdatedAtT = Aws::Utils::DateTime>
145 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
146 template<typename UpdatedAtT = Aws::Utils::DateTime>
147 WorkerSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
149
151
154 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
155 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
156 template<typename UpdatedByT = Aws::String>
157 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
158 template<typename UpdatedByT = Aws::String>
159 WorkerSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
161 private:
162
163 Aws::String m_workerId;
164 bool m_workerIdHasBeenSet = false;
165
166 Aws::String m_farmId;
167 bool m_farmIdHasBeenSet = false;
168
169 Aws::String m_fleetId;
170 bool m_fleetIdHasBeenSet = false;
171
173 bool m_statusHasBeenSet = false;
174
175 HostPropertiesResponse m_hostProperties;
176 bool m_hostPropertiesHasBeenSet = false;
177
178 LogConfiguration m_log;
179 bool m_logHasBeenSet = false;
180
181 Aws::Utils::DateTime m_createdAt{};
182 bool m_createdAtHasBeenSet = false;
183
184 Aws::String m_createdBy;
185 bool m_createdByHasBeenSet = false;
186
187 Aws::Utils::DateTime m_updatedAt{};
188 bool m_updatedAtHasBeenSet = false;
189
190 Aws::String m_updatedBy;
191 bool m_updatedByHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace deadline
196} // 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