AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MaintenanceWindowExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/MaintenanceWindowExecutionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
31 public:
32 AWS_SSM_API MaintenanceWindowExecution() = default;
36
38
41 inline const Aws::String& GetWindowId() const { return m_windowId; }
42 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
43 template <typename WindowIdT = Aws::String>
44 void SetWindowId(WindowIdT&& value) {
45 m_windowIdHasBeenSet = true;
46 m_windowId = std::forward<WindowIdT>(value);
47 }
48 template <typename WindowIdT = Aws::String>
50 SetWindowId(std::forward<WindowIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetWindowExecutionId() const { return m_windowExecutionId; }
60 inline bool WindowExecutionIdHasBeenSet() const { return m_windowExecutionIdHasBeenSet; }
61 template <typename WindowExecutionIdT = Aws::String>
62 void SetWindowExecutionId(WindowExecutionIdT&& value) {
63 m_windowExecutionIdHasBeenSet = true;
64 m_windowExecutionId = std::forward<WindowExecutionIdT>(value);
65 }
66 template <typename WindowExecutionIdT = Aws::String>
68 SetWindowExecutionId(std::forward<WindowExecutionIdT>(value));
69 return *this;
70 }
72
74
77 inline MaintenanceWindowExecutionStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
94 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
95 template <typename StatusDetailsT = Aws::String>
96 void SetStatusDetails(StatusDetailsT&& value) {
97 m_statusDetailsHasBeenSet = true;
98 m_statusDetails = std::forward<StatusDetailsT>(value);
99 }
100 template <typename StatusDetailsT = Aws::String>
102 SetStatusDetails(std::forward<StatusDetailsT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
112 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
113 template <typename StartTimeT = Aws::Utils::DateTime>
114 void SetStartTime(StartTimeT&& value) {
115 m_startTimeHasBeenSet = true;
116 m_startTime = std::forward<StartTimeT>(value);
117 }
118 template <typename StartTimeT = Aws::Utils::DateTime>
120 SetStartTime(std::forward<StartTimeT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
130 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
131 template <typename EndTimeT = Aws::Utils::DateTime>
132 void SetEndTime(EndTimeT&& value) {
133 m_endTimeHasBeenSet = true;
134 m_endTime = std::forward<EndTimeT>(value);
135 }
136 template <typename EndTimeT = Aws::Utils::DateTime>
138 SetEndTime(std::forward<EndTimeT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_windowId;
144
145 Aws::String m_windowExecutionId;
146
148
149 Aws::String m_statusDetails;
150
151 Aws::Utils::DateTime m_startTime{};
152
153 Aws::Utils::DateTime m_endTime{};
154 bool m_windowIdHasBeenSet = false;
155 bool m_windowExecutionIdHasBeenSet = false;
156 bool m_statusHasBeenSet = false;
157 bool m_statusDetailsHasBeenSet = false;
158 bool m_startTimeHasBeenSet = false;
159 bool m_endTimeHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace SSM
164} // namespace Aws
AWS_SSM_API MaintenanceWindowExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API MaintenanceWindowExecution()=default
const Aws::Utils::DateTime & GetEndTime() const
MaintenanceWindowExecution & WithStatus(MaintenanceWindowExecutionStatus value)
void SetStatus(MaintenanceWindowExecutionStatus value)
void SetWindowExecutionId(WindowExecutionIdT &&value)
MaintenanceWindowExecution & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
MaintenanceWindowExecutionStatus GetStatus() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindowExecution & WithStartTime(StartTimeT &&value)
AWS_SSM_API MaintenanceWindowExecution(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowExecution & WithWindowExecutionId(WindowExecutionIdT &&value)
MaintenanceWindowExecution & WithStatusDetails(StatusDetailsT &&value)
MaintenanceWindowExecution & WithWindowId(WindowIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue