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>
19template<
typename RESULT_TYPE>
20class AmazonWebServiceResult;
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>
75 template<
typename W
idgetsT = Aws::Vector<W
idget>>
76 void SetWidgets(WidgetsT&& value) { m_widgetsHasBeenSet =
true; m_widgets = std::forward<WidgetsT>(value); }
77 template<
typename W
idgetsT = Aws::Vector<W
idget>>
79 template<
typename W
idgetsT = W
idget>
80 GetDashboardResult&
AddWidgets(WidgetsT&& value) { m_widgetsHasBeenSet =
true; m_widgets.emplace_back(std::forward<WidgetsT>(value));
return *
this; }
88 template<
typename RefreshScheduleT = RefreshSchedule>
89 void SetRefreshSchedule(RefreshScheduleT&& value) { m_refreshScheduleHasBeenSet =
true; m_refreshSchedule = std::forward<RefreshScheduleT>(value); }
90 template<
typename RefreshScheduleT = RefreshSchedule>
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>
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>
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>
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>
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>
158 bool m_dashboardArnHasBeenSet =
false;
161 bool m_typeHasBeenSet =
false;
164 bool m_statusHasBeenSet =
false;
167 bool m_widgetsHasBeenSet =
false;
169 RefreshSchedule m_refreshSchedule;
170 bool m_refreshScheduleHasBeenSet =
false;
173 bool m_createdTimestampHasBeenSet =
false;
176 bool m_updatedTimestampHasBeenSet =
false;
179 bool m_lastRefreshIdHasBeenSet =
false;
182 bool m_lastRefreshFailureReasonHasBeenSet =
false;
184 bool m_terminationProtectionEnabled{
false};
185 bool m_terminationProtectionEnabledHasBeenSet =
false;
188 bool m_requestIdHasBeenSet =
false;
GetDashboardResult & WithTerminationProtectionEnabled(bool value)
void SetTerminationProtectionEnabled(bool value)
const Aws::String & GetDashboardArn() const
AWS_CLOUDTRAIL_API GetDashboardResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
bool GetTerminationProtectionEnabled() const
DashboardType GetType() const
const Aws::String & GetLastRefreshId() const
void SetLastRefreshId(LastRefreshIdT &&value)
GetDashboardResult & WithCreatedTimestamp(CreatedTimestampT &&value)
GetDashboardResult & WithRefreshSchedule(RefreshScheduleT &&value)
const RefreshSchedule & GetRefreshSchedule() const
const Aws::String & GetRequestId() const
void SetDashboardArn(DashboardArnT &&value)
GetDashboardResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
GetDashboardResult & WithWidgets(WidgetsT &&value)
void SetType(DashboardType value)
GetDashboardResult & AddWidgets(WidgetsT &&value)
void SetStatus(DashboardStatus 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)
DashboardStatus GetStatus() const
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)
void SetWidgets(WidgetsT &&value)
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