AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDashboardResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/DashboardType.h>
10#include <aws/cloudtrail/model/DashboardStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cloudtrail/model/RefreshSchedule.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/cloudtrail/model/Widget.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace CloudTrail
30{
31namespace Model
32{
34 {
35 public:
36 AWS_CLOUDTRAIL_API GetDashboardResult() = default;
39
40
42
45 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
46 template<typename DashboardArnT = Aws::String>
47 void SetDashboardArn(DashboardArnT&& value) { m_dashboardArnHasBeenSet = true; m_dashboardArn = std::forward<DashboardArnT>(value); }
48 template<typename DashboardArnT = Aws::String>
49 GetDashboardResult& WithDashboardArn(DashboardArnT&& value) { SetDashboardArn(std::forward<DashboardArnT>(value)); return *this;}
51
53
56 inline DashboardType GetType() const { return m_type; }
57 inline void SetType(DashboardType value) { m_typeHasBeenSet = true; m_type = value; }
58 inline GetDashboardResult& WithType(DashboardType value) { SetType(value); return *this;}
60
62
65 inline DashboardStatus GetStatus() const { return m_status; }
66 inline void SetStatus(DashboardStatus value) { m_statusHasBeenSet = true; m_status = value; }
67 inline GetDashboardResult& WithStatus(DashboardStatus value) { SetStatus(value); return *this;}
69
71
74 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
75 template<typename WidgetsT = Aws::Vector<Widget>>
76 void SetWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets = std::forward<WidgetsT>(value); }
77 template<typename WidgetsT = Aws::Vector<Widget>>
78 GetDashboardResult& WithWidgets(WidgetsT&& value) { SetWidgets(std::forward<WidgetsT>(value)); return *this;}
79 template<typename WidgetsT = Widget>
80 GetDashboardResult& AddWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets.emplace_back(std::forward<WidgetsT>(value)); return *this; }
82
84
87 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
88 template<typename RefreshScheduleT = RefreshSchedule>
89 void SetRefreshSchedule(RefreshScheduleT&& value) { m_refreshScheduleHasBeenSet = true; m_refreshSchedule = std::forward<RefreshScheduleT>(value); }
90 template<typename RefreshScheduleT = RefreshSchedule>
91 GetDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) { SetRefreshSchedule(std::forward<RefreshScheduleT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
99 template<typename CreatedTimestampT = Aws::Utils::DateTime>
100 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
101 template<typename CreatedTimestampT = Aws::Utils::DateTime>
102 GetDashboardResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
110 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
111 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
112 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
113 GetDashboardResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
115
117
120 inline const Aws::String& GetLastRefreshId() const { return m_lastRefreshId; }
121 template<typename LastRefreshIdT = Aws::String>
122 void SetLastRefreshId(LastRefreshIdT&& value) { m_lastRefreshIdHasBeenSet = true; m_lastRefreshId = std::forward<LastRefreshIdT>(value); }
123 template<typename LastRefreshIdT = Aws::String>
124 GetDashboardResult& WithLastRefreshId(LastRefreshIdT&& value) { SetLastRefreshId(std::forward<LastRefreshIdT>(value)); return *this;}
126
128
131 inline const Aws::String& GetLastRefreshFailureReason() const { return m_lastRefreshFailureReason; }
132 template<typename LastRefreshFailureReasonT = Aws::String>
133 void SetLastRefreshFailureReason(LastRefreshFailureReasonT&& value) { m_lastRefreshFailureReasonHasBeenSet = true; m_lastRefreshFailureReason = std::forward<LastRefreshFailureReasonT>(value); }
134 template<typename LastRefreshFailureReasonT = Aws::String>
135 GetDashboardResult& WithLastRefreshFailureReason(LastRefreshFailureReasonT&& value) { SetLastRefreshFailureReason(std::forward<LastRefreshFailureReasonT>(value)); return *this;}
137
139
142 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
143 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
146
148
149 inline const Aws::String& GetRequestId() const { return m_requestId; }
150 template<typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
152 template<typename RequestIdT = Aws::String>
153 GetDashboardResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
155 private:
156
157 Aws::String m_dashboardArn;
158 bool m_dashboardArnHasBeenSet = false;
159
161 bool m_typeHasBeenSet = false;
162
164 bool m_statusHasBeenSet = false;
165
166 Aws::Vector<Widget> m_widgets;
167 bool m_widgetsHasBeenSet = false;
168
169 RefreshSchedule m_refreshSchedule;
170 bool m_refreshScheduleHasBeenSet = false;
171
172 Aws::Utils::DateTime m_createdTimestamp{};
173 bool m_createdTimestampHasBeenSet = false;
174
175 Aws::Utils::DateTime m_updatedTimestamp{};
176 bool m_updatedTimestampHasBeenSet = false;
177
178 Aws::String m_lastRefreshId;
179 bool m_lastRefreshIdHasBeenSet = false;
180
181 Aws::String m_lastRefreshFailureReason;
182 bool m_lastRefreshFailureReasonHasBeenSet = false;
183
184 bool m_terminationProtectionEnabled{false};
185 bool m_terminationProtectionEnabledHasBeenSet = false;
186
187 Aws::String m_requestId;
188 bool m_requestIdHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CloudTrail
193} // 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