AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateMaintenanceWindowRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API CreateMaintenanceWindowRequest() = 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 "CreateMaintenanceWindow"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
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) {
85 m_startDateHasBeenSet = true;
86 m_startDate = std::forward<StartDateT>(value);
87 }
88 template <typename StartDateT = Aws::String>
90 SetStartDate(std::forward<StartDateT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetEndDate() const { return m_endDate; }
102 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
103 template <typename EndDateT = Aws::String>
104 void SetEndDate(EndDateT&& value) {
105 m_endDateHasBeenSet = true;
106 m_endDate = std::forward<EndDateT>(value);
107 }
108 template <typename EndDateT = Aws::String>
110 SetEndDate(std::forward<EndDateT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetSchedule() const { return m_schedule; }
121 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
122 template <typename ScheduleT = Aws::String>
123 void SetSchedule(ScheduleT&& value) {
124 m_scheduleHasBeenSet = true;
125 m_schedule = std::forward<ScheduleT>(value);
126 }
127 template <typename ScheduleT = Aws::String>
129 SetSchedule(std::forward<ScheduleT>(value));
130 return *this;
131 }
133
135
142 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
143 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
144 template <typename ScheduleTimezoneT = Aws::String>
145 void SetScheduleTimezone(ScheduleTimezoneT&& value) {
146 m_scheduleTimezoneHasBeenSet = true;
147 m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value);
148 }
149 template <typename ScheduleTimezoneT = Aws::String>
151 SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value));
152 return *this;
153 }
155
157
165 inline int GetScheduleOffset() const { return m_scheduleOffset; }
166 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
167 inline void SetScheduleOffset(int value) {
168 m_scheduleOffsetHasBeenSet = true;
169 m_scheduleOffset = value;
170 }
172 SetScheduleOffset(value);
173 return *this;
174 }
176
178
181 inline int GetDuration() const { return m_duration; }
182 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
183 inline void SetDuration(int value) {
184 m_durationHasBeenSet = true;
185 m_duration = value;
186 }
188 SetDuration(value);
189 return *this;
190 }
192
194
198 inline int GetCutoff() const { return m_cutoff; }
199 inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
200 inline void SetCutoff(int value) {
201 m_cutoffHasBeenSet = true;
202 m_cutoff = value;
203 }
205 SetCutoff(value);
206 return *this;
207 }
209
211
219 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
220 inline bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
221 inline void SetAllowUnassociatedTargets(bool value) {
222 m_allowUnassociatedTargetsHasBeenSet = true;
223 m_allowUnassociatedTargets = value;
224 }
227 return *this;
228 }
230
232
235 inline const Aws::String& GetClientToken() const { return m_clientToken; }
236 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
237 template <typename ClientTokenT = Aws::String>
238 void SetClientToken(ClientTokenT&& value) {
239 m_clientTokenHasBeenSet = true;
240 m_clientToken = std::forward<ClientTokenT>(value);
241 }
242 template <typename ClientTokenT = Aws::String>
244 SetClientToken(std::forward<ClientTokenT>(value));
245 return *this;
246 }
248
250
262 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
263 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
264 template <typename TagsT = Aws::Vector<Tag>>
265 void SetTags(TagsT&& value) {
266 m_tagsHasBeenSet = true;
267 m_tags = std::forward<TagsT>(value);
268 }
269 template <typename TagsT = Aws::Vector<Tag>>
271 SetTags(std::forward<TagsT>(value));
272 return *this;
273 }
274 template <typename TagsT = Tag>
276 m_tagsHasBeenSet = true;
277 m_tags.emplace_back(std::forward<TagsT>(value));
278 return *this;
279 }
281 private:
282 Aws::String m_name;
283
284 Aws::String m_description;
285
286 Aws::String m_startDate;
287
288 Aws::String m_endDate;
289
290 Aws::String m_schedule;
291
292 Aws::String m_scheduleTimezone;
293
294 int m_scheduleOffset{0};
295
296 int m_duration{0};
297
298 int m_cutoff{0};
299
300 bool m_allowUnassociatedTargets{false};
301
303
304 Aws::Vector<Tag> m_tags;
305 bool m_nameHasBeenSet = false;
306 bool m_descriptionHasBeenSet = false;
307 bool m_startDateHasBeenSet = false;
308 bool m_endDateHasBeenSet = false;
309 bool m_scheduleHasBeenSet = false;
310 bool m_scheduleTimezoneHasBeenSet = false;
311 bool m_scheduleOffsetHasBeenSet = false;
312 bool m_durationHasBeenSet = false;
313 bool m_cutoffHasBeenSet = false;
314 bool m_allowUnassociatedTargetsHasBeenSet = false;
315 bool m_clientTokenHasBeenSet = true;
316 bool m_tagsHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace SSM
321} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMaintenanceWindowRequest & WithName(NameT &&value)
CreateMaintenanceWindowRequest & AddTags(TagsT &&value)
CreateMaintenanceWindowRequest & WithDescription(DescriptionT &&value)
CreateMaintenanceWindowRequest & WithSchedule(ScheduleT &&value)
CreateMaintenanceWindowRequest & WithStartDate(StartDateT &&value)
CreateMaintenanceWindowRequest & WithDuration(int value)
CreateMaintenanceWindowRequest & WithScheduleOffset(int value)
virtual const char * GetServiceRequestName() const override
CreateMaintenanceWindowRequest & WithClientToken(ClientTokenT &&value)
CreateMaintenanceWindowRequest & WithScheduleTimezone(ScheduleTimezoneT &&value)
CreateMaintenanceWindowRequest & WithAllowUnassociatedTargets(bool value)
CreateMaintenanceWindowRequest & WithEndDate(EndDateT &&value)
CreateMaintenanceWindowRequest & WithCutoff(int value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateMaintenanceWindowRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector