AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetMaintenanceWindowResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
29 {
30 public:
31 AWS_SSM_API GetMaintenanceWindowResult() = default;
34
35
37
40 inline const Aws::String& GetWindowId() const { return m_windowId; }
41 template<typename WindowIdT = Aws::String>
42 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
43 template<typename WindowIdT = Aws::String>
44 GetMaintenanceWindowResult& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 GetMaintenanceWindowResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 GetMaintenanceWindowResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
75 inline const Aws::String& GetStartDate() const { return m_startDate; }
76 template<typename StartDateT = Aws::String>
77 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
78 template<typename StartDateT = Aws::String>
79 GetMaintenanceWindowResult& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
81
83
88 inline const Aws::String& GetEndDate() const { return m_endDate; }
89 template<typename EndDateT = Aws::String>
90 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
91 template<typename EndDateT = Aws::String>
92 GetMaintenanceWindowResult& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
94
96
100 inline const Aws::String& GetSchedule() const { return m_schedule; }
101 template<typename ScheduleT = Aws::String>
102 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
103 template<typename ScheduleT = Aws::String>
104 GetMaintenanceWindowResult& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
106
108
115 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
116 template<typename ScheduleTimezoneT = Aws::String>
117 void SetScheduleTimezone(ScheduleTimezoneT&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value); }
118 template<typename ScheduleTimezoneT = Aws::String>
119 GetMaintenanceWindowResult& WithScheduleTimezone(ScheduleTimezoneT&& value) { SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value)); return *this;}
121
123
127 inline int GetScheduleOffset() const { return m_scheduleOffset; }
128 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
129 inline GetMaintenanceWindowResult& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
131
133
137 inline const Aws::String& GetNextExecutionTime() const { return m_nextExecutionTime; }
138 template<typename NextExecutionTimeT = Aws::String>
139 void SetNextExecutionTime(NextExecutionTimeT&& value) { m_nextExecutionTimeHasBeenSet = true; m_nextExecutionTime = std::forward<NextExecutionTimeT>(value); }
140 template<typename NextExecutionTimeT = Aws::String>
141 GetMaintenanceWindowResult& WithNextExecutionTime(NextExecutionTimeT&& value) { SetNextExecutionTime(std::forward<NextExecutionTimeT>(value)); return *this;}
143
145
148 inline int GetDuration() const { return m_duration; }
149 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
150 inline GetMaintenanceWindowResult& WithDuration(int value) { SetDuration(value); return *this;}
152
154
158 inline int GetCutoff() const { return m_cutoff; }
159 inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
160 inline GetMaintenanceWindowResult& WithCutoff(int value) { SetCutoff(value); return *this;}
162
164
168 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
169 inline void SetAllowUnassociatedTargets(bool value) { m_allowUnassociatedTargetsHasBeenSet = true; m_allowUnassociatedTargets = value; }
172
174
177 inline bool GetEnabled() const { return m_enabled; }
178 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
179 inline GetMaintenanceWindowResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
181
183
186 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
187 template<typename CreatedDateT = Aws::Utils::DateTime>
188 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
189 template<typename CreatedDateT = Aws::Utils::DateTime>
190 GetMaintenanceWindowResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
192
194
197 inline const Aws::Utils::DateTime& GetModifiedDate() const { return m_modifiedDate; }
198 template<typename ModifiedDateT = Aws::Utils::DateTime>
199 void SetModifiedDate(ModifiedDateT&& value) { m_modifiedDateHasBeenSet = true; m_modifiedDate = std::forward<ModifiedDateT>(value); }
200 template<typename ModifiedDateT = Aws::Utils::DateTime>
201 GetMaintenanceWindowResult& WithModifiedDate(ModifiedDateT&& value) { SetModifiedDate(std::forward<ModifiedDateT>(value)); return *this;}
203
205
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 template<typename RequestIdT = Aws::String>
208 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
209 template<typename RequestIdT = Aws::String>
210 GetMaintenanceWindowResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
212 private:
213
214 Aws::String m_windowId;
215 bool m_windowIdHasBeenSet = false;
216
217 Aws::String m_name;
218 bool m_nameHasBeenSet = false;
219
220 Aws::String m_description;
221 bool m_descriptionHasBeenSet = false;
222
223 Aws::String m_startDate;
224 bool m_startDateHasBeenSet = false;
225
226 Aws::String m_endDate;
227 bool m_endDateHasBeenSet = false;
228
229 Aws::String m_schedule;
230 bool m_scheduleHasBeenSet = false;
231
232 Aws::String m_scheduleTimezone;
233 bool m_scheduleTimezoneHasBeenSet = false;
234
235 int m_scheduleOffset{0};
236 bool m_scheduleOffsetHasBeenSet = false;
237
238 Aws::String m_nextExecutionTime;
239 bool m_nextExecutionTimeHasBeenSet = false;
240
241 int m_duration{0};
242 bool m_durationHasBeenSet = false;
243
244 int m_cutoff{0};
245 bool m_cutoffHasBeenSet = false;
246
247 bool m_allowUnassociatedTargets{false};
248 bool m_allowUnassociatedTargetsHasBeenSet = false;
249
250 bool m_enabled{false};
251 bool m_enabledHasBeenSet = false;
252
253 Aws::Utils::DateTime m_createdDate{};
254 bool m_createdDateHasBeenSet = false;
255
256 Aws::Utils::DateTime m_modifiedDate{};
257 bool m_modifiedDateHasBeenSet = false;
258
259 Aws::String m_requestId;
260 bool m_requestIdHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace SSM
265} // 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