AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
GetDashboardResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/DashboardStatus.h>
9#include <aws/cloudtrail/model/DashboardType.h>
10#include <aws/cloudtrail/model/RefreshSchedule.h>
11#include <aws/cloudtrail/model/Widget.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudTrail {
29namespace Model {
31 public:
32 AWS_CLOUDTRAIL_API GetDashboardResult() = default;
35
37
40 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
41 template <typename DashboardArnT = Aws::String>
42 void SetDashboardArn(DashboardArnT&& value) {
43 m_dashboardArnHasBeenSet = true;
44 m_dashboardArn = std::forward<DashboardArnT>(value);
45 }
46 template <typename DashboardArnT = Aws::String>
47 GetDashboardResult& WithDashboardArn(DashboardArnT&& value) {
48 SetDashboardArn(std::forward<DashboardArnT>(value));
49 return *this;
50 }
52
54
57 inline DashboardType GetType() const { return m_type; }
58 inline void SetType(DashboardType value) {
59 m_typeHasBeenSet = true;
60 m_type = value;
61 }
63 SetType(value);
64 return *this;
65 }
67
69
72 inline DashboardStatus GetStatus() const { return m_status; }
73 inline void SetStatus(DashboardStatus value) {
74 m_statusHasBeenSet = true;
75 m_status = value;
76 }
78 SetStatus(value);
79 return *this;
80 }
82
84
87 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
88 template <typename WidgetsT = Aws::Vector<Widget>>
89 void SetWidgets(WidgetsT&& value) {
90 m_widgetsHasBeenSet = true;
91 m_widgets = std::forward<WidgetsT>(value);
92 }
93 template <typename WidgetsT = Aws::Vector<Widget>>
94 GetDashboardResult& WithWidgets(WidgetsT&& value) {
95 SetWidgets(std::forward<WidgetsT>(value));
96 return *this;
97 }
98 template <typename WidgetsT = Widget>
99 GetDashboardResult& AddWidgets(WidgetsT&& value) {
100 m_widgetsHasBeenSet = true;
101 m_widgets.emplace_back(std::forward<WidgetsT>(value));
102 return *this;
103 }
105
107
110 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
111 template <typename RefreshScheduleT = RefreshSchedule>
112 void SetRefreshSchedule(RefreshScheduleT&& value) {
113 m_refreshScheduleHasBeenSet = true;
114 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
115 }
116 template <typename RefreshScheduleT = RefreshSchedule>
117 GetDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) {
118 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
128 template <typename CreatedTimestampT = Aws::Utils::DateTime>
129 void SetCreatedTimestamp(CreatedTimestampT&& value) {
130 m_createdTimestampHasBeenSet = true;
131 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
132 }
133 template <typename CreatedTimestampT = Aws::Utils::DateTime>
134 GetDashboardResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
135 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
145 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
146 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
147 m_updatedTimestampHasBeenSet = true;
148 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
149 }
150 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
151 GetDashboardResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
152 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetLastRefreshId() const { return m_lastRefreshId; }
162 template <typename LastRefreshIdT = Aws::String>
163 void SetLastRefreshId(LastRefreshIdT&& value) {
164 m_lastRefreshIdHasBeenSet = true;
165 m_lastRefreshId = std::forward<LastRefreshIdT>(value);
166 }
167 template <typename LastRefreshIdT = Aws::String>
168 GetDashboardResult& WithLastRefreshId(LastRefreshIdT&& value) {
169 SetLastRefreshId(std::forward<LastRefreshIdT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetLastRefreshFailureReason() const { return m_lastRefreshFailureReason; }
179 template <typename LastRefreshFailureReasonT = Aws::String>
180 void SetLastRefreshFailureReason(LastRefreshFailureReasonT&& value) {
181 m_lastRefreshFailureReasonHasBeenSet = true;
182 m_lastRefreshFailureReason = std::forward<LastRefreshFailureReasonT>(value);
183 }
184 template <typename LastRefreshFailureReasonT = Aws::String>
185 GetDashboardResult& WithLastRefreshFailureReason(LastRefreshFailureReasonT&& value) {
186 SetLastRefreshFailureReason(std::forward<LastRefreshFailureReasonT>(value));
187 return *this;
188 }
190
192
195 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
196 inline void SetTerminationProtectionEnabled(bool value) {
197 m_terminationProtectionEnabledHasBeenSet = true;
198 m_terminationProtectionEnabled = value;
199 }
202 return *this;
203 }
205
207
208 inline const Aws::String& GetRequestId() const { return m_requestId; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
215 GetDashboardResult& WithRequestId(RequestIdT&& value) {
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
221
222 private:
223 Aws::String m_dashboardArn;
224
226
228
229 Aws::Vector<Widget> m_widgets;
230
231 RefreshSchedule m_refreshSchedule;
232
233 Aws::Utils::DateTime m_createdTimestamp{};
234
235 Aws::Utils::DateTime m_updatedTimestamp{};
236
237 Aws::String m_lastRefreshId;
238
239 Aws::String m_lastRefreshFailureReason;
240
241 bool m_terminationProtectionEnabled{false};
242
243 Aws::String m_requestId;
244 Aws::Http::HttpResponseCode m_HttpResponseCode;
245 bool m_dashboardArnHasBeenSet = false;
246 bool m_typeHasBeenSet = false;
247 bool m_statusHasBeenSet = false;
248 bool m_widgetsHasBeenSet = false;
249 bool m_refreshScheduleHasBeenSet = false;
250 bool m_createdTimestampHasBeenSet = false;
251 bool m_updatedTimestampHasBeenSet = false;
252 bool m_lastRefreshIdHasBeenSet = false;
253 bool m_lastRefreshFailureReasonHasBeenSet = false;
254 bool m_terminationProtectionEnabledHasBeenSet = false;
255 bool m_requestIdHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace CloudTrail
260} // namespace Aws
GetDashboardResult & WithTerminationProtectionEnabled(bool value)
AWS_CLOUDTRAIL_API GetDashboardResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastRefreshId(LastRefreshIdT &&value)
GetDashboardResult & WithCreatedTimestamp(CreatedTimestampT &&value)
GetDashboardResult & WithRefreshSchedule(RefreshScheduleT &&value)
const RefreshSchedule & GetRefreshSchedule() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDashboardResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
GetDashboardResult & WithWidgets(WidgetsT &&value)
GetDashboardResult & AddWidgets(WidgetsT &&value)
void SetRefreshSchedule(RefreshScheduleT &&value)
const Aws::Vector< Widget > & GetWidgets() const
void SetLastRefreshFailureReason(LastRefreshFailureReasonT &&value)
GetDashboardResult & WithLastRefreshId(LastRefreshIdT &&value)
GetDashboardResult & WithDashboardArn(DashboardArnT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
GetDashboardResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
GetDashboardResult & WithType(DashboardType value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
GetDashboardResult & WithStatus(DashboardStatus value)
AWS_CLOUDTRAIL_API GetDashboardResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetLastRefreshFailureReason() const
AWS_CLOUDTRAIL_API GetDashboardResult()=default
GetDashboardResult & WithLastRefreshFailureReason(LastRefreshFailureReasonT &&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