AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MaintenanceWindowIdentity.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SSM_API MaintenanceWindowIdentity() = default;
38
39
41
44 inline const Aws::String& GetWindowId() const { return m_windowId; }
45 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
46 template<typename WindowIdT = Aws::String>
47 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
48 template<typename WindowIdT = Aws::String>
49 MaintenanceWindowIdentity& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 MaintenanceWindowIdentity& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 MaintenanceWindowIdentity& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline bool GetEnabled() const { return m_enabled; }
81 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
82 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
83 inline MaintenanceWindowIdentity& WithEnabled(bool value) { SetEnabled(value); return *this;}
85
87
90 inline int GetDuration() const { return m_duration; }
91 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
92 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
93 inline MaintenanceWindowIdentity& WithDuration(int value) { SetDuration(value); return *this;}
95
97
101 inline int GetCutoff() const { return m_cutoff; }
102 inline bool CutoffHasBeenSet() const { return m_cutoffHasBeenSet; }
103 inline void SetCutoff(int value) { m_cutoffHasBeenSet = true; m_cutoff = value; }
104 inline MaintenanceWindowIdentity& WithCutoff(int value) { SetCutoff(value); return *this;}
106
108
112 inline const Aws::String& GetSchedule() const { return m_schedule; }
113 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
114 template<typename ScheduleT = Aws::String>
115 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
116 template<typename ScheduleT = Aws::String>
117 MaintenanceWindowIdentity& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
119
121
125 inline const Aws::String& GetScheduleTimezone() const { return m_scheduleTimezone; }
126 inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; }
127 template<typename ScheduleTimezoneT = Aws::String>
128 void SetScheduleTimezone(ScheduleTimezoneT&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::forward<ScheduleTimezoneT>(value); }
129 template<typename ScheduleTimezoneT = Aws::String>
130 MaintenanceWindowIdentity& WithScheduleTimezone(ScheduleTimezoneT&& value) { SetScheduleTimezone(std::forward<ScheduleTimezoneT>(value)); return *this;}
132
134
138 inline int GetScheduleOffset() const { return m_scheduleOffset; }
139 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
140 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
141 inline MaintenanceWindowIdentity& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
143
145
149 inline const Aws::String& GetEndDate() const { return m_endDate; }
150 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
151 template<typename EndDateT = Aws::String>
152 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
153 template<typename EndDateT = Aws::String>
154 MaintenanceWindowIdentity& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
156
158
162 inline const Aws::String& GetStartDate() const { return m_startDate; }
163 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
164 template<typename StartDateT = Aws::String>
165 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
166 template<typename StartDateT = Aws::String>
167 MaintenanceWindowIdentity& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
169
171
175 inline const Aws::String& GetNextExecutionTime() const { return m_nextExecutionTime; }
176 inline bool NextExecutionTimeHasBeenSet() const { return m_nextExecutionTimeHasBeenSet; }
177 template<typename NextExecutionTimeT = Aws::String>
178 void SetNextExecutionTime(NextExecutionTimeT&& value) { m_nextExecutionTimeHasBeenSet = true; m_nextExecutionTime = std::forward<NextExecutionTimeT>(value); }
179 template<typename NextExecutionTimeT = Aws::String>
180 MaintenanceWindowIdentity& WithNextExecutionTime(NextExecutionTimeT&& value) { SetNextExecutionTime(std::forward<NextExecutionTimeT>(value)); return *this;}
182 private:
183
184 Aws::String m_windowId;
185 bool m_windowIdHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 bool m_enabled{false};
194 bool m_enabledHasBeenSet = false;
195
196 int m_duration{0};
197 bool m_durationHasBeenSet = false;
198
199 int m_cutoff{0};
200 bool m_cutoffHasBeenSet = false;
201
202 Aws::String m_schedule;
203 bool m_scheduleHasBeenSet = false;
204
205 Aws::String m_scheduleTimezone;
206 bool m_scheduleTimezoneHasBeenSet = false;
207
208 int m_scheduleOffset{0};
209 bool m_scheduleOffsetHasBeenSet = false;
210
211 Aws::String m_endDate;
212 bool m_endDateHasBeenSet = false;
213
214 Aws::String m_startDate;
215 bool m_startDateHasBeenSet = false;
216
217 Aws::String m_nextExecutionTime;
218 bool m_nextExecutionTimeHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace SSM
223} // namespace Aws
MaintenanceWindowIdentity & WithDescription(DescriptionT &&value)
MaintenanceWindowIdentity & WithScheduleOffset(int value)
AWS_SSM_API MaintenanceWindowIdentity(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API MaintenanceWindowIdentity()=default
MaintenanceWindowIdentity & WithEndDate(EndDateT &&value)
MaintenanceWindowIdentity & WithDuration(int value)
MaintenanceWindowIdentity & WithScheduleTimezone(ScheduleTimezoneT &&value)
void SetNextExecutionTime(NextExecutionTimeT &&value)
MaintenanceWindowIdentity & WithWindowId(WindowIdT &&value)
MaintenanceWindowIdentity & WithEnabled(bool value)
MaintenanceWindowIdentity & WithStartDate(StartDateT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindowIdentity & WithNextExecutionTime(NextExecutionTimeT &&value)
AWS_SSM_API MaintenanceWindowIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowIdentity & WithCutoff(int value)
MaintenanceWindowIdentity & WithSchedule(ScheduleT &&value)
MaintenanceWindowIdentity & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue