AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetMaintenanceWindowExecutionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/MaintenanceWindowExecutionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SSM {
26namespace Model {
28 public:
29 AWS_SSM_API GetMaintenanceWindowExecutionResult() = default;
32
34
37 inline const Aws::String& GetWindowExecutionId() const { return m_windowExecutionId; }
38 template <typename WindowExecutionIdT = Aws::String>
39 void SetWindowExecutionId(WindowExecutionIdT&& value) {
40 m_windowExecutionIdHasBeenSet = true;
41 m_windowExecutionId = std::forward<WindowExecutionIdT>(value);
42 }
43 template <typename WindowExecutionIdT = Aws::String>
45 SetWindowExecutionId(std::forward<WindowExecutionIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Aws::String>& GetTaskIds() const { return m_taskIds; }
55 template <typename TaskIdsT = Aws::Vector<Aws::String>>
56 void SetTaskIds(TaskIdsT&& value) {
57 m_taskIdsHasBeenSet = true;
58 m_taskIds = std::forward<TaskIdsT>(value);
59 }
60 template <typename TaskIdsT = Aws::Vector<Aws::String>>
62 SetTaskIds(std::forward<TaskIdsT>(value));
63 return *this;
64 }
65 template <typename TaskIdsT = Aws::String>
67 m_taskIdsHasBeenSet = true;
68 m_taskIds.emplace_back(std::forward<TaskIdsT>(value));
69 return *this;
70 }
72
74
77 inline MaintenanceWindowExecutionStatus GetStatus() const { return m_status; }
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
93 template <typename StatusDetailsT = Aws::String>
94 void SetStatusDetails(StatusDetailsT&& value) {
95 m_statusDetailsHasBeenSet = true;
96 m_statusDetails = std::forward<StatusDetailsT>(value);
97 }
98 template <typename StatusDetailsT = Aws::String>
100 SetStatusDetails(std::forward<StatusDetailsT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
110 template <typename StartTimeT = Aws::Utils::DateTime>
111 void SetStartTime(StartTimeT&& value) {
112 m_startTimeHasBeenSet = true;
113 m_startTime = std::forward<StartTimeT>(value);
114 }
115 template <typename StartTimeT = Aws::Utils::DateTime>
117 SetStartTime(std::forward<StartTimeT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
127 template <typename EndTimeT = Aws::Utils::DateTime>
128 void SetEndTime(EndTimeT&& value) {
129 m_endTimeHasBeenSet = true;
130 m_endTime = std::forward<EndTimeT>(value);
131 }
132 template <typename EndTimeT = Aws::Utils::DateTime>
134 SetEndTime(std::forward<EndTimeT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_windowExecutionId;
157
158 Aws::Vector<Aws::String> m_taskIds;
159
161
162 Aws::String m_statusDetails;
163
164 Aws::Utils::DateTime m_startTime{};
165
166 Aws::Utils::DateTime m_endTime{};
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_windowExecutionIdHasBeenSet = false;
171 bool m_taskIdsHasBeenSet = false;
172 bool m_statusHasBeenSet = false;
173 bool m_statusDetailsHasBeenSet = false;
174 bool m_startTimeHasBeenSet = false;
175 bool m_endTimeHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace SSM
181} // namespace Aws
GetMaintenanceWindowExecutionResult & WithRequestId(RequestIdT &&value)
AWS_SSM_API GetMaintenanceWindowExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowExecutionResult & WithStatus(MaintenanceWindowExecutionStatus value)
AWS_SSM_API GetMaintenanceWindowExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowExecutionResult & WithEndTime(EndTimeT &&value)
GetMaintenanceWindowExecutionResult & WithTaskIds(TaskIdsT &&value)
GetMaintenanceWindowExecutionResult & WithWindowExecutionId(WindowExecutionIdT &&value)
GetMaintenanceWindowExecutionResult & WithStartTime(StartTimeT &&value)
GetMaintenanceWindowExecutionResult & WithStatusDetails(StatusDetailsT &&value)
GetMaintenanceWindowExecutionResult & AddTaskIds(TaskIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue