AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetMaintenanceWindowResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
25 public:
26 AWS_SSM_API GetMaintenanceWindowResult() = default;
29
31
34 inline const Aws::String& GetWindowId() const { return m_windowId; }
35 template <typename WindowIdT = Aws::String>
36 void SetWindowId(WindowIdT&& value) {
37 m_windowIdHasBeenSet = true;
38 m_windowId = std::forward<WindowIdT>(value);
39 }
40 template <typename WindowIdT = Aws::String>
42 SetWindowId(std::forward<WindowIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 template <typename NameT = Aws::String>
53 void SetName(NameT&& value) {
54 m_nameHasBeenSet = true;
55 m_name = std::forward<NameT>(value);
56 }
57 template <typename NameT = Aws::String>
59 SetName(std::forward<NameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetStartDate() const { return m_startDate; }
88 template <typename StartDateT = Aws::String>
89 void SetStartDate(StartDateT&& value) {
90 m_startDateHasBeenSet = true;
91 m_startDate = std::forward<StartDateT>(value);
92 }
93 template <typename StartDateT = Aws::String>
95 SetStartDate(std::forward<StartDateT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetEndDate() const { return m_endDate; }
107 template <typename EndDateT = Aws::String>
108 void SetEndDate(EndDateT&& value) {
109 m_endDateHasBeenSet = true;
110 m_endDate = std::forward<EndDateT>(value);
111 }
112 template <typename EndDateT = Aws::String>
114 SetEndDate(std::forward<EndDateT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetSchedule() const { return m_schedule; }
125 template <typename ScheduleT = Aws::String>
126 void SetSchedule(ScheduleT&& value) {
127 m_scheduleHasBeenSet = true;
128 m_schedule = std::forward<ScheduleT>(value);
129 }
130 template <typename ScheduleT = Aws::String>
132 SetSchedule(std::forward<ScheduleT>(value));
133 return *this;
134 }
136
138
145 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
146 template <typename ScheduleTimezoneT = Aws::String>
147 void SetScheduleTimezone(ScheduleTimezoneT&& value) {
148 m_scheduleTimezoneHasBeenSet = true;
149 m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value);
150 }
151 template <typename ScheduleTimezoneT = Aws::String>
153 SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value));
154 return *this;
155 }
157
159
163 inline int GetScheduleOffset() const { return m_scheduleOffset; }
164 inline void SetScheduleOffset(int value) {
165 m_scheduleOffsetHasBeenSet = true;
166 m_scheduleOffset = value;
167 }
169 SetScheduleOffset(value);
170 return *this;
171 }
173
175
179 inline const Aws::String& GetNextExecutionTime() const { return m_nextExecutionTime; }
180 template <typename NextExecutionTimeT = Aws::String>
181 void SetNextExecutionTime(NextExecutionTimeT&& value) {
182 m_nextExecutionTimeHasBeenSet = true;
183 m_nextExecutionTime = std::forward<NextExecutionTimeT>(value);
184 }
185 template <typename NextExecutionTimeT = Aws::String>
187 SetNextExecutionTime(std::forward<NextExecutionTimeT>(value));
188 return *this;
189 }
191
193
196 inline int GetDuration() const { return m_duration; }
197 inline void SetDuration(int value) {
198 m_durationHasBeenSet = true;
199 m_duration = value;
200 }
202 SetDuration(value);
203 return *this;
204 }
206
208
212 inline int GetCutoff() const { return m_cutoff; }
213 inline void SetCutoff(int value) {
214 m_cutoffHasBeenSet = true;
215 m_cutoff = value;
216 }
218 SetCutoff(value);
219 return *this;
220 }
222
224
228 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
229 inline void SetAllowUnassociatedTargets(bool value) {
230 m_allowUnassociatedTargetsHasBeenSet = true;
231 m_allowUnassociatedTargets = value;
232 }
235 return *this;
236 }
238
240
243 inline bool GetEnabled() const { return m_enabled; }
244 inline void SetEnabled(bool value) {
245 m_enabledHasBeenSet = true;
246 m_enabled = value;
247 }
249 SetEnabled(value);
250 return *this;
251 }
253
255
258 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
259 template <typename CreatedDateT = Aws::Utils::DateTime>
260 void SetCreatedDate(CreatedDateT&& value) {
261 m_createdDateHasBeenSet = true;
262 m_createdDate = std::forward<CreatedDateT>(value);
263 }
264 template <typename CreatedDateT = Aws::Utils::DateTime>
266 SetCreatedDate(std::forward<CreatedDateT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
276 template <typename ModifiedDateT = Aws::Utils::DateTime>
277 void SetModifiedDate(ModifiedDateT&& value) {
278 m_modifiedDateHasBeenSet = true;
279 m_modifiedDate = std::forward<ModifiedDateT>(value);
280 }
281 template <typename ModifiedDateT = Aws::Utils::DateTime>
283 SetModifiedDate(std::forward<ModifiedDateT>(value));
284 return *this;
285 }
287
289
290 inline const Aws::String& GetRequestId() const { return m_requestId; }
291 template <typename RequestIdT = Aws::String>
292 void SetRequestId(RequestIdT&& value) {
293 m_requestIdHasBeenSet = true;
294 m_requestId = std::forward<RequestIdT>(value);
295 }
296 template <typename RequestIdT = Aws::String>
298 SetRequestId(std::forward<RequestIdT>(value));
299 return *this;
300 }
302 private:
303 Aws::String m_windowId;
304
305 Aws::String m_name;
306
307 Aws::String m_description;
308
309 Aws::String m_startDate;
310
311 Aws::String m_endDate;
312
313 Aws::String m_schedule;
314
315 Aws::String m_scheduleTimezone;
316
317 int m_scheduleOffset{0};
318
319 Aws::String m_nextExecutionTime;
320
321 int m_duration{0};
322
323 int m_cutoff{0};
324
325 bool m_allowUnassociatedTargets{false};
326
327 bool m_enabled{false};
328
329 Aws::Utils::DateTime m_createdDate{};
330
331 Aws::Utils::DateTime m_modifiedDate{};
332
333 Aws::String m_requestId;
334 bool m_windowIdHasBeenSet = false;
335 bool m_nameHasBeenSet = false;
336 bool m_descriptionHasBeenSet = false;
337 bool m_startDateHasBeenSet = false;
338 bool m_endDateHasBeenSet = false;
339 bool m_scheduleHasBeenSet = false;
340 bool m_scheduleTimezoneHasBeenSet = false;
341 bool m_scheduleOffsetHasBeenSet = false;
342 bool m_nextExecutionTimeHasBeenSet = false;
343 bool m_durationHasBeenSet = false;
344 bool m_cutoffHasBeenSet = false;
345 bool m_allowUnassociatedTargetsHasBeenSet = false;
346 bool m_enabledHasBeenSet = false;
347 bool m_createdDateHasBeenSet = false;
348 bool m_modifiedDateHasBeenSet = false;
349 bool m_requestIdHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace SSM
354} // 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)
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