AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkerSearchSummary.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/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 WorkerSearchSummary() = default;
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFleetId() const { return m_fleetId; }
48 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
49 template<typename FleetIdT = Aws::String>
50 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
51 template<typename FleetIdT = Aws::String>
52 WorkerSearchSummary& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetWorkerId() const { return m_workerId; }
60 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
61 template<typename WorkerIdT = Aws::String>
62 void SetWorkerId(WorkerIdT&& value) { m_workerIdHasBeenSet = true; m_workerId = std::forward<WorkerIdT>(value); }
63 template<typename WorkerIdT = Aws::String>
64 WorkerSearchSummary& WithWorkerId(WorkerIdT&& value) { SetWorkerId(std::forward<WorkerIdT>(value)); return *this;}
66
68
71 inline WorkerStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(WorkerStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline WorkerSearchSummary& WithStatus(WorkerStatus value) { SetStatus(value); return *this;}
76
78
81 inline const HostPropertiesResponse& GetHostProperties() const { return m_hostProperties; }
82 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
83 template<typename HostPropertiesT = HostPropertiesResponse>
84 void SetHostProperties(HostPropertiesT&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::forward<HostPropertiesT>(value); }
85 template<typename HostPropertiesT = HostPropertiesResponse>
86 WorkerSearchSummary& WithHostProperties(HostPropertiesT&& value) { SetHostProperties(std::forward<HostPropertiesT>(value)); return *this;}
88
90
93 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
94 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
95 template<typename CreatedByT = Aws::String>
96 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
97 template<typename CreatedByT = Aws::String>
98 WorkerSearchSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
106 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
107 template<typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
109 template<typename CreatedAtT = Aws::Utils::DateTime>
110 WorkerSearchSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
112
114
117 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
118 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
119 template<typename UpdatedByT = Aws::String>
120 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
121 template<typename UpdatedByT = Aws::String>
122 WorkerSearchSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
131 template<typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
133 template<typename UpdatedAtT = Aws::Utils::DateTime>
134 WorkerSearchSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
136 private:
137
138 Aws::String m_fleetId;
139 bool m_fleetIdHasBeenSet = false;
140
141 Aws::String m_workerId;
142 bool m_workerIdHasBeenSet = false;
143
145 bool m_statusHasBeenSet = false;
146
147 HostPropertiesResponse m_hostProperties;
148 bool m_hostPropertiesHasBeenSet = false;
149
150 Aws::String m_createdBy;
151 bool m_createdByHasBeenSet = false;
152
153 Aws::Utils::DateTime m_createdAt{};
154 bool m_createdAtHasBeenSet = false;
155
156 Aws::String m_updatedBy;
157 bool m_updatedByHasBeenSet = false;
158
159 Aws::Utils::DateTime m_updatedAt{};
160 bool m_updatedAtHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace deadline
165} // namespace Aws
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerSearchSummary & WithCreatedAt(CreatedAtT &&value)
AWS_DEADLINE_API WorkerSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
WorkerSearchSummary & WithUpdatedBy(UpdatedByT &&value)
WorkerSearchSummary & WithHostProperties(HostPropertiesT &&value)
WorkerSearchSummary & WithFleetId(FleetIdT &&value)
AWS_DEADLINE_API WorkerSearchSummary(Aws::Utils::Json::JsonView jsonValue)
WorkerSearchSummary & WithStatus(WorkerStatus value)
WorkerSearchSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
WorkerSearchSummary & WithCreatedBy(CreatedByT &&value)
void SetHostProperties(HostPropertiesT &&value)
WorkerSearchSummary & WithWorkerId(WorkerIdT &&value)
AWS_DEADLINE_API WorkerSearchSummary()=default
const HostPropertiesResponse & GetHostProperties() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue