AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetMaintenanceWindowResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
26 public:
27 AWS_SSM_API GetMaintenanceWindowResult() = default;
30
32
35 inline const Aws::String& GetWindowId() const { return m_windowId; }
36 template <typename WindowIdT = Aws::String>
37 void SetWindowId(WindowIdT&& value) {
38 m_windowIdHasBeenSet = true;
39 m_windowId = std::forward<WindowIdT>(value);
40 }
41 template <typename WindowIdT = Aws::String>
43 SetWindowId(std::forward<WindowIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetStartDate() const { return m_startDate; }
89 template <typename StartDateT = Aws::String>
90 void SetStartDate(StartDateT&& value) {
91 m_startDateHasBeenSet = true;
92 m_startDate = std::forward<StartDateT>(value);
93 }
94 template <typename StartDateT = Aws::String>
96 SetStartDate(std::forward<StartDateT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::String& GetEndDate() const { return m_endDate; }
108 template <typename EndDateT = Aws::String>
109 void SetEndDate(EndDateT&& value) {
110 m_endDateHasBeenSet = true;
111 m_endDate = std::forward<EndDateT>(value);
112 }
113 template <typename EndDateT = Aws::String>
115 SetEndDate(std::forward<EndDateT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetSchedule() const { return m_schedule; }
126 template <typename ScheduleT = Aws::String>
127 void SetSchedule(ScheduleT&& value) {
128 m_scheduleHasBeenSet = true;
129 m_schedule = std::forward<ScheduleT>(value);
130 }
131 template <typename ScheduleT = Aws::String>
133 SetSchedule(std::forward<ScheduleT>(value));
134 return *this;
135 }
137
139
146 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
147 template <typename ScheduleTimezoneT = Aws::String>
148 void SetScheduleTimezone(ScheduleTimezoneT&& value) {
149 m_scheduleTimezoneHasBeenSet = true;
150 m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value);
151 }
152 template <typename ScheduleTimezoneT = Aws::String>
154 SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value));
155 return *this;
156 }
158
160
164 inline int GetScheduleOffset() const { return m_scheduleOffset; }
165 inline void SetScheduleOffset(int value) {
166 m_scheduleOffsetHasBeenSet = true;
167 m_scheduleOffset = value;
168 }
170 SetScheduleOffset(value);
171 return *this;
172 }
174
176
180 inline const Aws::String& GetNextExecutionTime() const { return m_nextExecutionTime; }
181 template <typename NextExecutionTimeT = Aws::String>
182 void SetNextExecutionTime(NextExecutionTimeT&& value) {
183 m_nextExecutionTimeHasBeenSet = true;
184 m_nextExecutionTime = std::forward<NextExecutionTimeT>(value);
185 }
186 template <typename NextExecutionTimeT = Aws::String>
188 SetNextExecutionTime(std::forward<NextExecutionTimeT>(value));
189 return *this;
190 }
192
194
197 inline int GetDuration() const { return m_duration; }
198 inline void SetDuration(int value) {
199 m_durationHasBeenSet = true;
200 m_duration = value;
201 }
203 SetDuration(value);
204 return *this;
205 }
207
209
213 inline int GetCutoff() const { return m_cutoff; }
214 inline void SetCutoff(int value) {
215 m_cutoffHasBeenSet = true;
216 m_cutoff = value;
217 }
219 SetCutoff(value);
220 return *this;
221 }
223
225
229 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
230 inline void SetAllowUnassociatedTargets(bool value) {
231 m_allowUnassociatedTargetsHasBeenSet = true;
232 m_allowUnassociatedTargets = value;
233 }
236 return *this;
237 }
239
241
244 inline bool GetEnabled() const { return m_enabled; }
245 inline void SetEnabled(bool value) {
246 m_enabledHasBeenSet = true;
247 m_enabled = value;
248 }
250 SetEnabled(value);
251 return *this;
252 }
254
256
259 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
260 template <typename CreatedDateT = Aws::Utils::DateTime>
261 void SetCreatedDate(CreatedDateT&& value) {
262 m_createdDateHasBeenSet = true;
263 m_createdDate = std::forward<CreatedDateT>(value);
264 }
265 template <typename CreatedDateT = Aws::Utils::DateTime>
267 SetCreatedDate(std::forward<CreatedDateT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
277 template <typename ModifiedDateT = Aws::Utils::DateTime>
278 void SetModifiedDate(ModifiedDateT&& value) {
279 m_modifiedDateHasBeenSet = true;
280 m_modifiedDate = std::forward<ModifiedDateT>(value);
281 }
282 template <typename ModifiedDateT = Aws::Utils::DateTime>
284 SetModifiedDate(std::forward<ModifiedDateT>(value));
285 return *this;
286 }
288
290
291 inline const Aws::String& GetRequestId() const { return m_requestId; }
292 template <typename RequestIdT = Aws::String>
293 void SetRequestId(RequestIdT&& value) {
294 m_requestIdHasBeenSet = true;
295 m_requestId = std::forward<RequestIdT>(value);
296 }
297 template <typename RequestIdT = Aws::String>
299 SetRequestId(std::forward<RequestIdT>(value));
300 return *this;
301 }
303 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
304
305 private:
306 Aws::String m_windowId;
307
308 Aws::String m_name;
309
310 Aws::String m_description;
311
312 Aws::String m_startDate;
313
314 Aws::String m_endDate;
315
316 Aws::String m_schedule;
317
318 Aws::String m_scheduleTimezone;
319
320 int m_scheduleOffset{0};
321
322 Aws::String m_nextExecutionTime;
323
324 int m_duration{0};
325
326 int m_cutoff{0};
327
328 bool m_allowUnassociatedTargets{false};
329
330 bool m_enabled{false};
331
332 Aws::Utils::DateTime m_createdDate{};
333
334 Aws::Utils::DateTime m_modifiedDate{};
335
336 Aws::String m_requestId;
337 Aws::Http::HttpResponseCode m_HttpResponseCode;
338 bool m_windowIdHasBeenSet = false;
339 bool m_nameHasBeenSet = false;
340 bool m_descriptionHasBeenSet = false;
341 bool m_startDateHasBeenSet = false;
342 bool m_endDateHasBeenSet = false;
343 bool m_scheduleHasBeenSet = false;
344 bool m_scheduleTimezoneHasBeenSet = false;
345 bool m_scheduleOffsetHasBeenSet = false;
346 bool m_nextExecutionTimeHasBeenSet = false;
347 bool m_durationHasBeenSet = false;
348 bool m_cutoffHasBeenSet = false;
349 bool m_allowUnassociatedTargetsHasBeenSet = false;
350 bool m_enabledHasBeenSet = false;
351 bool m_createdDateHasBeenSet = false;
352 bool m_modifiedDateHasBeenSet = false;
353 bool m_requestIdHasBeenSet = false;
354};
355
356} // namespace Model
357} // namespace SSM
358} // namespace Aws
GetMaintenanceWindowResult & WithEnabled(bool value)
GetMaintenanceWindowResult & WithCreatedDate(CreatedDateT &&value)
GetMaintenanceWindowResult & WithEndDate(EndDateT &&value)
AWS_SSM_API GetMaintenanceWindowResult()=default
const Aws::Utils::DateTime & GetModifiedDate() const
GetMaintenanceWindowResult & WithDuration(int value)
GetMaintenanceWindowResult & WithModifiedDate(ModifiedDateT &&value)
GetMaintenanceWindowResult & WithWindowId(WindowIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMaintenanceWindowResult & WithAllowUnassociatedTargets(bool value)
GetMaintenanceWindowResult & WithNextExecutionTime(NextExecutionTimeT &&value)
GetMaintenanceWindowResult & WithName(NameT &&value)
GetMaintenanceWindowResult & WithScheduleOffset(int value)
GetMaintenanceWindowResult & WithDescription(DescriptionT &&value)
GetMaintenanceWindowResult & WithStartDate(StartDateT &&value)
AWS_SSM_API GetMaintenanceWindowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowResult & WithScheduleTimezone(ScheduleTimezoneT &&value)
AWS_SSM_API GetMaintenanceWindowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowResult & WithRequestId(RequestIdT &&value)
GetMaintenanceWindowResult & WithSchedule(ScheduleT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetMaintenanceWindowResult & WithCutoff(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue