AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
UpdateDashboardRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/RefreshSchedule.h>
10#include <aws/cloudtrail/model/RequestWidget.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudTrail {
18namespace Model {
19
23 public:
24 AWS_CLOUDTRAIL_API UpdateDashboardRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateDashboard"; }
31
32 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDashboardId() const { return m_dashboardId; }
41 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
42 template <typename DashboardIdT = Aws::String>
43 void SetDashboardId(DashboardIdT&& value) {
44 m_dashboardIdHasBeenSet = true;
45 m_dashboardId = std::forward<DashboardIdT>(value);
46 }
47 template <typename DashboardIdT = Aws::String>
48 UpdateDashboardRequest& WithDashboardId(DashboardIdT&& value) {
49 SetDashboardId(std::forward<DashboardIdT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::Vector<RequestWidget>& GetWidgets() const { return m_widgets; }
64 inline bool WidgetsHasBeenSet() const { return m_widgetsHasBeenSet; }
65 template <typename WidgetsT = Aws::Vector<RequestWidget>>
66 void SetWidgets(WidgetsT&& value) {
67 m_widgetsHasBeenSet = true;
68 m_widgets = std::forward<WidgetsT>(value);
69 }
70 template <typename WidgetsT = Aws::Vector<RequestWidget>>
72 SetWidgets(std::forward<WidgetsT>(value));
73 return *this;
74 }
75 template <typename WidgetsT = RequestWidget>
77 m_widgetsHasBeenSet = true;
78 m_widgets.emplace_back(std::forward<WidgetsT>(value));
79 return *this;
80 }
82
84
87 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
88 inline bool RefreshScheduleHasBeenSet() const { return m_refreshScheduleHasBeenSet; }
89 template <typename RefreshScheduleT = RefreshSchedule>
90 void SetRefreshSchedule(RefreshScheduleT&& value) {
91 m_refreshScheduleHasBeenSet = true;
92 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
93 }
94 template <typename RefreshScheduleT = RefreshSchedule>
95 UpdateDashboardRequest& WithRefreshSchedule(RefreshScheduleT&& value) {
96 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
97 return *this;
98 }
100
102
107 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
108 inline bool TerminationProtectionEnabledHasBeenSet() const { return m_terminationProtectionEnabledHasBeenSet; }
109 inline void SetTerminationProtectionEnabled(bool value) {
110 m_terminationProtectionEnabledHasBeenSet = true;
111 m_terminationProtectionEnabled = value;
112 }
115 return *this;
116 }
118 private:
119 Aws::String m_dashboardId;
120
122
123 RefreshSchedule m_refreshSchedule;
124
125 bool m_terminationProtectionEnabled{false};
126 bool m_dashboardIdHasBeenSet = false;
127 bool m_widgetsHasBeenSet = false;
128 bool m_refreshScheduleHasBeenSet = false;
129 bool m_terminationProtectionEnabledHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace CloudTrail
134} // 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