AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateMaintenanceWindowResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 UpdateMaintenanceWindowResult() = 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
178 inline int GetDuration() const { return m_duration; }
179 inline void SetDuration(int value) {
180 m_durationHasBeenSet = true;
181 m_duration = value;
182 }
184 SetDuration(value);
185 return *this;
186 }
188
190
194 inline int GetCutoff() const { return m_cutoff; }
195 inline void SetCutoff(int value) {
196 m_cutoffHasBeenSet = true;
197 m_cutoff = value;
198 }
200 SetCutoff(value);
201 return *this;
202 }
204
206
210 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
211 inline void SetAllowUnassociatedTargets(bool value) {
212 m_allowUnassociatedTargetsHasBeenSet = true;
213 m_allowUnassociatedTargets = value;
214 }
217 return *this;
218 }
220
222
225 inline bool GetEnabled() const { return m_enabled; }
226 inline void SetEnabled(bool value) {
227 m_enabledHasBeenSet = true;
228 m_enabled = value;
229 }
231 SetEnabled(value);
232 return *this;
233 }
235
237
238 inline const Aws::String& GetRequestId() const { return m_requestId; }
239 template <typename RequestIdT = Aws::String>
240 void SetRequestId(RequestIdT&& value) {
241 m_requestIdHasBeenSet = true;
242 m_requestId = std::forward<RequestIdT>(value);
243 }
244 template <typename RequestIdT = Aws::String>
246 SetRequestId(std::forward<RequestIdT>(value));
247 return *this;
248 }
250 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
251
252 private:
253 Aws::String m_windowId;
254
255 Aws::String m_name;
256
257 Aws::String m_description;
258
259 Aws::String m_startDate;
260
261 Aws::String m_endDate;
262
263 Aws::String m_schedule;
264
265 Aws::String m_scheduleTimezone;
266
267 int m_scheduleOffset{0};
268
269 int m_duration{0};
270
271 int m_cutoff{0};
272
273 bool m_allowUnassociatedTargets{false};
274
275 bool m_enabled{false};
276
277 Aws::String m_requestId;
278 Aws::Http::HttpResponseCode m_HttpResponseCode;
279 bool m_windowIdHasBeenSet = false;
280 bool m_nameHasBeenSet = false;
281 bool m_descriptionHasBeenSet = false;
282 bool m_startDateHasBeenSet = false;
283 bool m_endDateHasBeenSet = false;
284 bool m_scheduleHasBeenSet = false;
285 bool m_scheduleTimezoneHasBeenSet = false;
286 bool m_scheduleOffsetHasBeenSet = false;
287 bool m_durationHasBeenSet = false;
288 bool m_cutoffHasBeenSet = false;
289 bool m_allowUnassociatedTargetsHasBeenSet = false;
290 bool m_enabledHasBeenSet = false;
291 bool m_requestIdHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace SSM
296} // namespace Aws
UpdateMaintenanceWindowResult & WithDescription(DescriptionT &&value)
UpdateMaintenanceWindowResult & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowResult & WithDuration(int value)
UpdateMaintenanceWindowResult & WithEndDate(EndDateT &&value)
UpdateMaintenanceWindowResult & WithScheduleTimezone(ScheduleTimezoneT &&value)
UpdateMaintenanceWindowResult & WithCutoff(int value)
UpdateMaintenanceWindowResult & WithRequestId(RequestIdT &&value)
UpdateMaintenanceWindowResult & WithName(NameT &&value)
AWS_SSM_API UpdateMaintenanceWindowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMaintenanceWindowResult & WithSchedule(ScheduleT &&value)
UpdateMaintenanceWindowResult & WithEnabled(bool value)
UpdateMaintenanceWindowResult & WithAllowUnassociatedTargets(bool value)
AWS_SSM_API UpdateMaintenanceWindowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMaintenanceWindowResult & WithStartDate(StartDateT &&value)
UpdateMaintenanceWindowResult & WithScheduleOffset(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue