AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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:
27 AWS_SSM_API CreateMaintenanceWindowRequest() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateMaintenanceWindowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateMaintenanceWindowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
73 inline const Aws::String& GetStartDate() const { return m_startDate; }
74 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
75 template<typename StartDateT = Aws::String>
76 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
77 template<typename StartDateT = Aws::String>
78 CreateMaintenanceWindowRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
80
82
87 inline const Aws::String& GetEndDate() const { return m_endDate; }
88 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
89 template<typename EndDateT = Aws::String>
90 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
91 template<typename EndDateT = Aws::String>
92 CreateMaintenanceWindowRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
94
96
100 inline const Aws::String& GetSchedule() const { return m_schedule; }
101 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
102 template<typename ScheduleT = Aws::String>
103 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
104 template<typename ScheduleT = Aws::String>
105 CreateMaintenanceWindowRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
107
109
116 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
117 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
118 template<typename ScheduleTimezoneT = Aws::String>
119 void SetScheduleTimezone(ScheduleTimezoneT&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value); }
120 template<typename ScheduleTimezoneT = Aws::String>
121 CreateMaintenanceWindowRequest& WithScheduleTimezone(ScheduleTimezoneT&& value) { SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value)); return *this;}
123
125
133 inline int GetScheduleOffset() const { return m_scheduleOffset; }
134 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
135 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
136 inline CreateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
138
140
143 inline int GetDuration() const { return m_duration; }
144 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
145 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
146 inline CreateMaintenanceWindowRequest& WithDuration(int value) { SetDuration(value); return *this;}
148
150
154 inline int GetCutoff() const { return m_cutoff; }
155 inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
156 inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
157 inline CreateMaintenanceWindowRequest& WithCutoff(int value) { SetCutoff(value); return *this;}
159
161
169 inline bool GetAllowUnassociatedTargets() const { return m_allowUnassociatedTargets; }
170 inline bool AllowUnassociatedTargetsHasBeenSet() const { return m_allowUnassociatedTargetsHasBeenSet; }
171 inline void SetAllowUnassociatedTargets(bool value) { m_allowUnassociatedTargetsHasBeenSet = true; m_allowUnassociatedTargets = value; }
174
176
179 inline const Aws::String& GetClientToken() const { return m_clientToken; }
180 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
181 template<typename ClientTokenT = Aws::String>
182 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
183 template<typename ClientTokenT = Aws::String>
184 CreateMaintenanceWindowRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
186
188
200 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template<typename TagsT = Aws::Vector<Tag>>
203 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
204 template<typename TagsT = Aws::Vector<Tag>>
205 CreateMaintenanceWindowRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
206 template<typename TagsT = Tag>
207 CreateMaintenanceWindowRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
209 private:
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
217 Aws::String m_startDate;
218 bool m_startDateHasBeenSet = false;
219
220 Aws::String m_endDate;
221 bool m_endDateHasBeenSet = false;
222
223 Aws::String m_schedule;
224 bool m_scheduleHasBeenSet = false;
225
226 Aws::String m_scheduleTimezone;
227 bool m_scheduleTimezoneHasBeenSet = false;
228
229 int m_scheduleOffset{0};
230 bool m_scheduleOffsetHasBeenSet = false;
231
232 int m_duration{0};
233 bool m_durationHasBeenSet = false;
234
235 int m_cutoff{0};
236 bool m_cutoffHasBeenSet = false;
237
238 bool m_allowUnassociatedTargets{false};
239 bool m_allowUnassociatedTargetsHasBeenSet = false;
240
241 Aws::String m_clientToken;
242 bool m_clientTokenHasBeenSet = false;
243
244 Aws::Vector<Tag> m_tags;
245 bool m_tagsHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace SSM
250} // 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)
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