AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMaintenanceWindowRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SSM
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateMaintenanceWindow"; }
34
35 AWS_SSM_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateMaintenanceWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateMaintenanceWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateMaintenanceWindowRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateMaintenanceWindowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateMaintenanceWindowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateMaintenanceWindowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
77 inline const Aws::String& GetStartDate() const{ return m_startDate; }
78 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
79 inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
80 inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
81 inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
82 inline CreateMaintenanceWindowRequest& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
83 inline CreateMaintenanceWindowRequest& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
84 inline CreateMaintenanceWindowRequest& WithStartDate(const char* value) { SetStartDate(value); return *this;}
86
88
93 inline const Aws::String& GetEndDate() const{ return m_endDate; }
94 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
95 inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
96 inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
97 inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
98 inline CreateMaintenanceWindowRequest& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
99 inline CreateMaintenanceWindowRequest& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
100 inline CreateMaintenanceWindowRequest& WithEndDate(const char* value) { SetEndDate(value); return *this;}
102
104
108 inline const Aws::String& GetSchedule() const{ return m_schedule; }
109 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
110 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
111 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
112 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
113 inline CreateMaintenanceWindowRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
114 inline CreateMaintenanceWindowRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
115 inline CreateMaintenanceWindowRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
117
119
126 inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; }
127 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
128 inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = value; }
129 inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::move(value); }
130 inline void SetScheduleTimezone(const char* value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone.assign(value); }
132 inline CreateMaintenanceWindowRequest& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;}
133 inline CreateMaintenanceWindowRequest& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;}
135
137
145 inline int GetScheduleOffset() const{ return m_scheduleOffset; }
146 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
147 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
148 inline CreateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
150
152
155 inline int GetDuration() const{ return m_duration; }
156 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
157 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
158 inline CreateMaintenanceWindowRequest& WithDuration(int value) { SetDuration(value); return *this;}
160
162
166 inline int GetCutoff() const{ return m_cutoff; }
167 inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
168 inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
169 inline CreateMaintenanceWindowRequest& WithCutoff(int value) { SetCutoff(value); return *this;}
171
173
181 inline bool GetAllowUnassociatedTargets() const{ return m_allowUnassociatedTargets; }
182 inline bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
183 inline void SetAllowUnassociatedTargets(bool value) { m_allowUnassociatedTargetsHasBeenSet = true; m_allowUnassociatedTargets = value; }
186
188
191 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
192 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
193 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
194 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
195 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
196 inline CreateMaintenanceWindowRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
197 inline CreateMaintenanceWindowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
198 inline CreateMaintenanceWindowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
200
202
214 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
217 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
218 inline CreateMaintenanceWindowRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
219 inline CreateMaintenanceWindowRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
220 inline CreateMaintenanceWindowRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
221 inline CreateMaintenanceWindowRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
223 private:
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
228 Aws::String m_description;
229 bool m_descriptionHasBeenSet = false;
230
231 Aws::String m_startDate;
232 bool m_startDateHasBeenSet = false;
233
234 Aws::String m_endDate;
235 bool m_endDateHasBeenSet = false;
236
237 Aws::String m_schedule;
238 bool m_scheduleHasBeenSet = false;
239
240 Aws::String m_scheduleTimezone;
241 bool m_scheduleTimezoneHasBeenSet = false;
242
243 int m_scheduleOffset;
244 bool m_scheduleOffsetHasBeenSet = false;
245
246 int m_duration;
247 bool m_durationHasBeenSet = false;
248
249 int m_cutoff;
250 bool m_cutoffHasBeenSet = false;
251
252 bool m_allowUnassociatedTargets;
253 bool m_allowUnassociatedTargetsHasBeenSet = false;
254
255 Aws::String m_clientToken;
256 bool m_clientTokenHasBeenSet = false;
257
258 Aws::Vector<Tag> m_tags;
259 bool m_tagsHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace SSM
264} // namespace Aws
CreateMaintenanceWindowRequest & AddTags(const Tag &value)
CreateMaintenanceWindowRequest & AddTags(Tag &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMaintenanceWindowRequest & WithClientToken(Aws::String &&value)
CreateMaintenanceWindowRequest & WithTags(const Aws::Vector< Tag > &value)
CreateMaintenanceWindowRequest & WithScheduleTimezone(Aws::String &&value)
CreateMaintenanceWindowRequest & WithSchedule(const Aws::String &value)
CreateMaintenanceWindowRequest & WithDescription(const char *value)
CreateMaintenanceWindowRequest & WithEndDate(Aws::String &&value)
CreateMaintenanceWindowRequest & WithStartDate(Aws::String &&value)
CreateMaintenanceWindowRequest & WithSchedule(Aws::String &&value)
CreateMaintenanceWindowRequest & WithClientToken(const Aws::String &value)
CreateMaintenanceWindowRequest & WithName(const char *value)
CreateMaintenanceWindowRequest & WithScheduleTimezone(const Aws::String &value)
CreateMaintenanceWindowRequest & WithName(const Aws::String &value)
CreateMaintenanceWindowRequest & WithDescription(Aws::String &&value)
CreateMaintenanceWindowRequest & WithDuration(int value)
CreateMaintenanceWindowRequest & WithEndDate(const char *value)
CreateMaintenanceWindowRequest & WithSchedule(const char *value)
CreateMaintenanceWindowRequest & WithScheduleOffset(int value)
virtual const char * GetServiceRequestName() const override
CreateMaintenanceWindowRequest & WithTags(Aws::Vector< Tag > &&value)
CreateMaintenanceWindowRequest & WithScheduleTimezone(const char *value)
CreateMaintenanceWindowRequest & WithEndDate(const Aws::String &value)
CreateMaintenanceWindowRequest & WithDescription(const Aws::String &value)
CreateMaintenanceWindowRequest & WithClientToken(const char *value)
CreateMaintenanceWindowRequest & WithAllowUnassociatedTargets(bool value)
CreateMaintenanceWindowRequest & WithStartDate(const Aws::String &value)
CreateMaintenanceWindowRequest & WithStartDate(const char *value)
CreateMaintenanceWindowRequest & WithCutoff(int value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateMaintenanceWindowRequest & WithName(Aws::String &&value)
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