AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudTrail {
28namespace Model {
30 public:
31 AWS_CLOUDTRAIL_API GetDashboardResult() = default;
34
36
39 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
40 template <typename DashboardArnT = Aws::String>
41 void SetDashboardArn(DashboardArnT&& value) {
42 m_dashboardArnHasBeenSet = true;
43 m_dashboardArn = std::forward<DashboardArnT>(value);
44 }
45 template <typename DashboardArnT = Aws::String>
46 GetDashboardResult& WithDashboardArn(DashboardArnT&& value) {
47 SetDashboardArn(std::forward<DashboardArnT>(value));
48 return *this;
49 }
51
53
56 inline DashboardType GetType() const { return m_type; }
57 inline void SetType(DashboardType value) {
58 m_typeHasBeenSet = true;
59 m_type = value;
60 }
62 SetType(value);
63 return *this;
64 }
66
68
71 inline DashboardStatus GetStatus() const { return m_status; }
72 inline void SetStatus(DashboardStatus value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
86 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
87 template <typename WidgetsT = Aws::Vector<Widget>>
88 void SetWidgets(WidgetsT&& value) {
89 m_widgetsHasBeenSet = true;
90 m_widgets = std::forward<WidgetsT>(value);
91 }
92 template <typename WidgetsT = Aws::Vector<Widget>>
93 GetDashboardResult& WithWidgets(WidgetsT&& value) {
94 SetWidgets(std::forward<WidgetsT>(value));
95 return *this;
96 }
97 template <typename WidgetsT = Widget>
98 GetDashboardResult& AddWidgets(WidgetsT&& value) {
99 m_widgetsHasBeenSet = true;
100 m_widgets.emplace_back(std::forward<WidgetsT>(value));
101 return *this;
102 }
104
106
109 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
110 template <typename RefreshScheduleT = RefreshSchedule>
111 void SetRefreshSchedule(RefreshScheduleT&& value) {
112 m_refreshScheduleHasBeenSet = true;
113 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
114 }
115 template <typename RefreshScheduleT = RefreshSchedule>
116 GetDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) {
117 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
127 template <typename CreatedTimestampT = Aws::Utils::DateTime>
128 void SetCreatedTimestamp(CreatedTimestampT&& value) {
129 m_createdTimestampHasBeenSet = true;
130 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
131 }
132 template <typename CreatedTimestampT = Aws::Utils::DateTime>
133 GetDashboardResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
134 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
144 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
145 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
146 m_updatedTimestampHasBeenSet = true;
147 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
148 }
149 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
150 GetDashboardResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
151 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetLastRefreshId() const { return m_lastRefreshId; }
161 template <typename LastRefreshIdT = Aws::String>
162 void SetLastRefreshId(LastRefreshIdT&& value) {
163 m_lastRefreshIdHasBeenSet = true;
164 m_lastRefreshId = std::forward<LastRefreshIdT>(value);
165 }
166 template <typename LastRefreshIdT = Aws::String>
167 GetDashboardResult& WithLastRefreshId(LastRefreshIdT&& value) {
168 SetLastRefreshId(std::forward<LastRefreshIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetLastRefreshFailureReason() const { return m_lastRefreshFailureReason; }
178 template <typename LastRefreshFailureReasonT = Aws::String>
179 void SetLastRefreshFailureReason(LastRefreshFailureReasonT&& value) {
180 m_lastRefreshFailureReasonHasBeenSet = true;
181 m_lastRefreshFailureReason = std::forward<LastRefreshFailureReasonT>(value);
182 }
183 template <typename LastRefreshFailureReasonT = Aws::String>
184 GetDashboardResult& WithLastRefreshFailureReason(LastRefreshFailureReasonT&& value) {
185 SetLastRefreshFailureReason(std::forward<LastRefreshFailureReasonT>(value));
186 return *this;
187 }
189
191
194 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
195 inline void SetTerminationProtectionEnabled(bool value) {
196 m_terminationProtectionEnabledHasBeenSet = true;
197 m_terminationProtectionEnabled = value;
198 }
201 return *this;
202 }
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template <typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) {
210 m_requestIdHasBeenSet = true;
211 m_requestId = std::forward<RequestIdT>(value);
212 }
213 template <typename RequestIdT = Aws::String>
214 GetDashboardResult& WithRequestId(RequestIdT&& value) {
215 SetRequestId(std::forward<RequestIdT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_dashboardArn;
221
223
225
226 Aws::Vector<Widget> m_widgets;
227
228 RefreshSchedule m_refreshSchedule;
229
230 Aws::Utils::DateTime m_createdTimestamp{};
231
232 Aws::Utils::DateTime m_updatedTimestamp{};
233
234 Aws::String m_lastRefreshId;
235
236 Aws::String m_lastRefreshFailureReason;
237
238 bool m_terminationProtectionEnabled{false};
239
240 Aws::String m_requestId;
241 bool m_dashboardArnHasBeenSet = false;
242 bool m_typeHasBeenSet = false;
243 bool m_statusHasBeenSet = false;
244 bool m_widgetsHasBeenSet = false;
245 bool m_refreshScheduleHasBeenSet = false;
246 bool m_createdTimestampHasBeenSet = false;
247 bool m_updatedTimestampHasBeenSet = false;
248 bool m_lastRefreshIdHasBeenSet = false;
249 bool m_lastRefreshFailureReasonHasBeenSet = false;
250 bool m_terminationProtectionEnabledHasBeenSet = false;
251 bool m_requestIdHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace CloudTrail
256} // 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
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