AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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:
24 AWS_SSM_API UpdateMaintenanceWindowRequest() = default;
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 template<typename WindowIdT = Aws::String>
44 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
45 template<typename WindowIdT = Aws::String>
46 UpdateMaintenanceWindowRequest& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateMaintenanceWindowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateMaintenanceWindowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
81 inline const Aws::String& GetStartDate() const { return m_startDate; }
82 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
83 template<typename StartDateT = Aws::String>
84 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
85 template<typename StartDateT = Aws::String>
86 UpdateMaintenanceWindowRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
88
90
95 inline const Aws::String& GetEndDate() const { return m_endDate; }
96 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
97 template<typename EndDateT = Aws::String>
98 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
99 template<typename EndDateT = Aws::String>
100 UpdateMaintenanceWindowRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
102
104
108 inline const Aws::String& GetSchedule() const { return m_schedule; }
109 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
110 template<typename ScheduleT = Aws::String>
111 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
112 template<typename ScheduleT = Aws::String>
113 UpdateMaintenanceWindowRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
115
117
124 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
125 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
126 template<typename ScheduleTimezoneT = Aws::String>
127 void SetScheduleTimezone(ScheduleTimezoneT&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value); }
128 template<typename ScheduleTimezoneT = Aws::String>
129 UpdateMaintenanceWindowRequest& WithScheduleTimezone(ScheduleTimezoneT&& value) { SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value)); return *this;}
131
133
141 inline int GetScheduleOffset() const { return m_scheduleOffset; }
142 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
143 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
144 inline UpdateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
146
148
151 inline int GetDuration() const { return m_duration; }
152 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
153 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
154 inline UpdateMaintenanceWindowRequest& WithDuration(int value) { SetDuration(value); return *this;}
156
158
162 inline int GetCutoff() const { return m_cutoff; }
163 inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
164 inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
165 inline UpdateMaintenanceWindowRequest& WithCutoff(int value) { SetCutoff(value); return *this;}
167
169
173 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
174 inline bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
175 inline void SetAllowUnassociatedTargets(bool value) { m_allowUnassociatedTargetsHasBeenSet = true; m_allowUnassociatedTargets = value; }
178
180
183 inline bool GetEnabled() const { return m_enabled; }
184 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
185 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
186 inline UpdateMaintenanceWindowRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
188
190
195 inline bool GetReplace() const { return m_replace; }
196 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
197 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
198 inline UpdateMaintenanceWindowRequest& WithReplace(bool value) { SetReplace(value); return *this;}
200 private:
201
202 Aws::String m_windowId;
203 bool m_windowIdHasBeenSet = false;
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 Aws::String m_startDate;
212 bool m_startDateHasBeenSet = false;
213
214 Aws::String m_endDate;
215 bool m_endDateHasBeenSet = false;
216
217 Aws::String m_schedule;
218 bool m_scheduleHasBeenSet = false;
219
220 Aws::String m_scheduleTimezone;
221 bool m_scheduleTimezoneHasBeenSet = false;
222
223 int m_scheduleOffset{0};
224 bool m_scheduleOffsetHasBeenSet = false;
225
226 int m_duration{0};
227 bool m_durationHasBeenSet = false;
228
229 int m_cutoff{0};
230 bool m_cutoffHasBeenSet = false;
231
232 bool m_allowUnassociatedTargets{false};
233 bool m_allowUnassociatedTargetsHasBeenSet = false;
234
235 bool m_enabled{false};
236 bool m_enabledHasBeenSet = false;
237
238 bool m_replace{false};
239 bool m_replaceHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace SSM
244} // 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