AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateMaintenanceWindowRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SSM {
15namespace Model {
16
20 public:
21 AWS_SSM_API UpdateMaintenanceWindowRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindow"; }
28
29 AWS_SSM_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetWindowId() const { return m_windowId; }
38 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
39 template <typename WindowIdT = Aws::String>
40 void SetWindowId(WindowIdT&& value) {
41 m_windowIdHasBeenSet = true;
42 m_windowId = std::forward<WindowIdT>(value);
43 }
44 template <typename WindowIdT = Aws::String>
46 SetWindowId(std::forward<WindowIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
95 inline const Aws::String& GetStartDate() const { return m_startDate; }
96 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
97 template <typename StartDateT = Aws::String>
98 void SetStartDate(StartDateT&& value) {
99 m_startDateHasBeenSet = true;
100 m_startDate = std::forward<StartDateT>(value);
101 }
102 template <typename StartDateT = Aws::String>
104 SetStartDate(std::forward<StartDateT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetEndDate() const { return m_endDate; }
116 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
117 template <typename EndDateT = Aws::String>
118 void SetEndDate(EndDateT&& value) {
119 m_endDateHasBeenSet = true;
120 m_endDate = std::forward<EndDateT>(value);
121 }
122 template <typename EndDateT = Aws::String>
124 SetEndDate(std::forward<EndDateT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetSchedule() const { return m_schedule; }
135 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
136 template <typename ScheduleT = Aws::String>
137 void SetSchedule(ScheduleT&& value) {
138 m_scheduleHasBeenSet = true;
139 m_schedule = std::forward<ScheduleT>(value);
140 }
141 template <typename ScheduleT = Aws::String>
143 SetSchedule(std::forward<ScheduleT>(value));
144 return *this;
145 }
147
149
156 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
157 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
158 template <typename ScheduleTimezoneT = Aws::String>
159 void SetScheduleTimezone(ScheduleTimezoneT&& value) {
160 m_scheduleTimezoneHasBeenSet = true;
161 m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value);
162 }
163 template <typename ScheduleTimezoneT = Aws::String>
165 SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value));
166 return *this;
167 }
169
171
179 inline int GetScheduleOffset() const { return m_scheduleOffset; }
180 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
181 inline void SetScheduleOffset(int value) {
182 m_scheduleOffsetHasBeenSet = true;
183 m_scheduleOffset = value;
184 }
186 SetScheduleOffset(value);
187 return *this;
188 }
190
192
195 inline int GetDuration() const { return m_duration; }
196 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
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 bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
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 bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
231 inline void SetAllowUnassociatedTargets(bool value) {
232 m_allowUnassociatedTargetsHasBeenSet = true;
233 m_allowUnassociatedTargets = value;
234 }
237 return *this;
238 }
240
242
245 inline bool GetEnabled() const { return m_enabled; }
246 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
247 inline void SetEnabled(bool value) {
248 m_enabledHasBeenSet = true;
249 m_enabled = value;
250 }
252 SetEnabled(value);
253 return *this;
254 }
256
258
263 inline bool GetReplace() const { return m_replace; }
264 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
265 inline void SetReplace(bool value) {
266 m_replaceHasBeenSet = true;
267 m_replace = value;
268 }
270 SetReplace(value);
271 return *this;
272 }
274 private:
275 Aws::String m_windowId;
276
277 Aws::String m_name;
278
279 Aws::String m_description;
280
281 Aws::String m_startDate;
282
283 Aws::String m_endDate;
284
285 Aws::String m_schedule;
286
287 Aws::String m_scheduleTimezone;
288
289 int m_scheduleOffset{0};
290
291 int m_duration{0};
292
293 int m_cutoff{0};
294
295 bool m_allowUnassociatedTargets{false};
296
297 bool m_enabled{false};
298
299 bool m_replace{false};
300 bool m_windowIdHasBeenSet = false;
301 bool m_nameHasBeenSet = false;
302 bool m_descriptionHasBeenSet = false;
303 bool m_startDateHasBeenSet = false;
304 bool m_endDateHasBeenSet = false;
305 bool m_scheduleHasBeenSet = false;
306 bool m_scheduleTimezoneHasBeenSet = false;
307 bool m_scheduleOffsetHasBeenSet = false;
308 bool m_durationHasBeenSet = false;
309 bool m_cutoffHasBeenSet = false;
310 bool m_allowUnassociatedTargetsHasBeenSet = false;
311 bool m_enabledHasBeenSet = false;
312 bool m_replaceHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace SSM
317} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateMaintenanceWindowRequest & WithEndDate(EndDateT &&value)
UpdateMaintenanceWindowRequest & WithStartDate(StartDateT &&value)
UpdateMaintenanceWindowRequest & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowRequest & WithScheduleOffset(int value)
UpdateMaintenanceWindowRequest & WithDescription(DescriptionT &&value)
UpdateMaintenanceWindowRequest & WithEnabled(bool value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowRequest & WithName(NameT &&value)
UpdateMaintenanceWindowRequest & WithSchedule(ScheduleT &&value)
UpdateMaintenanceWindowRequest & WithAllowUnassociatedTargets(bool value)
UpdateMaintenanceWindowRequest & WithDuration(int value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateMaintenanceWindowRequest & WithCutoff(int value)
UpdateMaintenanceWindowRequest & WithReplace(bool value)
UpdateMaintenanceWindowRequest & WithScheduleTimezone(ScheduleTimezoneT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String