AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
GetTimeOffResult.h
1
6#pragma once
7#include <aws/connectscheduling/ConnectScheduling_EXPORTS.h>
8#include <aws/connectscheduling/model/ActorInfo.h>
9#include <aws/connectscheduling/model/TimeOffStatus.h>
10#include <aws/connectscheduling/model/TimeOffValidationResult.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ConnectScheduling {
28namespace Model {
35 public:
36 AWS_CONNECTSCHEDULING_API GetTimeOffResult() = default;
39
41
44 inline const Aws::String& GetTimeOffId() const { return m_timeOffId; }
45 template <typename TimeOffIdT = Aws::String>
46 void SetTimeOffId(TimeOffIdT&& value) {
47 m_timeOffIdHasBeenSet = true;
48 m_timeOffId = std::forward<TimeOffIdT>(value);
49 }
50 template <typename TimeOffIdT = Aws::String>
51 GetTimeOffResult& WithTimeOffId(TimeOffIdT&& value) {
52 SetTimeOffId(std::forward<TimeOffIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetUserId() const { return m_userId; }
62 template <typename UserIdT = Aws::String>
63 void SetUserId(UserIdT&& value) {
64 m_userIdHasBeenSet = true;
65 m_userId = std::forward<UserIdT>(value);
66 }
67 template <typename UserIdT = Aws::String>
68 GetTimeOffResult& WithUserId(UserIdT&& value) {
69 SetUserId(std::forward<UserIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetShiftActivityId() const { return m_shiftActivityId; }
79 template <typename ShiftActivityIdT = Aws::String>
80 void SetShiftActivityId(ShiftActivityIdT&& value) {
81 m_shiftActivityIdHasBeenSet = true;
82 m_shiftActivityId = std::forward<ShiftActivityIdT>(value);
83 }
84 template <typename ShiftActivityIdT = Aws::String>
85 GetTimeOffResult& WithShiftActivityId(ShiftActivityIdT&& value) {
86 SetShiftActivityId(std::forward<ShiftActivityIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetStartAt() const { return m_startAt; }
97 template <typename StartAtT = Aws::Utils::DateTime>
98 void SetStartAt(StartAtT&& value) {
99 m_startAtHasBeenSet = true;
100 m_startAt = std::forward<StartAtT>(value);
101 }
102 template <typename StartAtT = Aws::Utils::DateTime>
103 GetTimeOffResult& WithStartAt(StartAtT&& value) {
104 SetStartAt(std::forward<StartAtT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetEndAt() const { return m_endAt; }
115 template <typename EndAtT = Aws::Utils::DateTime>
116 void SetEndAt(EndAtT&& value) {
117 m_endAtHasBeenSet = true;
118 m_endAt = std::forward<EndAtT>(value);
119 }
120 template <typename EndAtT = Aws::Utils::DateTime>
121 GetTimeOffResult& WithEndAt(EndAtT&& value) {
122 SetEndAt(std::forward<EndAtT>(value));
123 return *this;
124 }
126
128
138 inline TimeOffStatus GetStatus() const { return m_status; }
139 inline void SetStatus(TimeOffStatus value) {
140 m_statusHasBeenSet = true;
141 m_status = value;
142 }
144 SetStatus(value);
145 return *this;
146 }
148
150
157 inline const Aws::String& GetDescription() const { return m_description; }
158 template <typename DescriptionT = Aws::String>
159 void SetDescription(DescriptionT&& value) {
160 m_descriptionHasBeenSet = true;
161 m_description = std::forward<DescriptionT>(value);
162 }
163 template <typename DescriptionT = Aws::String>
164 GetTimeOffResult& WithDescription(DescriptionT&& value) {
165 SetDescription(std::forward<DescriptionT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Vector<TimeOffValidationResult>& GetValidationResults() const { return m_validationResults; }
175 template <typename ValidationResultsT = Aws::Vector<TimeOffValidationResult>>
176 void SetValidationResults(ValidationResultsT&& value) {
177 m_validationResultsHasBeenSet = true;
178 m_validationResults = std::forward<ValidationResultsT>(value);
179 }
180 template <typename ValidationResultsT = Aws::Vector<TimeOffValidationResult>>
181 GetTimeOffResult& WithValidationResults(ValidationResultsT&& value) {
182 SetValidationResults(std::forward<ValidationResultsT>(value));
183 return *this;
184 }
185 template <typename ValidationResultsT = TimeOffValidationResult>
186 GetTimeOffResult& AddValidationResults(ValidationResultsT&& value) {
187 m_validationResultsHasBeenSet = true;
188 m_validationResults.emplace_back(std::forward<ValidationResultsT>(value));
189 return *this;
190 }
192
194
198 inline const ActorInfo& GetCreatedBy() const { return m_createdBy; }
199 template <typename CreatedByT = ActorInfo>
200 void SetCreatedBy(CreatedByT&& value) {
201 m_createdByHasBeenSet = true;
202 m_createdBy = std::forward<CreatedByT>(value);
203 }
204 template <typename CreatedByT = ActorInfo>
205 GetTimeOffResult& WithCreatedBy(CreatedByT&& value) {
206 SetCreatedBy(std::forward<CreatedByT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
216 template <typename CreatedAtT = Aws::Utils::DateTime>
217 void SetCreatedAt(CreatedAtT&& value) {
218 m_createdAtHasBeenSet = true;
219 m_createdAt = std::forward<CreatedAtT>(value);
220 }
221 template <typename CreatedAtT = Aws::Utils::DateTime>
222 GetTimeOffResult& WithCreatedAt(CreatedAtT&& value) {
223 SetCreatedAt(std::forward<CreatedAtT>(value));
224 return *this;
225 }
227
229
238 inline const ActorInfo& GetUpdatedBy() const { return m_updatedBy; }
239 template <typename UpdatedByT = ActorInfo>
240 void SetUpdatedBy(UpdatedByT&& value) {
241 m_updatedByHasBeenSet = true;
242 m_updatedBy = std::forward<UpdatedByT>(value);
243 }
244 template <typename UpdatedByT = ActorInfo>
245 GetTimeOffResult& WithUpdatedBy(UpdatedByT&& value) {
246 SetUpdatedBy(std::forward<UpdatedByT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
256 template <typename UpdatedAtT = Aws::Utils::DateTime>
257 void SetUpdatedAt(UpdatedAtT&& value) {
258 m_updatedAtHasBeenSet = true;
259 m_updatedAt = std::forward<UpdatedAtT>(value);
260 }
261 template <typename UpdatedAtT = Aws::Utils::DateTime>
262 GetTimeOffResult& WithUpdatedAt(UpdatedAtT&& value) {
263 SetUpdatedAt(std::forward<UpdatedAtT>(value));
264 return *this;
265 }
267
269
270 inline const Aws::String& GetRequestId() const { return m_requestId; }
271 template <typename RequestIdT = Aws::String>
272 void SetRequestId(RequestIdT&& value) {
273 m_requestIdHasBeenSet = true;
274 m_requestId = std::forward<RequestIdT>(value);
275 }
276 template <typename RequestIdT = Aws::String>
277 GetTimeOffResult& WithRequestId(RequestIdT&& value) {
278 SetRequestId(std::forward<RequestIdT>(value));
279 return *this;
280 }
282 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
283
284 private:
285 Aws::String m_timeOffId;
286
287 Aws::String m_userId;
288
289 Aws::String m_shiftActivityId;
290
291 Aws::Utils::DateTime m_startAt{};
292
293 Aws::Utils::DateTime m_endAt{};
294
296
297 Aws::String m_description;
298
299 Aws::Vector<TimeOffValidationResult> m_validationResults;
300
301 ActorInfo m_createdBy;
302
303 Aws::Utils::DateTime m_createdAt{};
304
305 ActorInfo m_updatedBy;
306
307 Aws::Utils::DateTime m_updatedAt{};
308
309 Aws::String m_requestId;
310 Aws::Http::HttpResponseCode m_HttpResponseCode;
311 bool m_timeOffIdHasBeenSet = false;
312 bool m_userIdHasBeenSet = false;
313 bool m_shiftActivityIdHasBeenSet = false;
314 bool m_startAtHasBeenSet = false;
315 bool m_endAtHasBeenSet = false;
316 bool m_statusHasBeenSet = false;
317 bool m_descriptionHasBeenSet = false;
318 bool m_validationResultsHasBeenSet = false;
319 bool m_createdByHasBeenSet = false;
320 bool m_createdAtHasBeenSet = false;
321 bool m_updatedByHasBeenSet = false;
322 bool m_updatedAtHasBeenSet = false;
323 bool m_requestIdHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace ConnectScheduling
328} // namespace Aws
GetTimeOffResult & WithStartAt(StartAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetTimeOffResult & WithEndAt(EndAtT &&value)
AWS_CONNECTSCHEDULING_API GetTimeOffResult()=default
const Aws::Vector< TimeOffValidationResult > & GetValidationResults() const
AWS_CONNECTSCHEDULING_API GetTimeOffResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTimeOffResult & WithUserId(UserIdT &&value)
GetTimeOffResult & WithRequestId(RequestIdT &&value)
GetTimeOffResult & WithValidationResults(ValidationResultsT &&value)
GetTimeOffResult & WithShiftActivityId(ShiftActivityIdT &&value)
AWS_CONNECTSCHEDULING_API GetTimeOffResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetValidationResults(ValidationResultsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetTimeOffResult & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetTimeOffResult & WithUpdatedBy(UpdatedByT &&value)
GetTimeOffResult & WithTimeOffId(TimeOffIdT &&value)
GetTimeOffResult & WithCreatedAt(CreatedAtT &&value)
GetTimeOffResult & AddValidationResults(ValidationResultsT &&value)
const Aws::Utils::DateTime & GetStartAt() const
GetTimeOffResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetEndAt() const
void SetShiftActivityId(ShiftActivityIdT &&value)
GetTimeOffResult & WithStatus(TimeOffStatus value)
GetTimeOffResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue