AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateDashboardRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/RefreshSchedule.h>
12#include <aws/cloudtrail/model/RequestWidget.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API UpdateDashboardRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateDashboard"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDashboardId() const { return m_dashboardId; }
45 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
46 template<typename DashboardIdT = Aws::String>
47 void SetDashboardId(DashboardIdT&& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = std::forward<DashboardIdT>(value); }
48 template<typename DashboardIdT = Aws::String>
49 UpdateDashboardRequest& WithDashboardId(DashboardIdT&& value) { SetDashboardId(std::forward<DashboardIdT>(value)); return *this;}
51
53
61 inline const Aws::Vector<RequestWidget>& GetWidgets() const { return m_widgets; }
62 inline bool WidgetsHasBeenSet() const { return m_widgetsHasBeenSet; }
63 template<typename WidgetsT = Aws::Vector<RequestWidget>>
64 void SetWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets = std::forward<WidgetsT>(value); }
65 template<typename WidgetsT = Aws::Vector<RequestWidget>>
66 UpdateDashboardRequest& WithWidgets(WidgetsT&& value) { SetWidgets(std::forward<WidgetsT>(value)); return *this;}
67 template<typename WidgetsT = RequestWidget>
68 UpdateDashboardRequest& AddWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets.emplace_back(std::forward<WidgetsT>(value)); return *this; }
70
72
75 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
76 inline bool RefreshScheduleHasBeenSet() const { return m_refreshScheduleHasBeenSet; }
77 template<typename RefreshScheduleT = RefreshSchedule>
78 void SetRefreshSchedule(RefreshScheduleT&& value) { m_refreshScheduleHasBeenSet = true; m_refreshSchedule = std::forward<RefreshScheduleT>(value); }
79 template<typename RefreshScheduleT = RefreshSchedule>
80 UpdateDashboardRequest& WithRefreshSchedule(RefreshScheduleT&& value) { SetRefreshSchedule(std::forward<RefreshScheduleT>(value)); return *this;}
82
84
89 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
90 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
91 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
94 private:
95
96 Aws::String m_dashboardId;
97 bool m_dashboardIdHasBeenSet = false;
98
100 bool m_widgetsHasBeenSet = false;
101
102 RefreshSchedule m_refreshSchedule;
103 bool m_refreshScheduleHasBeenSet = false;
104
105 bool m_terminationProtectionEnabled{false};
106 bool m_terminationProtectionEnabledHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudTrail
111} // namespace Aws
UpdateDashboardRequest & WithTerminationProtectionEnabled(bool value)
const Aws::Vector< RequestWidget > & GetWidgets() const
UpdateDashboardRequest & WithDashboardId(DashboardIdT &&value)
UpdateDashboardRequest & WithWidgets(WidgetsT &&value)
AWS_CLOUDTRAIL_API UpdateDashboardRequest()=default
UpdateDashboardRequest & AddWidgets(WidgetsT &&value)
UpdateDashboardRequest & WithRefreshSchedule(RefreshScheduleT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector