AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMaintenanceWindowRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SSM
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindow"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetWindowId() const{ return m_windowId; }
42 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
43 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
44 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
45 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
46 inline UpdateMaintenanceWindowRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
47 inline UpdateMaintenanceWindowRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
48 inline UpdateMaintenanceWindowRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline UpdateMaintenanceWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline UpdateMaintenanceWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline UpdateMaintenanceWindowRequest& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline UpdateMaintenanceWindowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline UpdateMaintenanceWindowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline UpdateMaintenanceWindowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
87 inline const Aws::String& GetStartDate() const{ return m_startDate; }
88 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
89 inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
90 inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
91 inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
92 inline UpdateMaintenanceWindowRequest& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
93 inline UpdateMaintenanceWindowRequest& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
94 inline UpdateMaintenanceWindowRequest& WithStartDate(const char* value) { SetStartDate(value); return *this;}
96
98
103 inline const Aws::String& GetEndDate() const{ return m_endDate; }
104 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
105 inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
106 inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
107 inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
108 inline UpdateMaintenanceWindowRequest& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
109 inline UpdateMaintenanceWindowRequest& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
110 inline UpdateMaintenanceWindowRequest& WithEndDate(const char* value) { SetEndDate(value); return *this;}
112
114
118 inline const Aws::String& GetSchedule() const{ return m_schedule; }
119 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
120 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
121 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
122 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
123 inline UpdateMaintenanceWindowRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
124 inline UpdateMaintenanceWindowRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
125 inline UpdateMaintenanceWindowRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
127
129
136 inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; }
137 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
138 inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = value; }
139 inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::move(value); }
140 inline void SetScheduleTimezone(const char* value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone.assign(value); }
142 inline UpdateMaintenanceWindowRequest& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;}
143 inline UpdateMaintenanceWindowRequest& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;}
145
147
155 inline int GetScheduleOffset() const{ return m_scheduleOffset; }
156 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
157 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
158 inline UpdateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
160
162
165 inline int GetDuration() const{ return m_duration; }
166 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
167 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
168 inline UpdateMaintenanceWindowRequest& WithDuration(int value) { SetDuration(value); return *this;}
170
172
176 inline int GetCutoff() const{ return m_cutoff; }
177 inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
178 inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
179 inline UpdateMaintenanceWindowRequest& WithCutoff(int value) { SetCutoff(value); return *this;}
181
183
187 inline bool GetAllowUnassociatedTargets() const{ return m_allowUnassociatedTargets; }
188 inline bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
189 inline void SetAllowUnassociatedTargets(bool value) { m_allowUnassociatedTargetsHasBeenSet = true; m_allowUnassociatedTargets = value; }
192
194
197 inline bool GetEnabled() const{ return m_enabled; }
198 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
199 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
200 inline UpdateMaintenanceWindowRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
202
204
209 inline bool GetReplace() const{ return m_replace; }
210 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
211 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
212 inline UpdateMaintenanceWindowRequest& WithReplace(bool value) { SetReplace(value); return *this;}
214 private:
215
216 Aws::String m_windowId;
217 bool m_windowIdHasBeenSet = false;
218
219 Aws::String m_name;
220 bool m_nameHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 Aws::String m_startDate;
226 bool m_startDateHasBeenSet = false;
227
228 Aws::String m_endDate;
229 bool m_endDateHasBeenSet = false;
230
231 Aws::String m_schedule;
232 bool m_scheduleHasBeenSet = false;
233
234 Aws::String m_scheduleTimezone;
235 bool m_scheduleTimezoneHasBeenSet = false;
236
237 int m_scheduleOffset;
238 bool m_scheduleOffsetHasBeenSet = false;
239
240 int m_duration;
241 bool m_durationHasBeenSet = false;
242
243 int m_cutoff;
244 bool m_cutoffHasBeenSet = false;
245
246 bool m_allowUnassociatedTargets;
247 bool m_allowUnassociatedTargetsHasBeenSet = false;
248
249 bool m_enabled;
250 bool m_enabledHasBeenSet = false;
251
252 bool m_replace;
253 bool m_replaceHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace SSM
258} // namespace Aws
UpdateMaintenanceWindowRequest & WithSchedule(Aws::String &&value)
UpdateMaintenanceWindowRequest & WithWindowId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateMaintenanceWindowRequest & WithName(const char *value)
UpdateMaintenanceWindowRequest & WithDescription(const Aws::String &value)
UpdateMaintenanceWindowRequest & WithScheduleTimezone(Aws::String &&value)
UpdateMaintenanceWindowRequest & WithScheduleOffset(int value)
UpdateMaintenanceWindowRequest & WithStartDate(const char *value)
UpdateMaintenanceWindowRequest & WithSchedule(const Aws::String &value)
UpdateMaintenanceWindowRequest & WithEnabled(bool value)
UpdateMaintenanceWindowRequest & WithEndDate(Aws::String &&value)
UpdateMaintenanceWindowRequest & WithWindowId(const Aws::String &value)
UpdateMaintenanceWindowRequest & WithEndDate(const Aws::String &value)
UpdateMaintenanceWindowRequest & WithDescription(Aws::String &&value)
UpdateMaintenanceWindowRequest & WithStartDate(Aws::String &&value)
UpdateMaintenanceWindowRequest & WithScheduleTimezone(const Aws::String &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowRequest & WithName(const Aws::String &value)
UpdateMaintenanceWindowRequest & WithWindowId(const char *value)
UpdateMaintenanceWindowRequest & WithName(Aws::String &&value)
UpdateMaintenanceWindowRequest & WithScheduleTimezone(const char *value)
UpdateMaintenanceWindowRequest & WithSchedule(const char *value)
UpdateMaintenanceWindowRequest & WithEndDate(const char *value)
UpdateMaintenanceWindowRequest & WithAllowUnassociatedTargets(bool value)
UpdateMaintenanceWindowRequest & WithDuration(int value)
UpdateMaintenanceWindowRequest & WithStartDate(const Aws::String &value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateMaintenanceWindowRequest & WithCutoff(int value)
UpdateMaintenanceWindowRequest & WithDescription(const char *value)
UpdateMaintenanceWindowRequest & WithReplace(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String