AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UpdateDashboardResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/DashboardType.h>
9#include <aws/cloudtrail/model/RefreshSchedule.h>
10#include <aws/cloudtrail/model/Widget.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudTrail {
27namespace Model {
29 public:
30 AWS_CLOUDTRAIL_API UpdateDashboardResult() = default;
33
35
38 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
39 template <typename DashboardArnT = Aws::String>
40 void SetDashboardArn(DashboardArnT&& value) {
41 m_dashboardArnHasBeenSet = true;
42 m_dashboardArn = std::forward<DashboardArnT>(value);
43 }
44 template <typename DashboardArnT = Aws::String>
45 UpdateDashboardResult& WithDashboardArn(DashboardArnT&& value) {
46 SetDashboardArn(std::forward<DashboardArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline DashboardType GetType() const { return m_type; }
73 inline void SetType(DashboardType value) {
74 m_typeHasBeenSet = true;
75 m_type = value;
76 }
78 SetType(value);
79 return *this;
80 }
82
84
87 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
88 template <typename WidgetsT = Aws::Vector<Widget>>
89 void SetWidgets(WidgetsT&& value) {
90 m_widgetsHasBeenSet = true;
91 m_widgets = std::forward<WidgetsT>(value);
92 }
93 template <typename WidgetsT = Aws::Vector<Widget>>
95 SetWidgets(std::forward<WidgetsT>(value));
96 return *this;
97 }
98 template <typename WidgetsT = Widget>
99 UpdateDashboardResult& AddWidgets(WidgetsT&& value) {
100 m_widgetsHasBeenSet = true;
101 m_widgets.emplace_back(std::forward<WidgetsT>(value));
102 return *this;
103 }
105
107
110 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
111 template <typename RefreshScheduleT = RefreshSchedule>
112 void SetRefreshSchedule(RefreshScheduleT&& value) {
113 m_refreshScheduleHasBeenSet = true;
114 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
115 }
116 template <typename RefreshScheduleT = RefreshSchedule>
117 UpdateDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) {
118 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
119 return *this;
120 }
122
124
127 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
128 inline void SetTerminationProtectionEnabled(bool value) {
129 m_terminationProtectionEnabledHasBeenSet = true;
130 m_terminationProtectionEnabled = value;
131 }
134 return *this;
135 }
137
139
142 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
143 template <typename CreatedTimestampT = Aws::Utils::DateTime>
144 void SetCreatedTimestamp(CreatedTimestampT&& value) {
145 m_createdTimestampHasBeenSet = true;
146 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
147 }
148 template <typename CreatedTimestampT = Aws::Utils::DateTime>
149 UpdateDashboardResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
150 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
160 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
161 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
162 m_updatedTimestampHasBeenSet = true;
163 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
164 }
165 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
166 UpdateDashboardResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
167 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
168 return *this;
169 }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template <typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) {
177 m_requestIdHasBeenSet = true;
178 m_requestId = std::forward<RequestIdT>(value);
179 }
180 template <typename RequestIdT = Aws::String>
182 SetRequestId(std::forward<RequestIdT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_dashboardArn;
188
189 Aws::String m_name;
190
192
193 Aws::Vector<Widget> m_widgets;
194
195 RefreshSchedule m_refreshSchedule;
196
197 bool m_terminationProtectionEnabled{false};
198
199 Aws::Utils::DateTime m_createdTimestamp{};
200
201 Aws::Utils::DateTime m_updatedTimestamp{};
202
203 Aws::String m_requestId;
204 bool m_dashboardArnHasBeenSet = false;
205 bool m_nameHasBeenSet = false;
206 bool m_typeHasBeenSet = false;
207 bool m_widgetsHasBeenSet = false;
208 bool m_refreshScheduleHasBeenSet = false;
209 bool m_terminationProtectionEnabledHasBeenSet = false;
210 bool m_createdTimestampHasBeenSet = false;
211 bool m_updatedTimestampHasBeenSet = false;
212 bool m_requestIdHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace CloudTrail
217} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTimestamp() const
UpdateDashboardResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Widget > & GetWidgets() const
UpdateDashboardResult & WithDashboardArn(DashboardArnT &&value)
UpdateDashboardResult & AddWidgets(WidgetsT &&value)
UpdateDashboardResult & WithWidgets(WidgetsT &&value)
UpdateDashboardResult & WithCreatedTimestamp(CreatedTimestampT &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
AWS_CLOUDTRAIL_API UpdateDashboardResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedTimestamp(CreatedTimestampT &&value)
UpdateDashboardResult & WithUpdatedTimestamp(UpdatedTimestampT &&value)
AWS_CLOUDTRAIL_API UpdateDashboardResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API UpdateDashboardResult()=default
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
UpdateDashboardResult & WithRefreshSchedule(RefreshScheduleT &&value)
UpdateDashboardResult & WithName(NameT &&value)
UpdateDashboardResult & WithType(DashboardType value)
UpdateDashboardResult & WithTerminationProtectionEnabled(bool 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