AWS SDK for C++

AWS SDK for C++ Version 1.11.780

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/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudTrail {
28namespace Model {
30 public:
31 AWS_CLOUDTRAIL_API UpdateDashboardResult() = default;
34
36
39 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
40 template <typename DashboardArnT = Aws::String>
41 void SetDashboardArn(DashboardArnT&& value) {
42 m_dashboardArnHasBeenSet = true;
43 m_dashboardArn = std::forward<DashboardArnT>(value);
44 }
45 template <typename DashboardArnT = Aws::String>
46 UpdateDashboardResult& WithDashboardArn(DashboardArnT&& value) {
47 SetDashboardArn(std::forward<DashboardArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline DashboardType GetType() const { return m_type; }
74 inline void SetType(DashboardType value) {
75 m_typeHasBeenSet = true;
76 m_type = value;
77 }
79 SetType(value);
80 return *this;
81 }
83
85
88 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
89 template <typename WidgetsT = Aws::Vector<Widget>>
90 void SetWidgets(WidgetsT&& value) {
91 m_widgetsHasBeenSet = true;
92 m_widgets = std::forward<WidgetsT>(value);
93 }
94 template <typename WidgetsT = Aws::Vector<Widget>>
96 SetWidgets(std::forward<WidgetsT>(value));
97 return *this;
98 }
99 template <typename WidgetsT = Widget>
101 m_widgetsHasBeenSet = true;
102 m_widgets.emplace_back(std::forward<WidgetsT>(value));
103 return *this;
104 }
106
108
111 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
112 template <typename RefreshScheduleT = RefreshSchedule>
113 void SetRefreshSchedule(RefreshScheduleT&& value) {
114 m_refreshScheduleHasBeenSet = true;
115 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
116 }
117 template <typename RefreshScheduleT = RefreshSchedule>
118 UpdateDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) {
119 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
120 return *this;
121 }
123
125
128 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
129 inline void SetTerminationProtectionEnabled(bool value) {
130 m_terminationProtectionEnabledHasBeenSet = true;
131 m_terminationProtectionEnabled = value;
132 }
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
144 template <typename CreatedTimestampT = Aws::Utils::DateTime>
145 void SetCreatedTimestamp(CreatedTimestampT&& value) {
146 m_createdTimestampHasBeenSet = true;
147 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
148 }
149 template <typename CreatedTimestampT = Aws::Utils::DateTime>
150 UpdateDashboardResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
151 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
161 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
162 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
163 m_updatedTimestampHasBeenSet = true;
164 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
165 }
166 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
167 UpdateDashboardResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
168 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
169 return *this;
170 }
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template <typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) {
178 m_requestIdHasBeenSet = true;
179 m_requestId = std::forward<RequestIdT>(value);
180 }
181 template <typename RequestIdT = Aws::String>
183 SetRequestId(std::forward<RequestIdT>(value));
184 return *this;
185 }
187 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
188
189 private:
190 Aws::String m_dashboardArn;
191
192 Aws::String m_name;
193
195
196 Aws::Vector<Widget> m_widgets;
197
198 RefreshSchedule m_refreshSchedule;
199
200 bool m_terminationProtectionEnabled{false};
201
202 Aws::Utils::DateTime m_createdTimestamp{};
203
204 Aws::Utils::DateTime m_updatedTimestamp{};
205
206 Aws::String m_requestId;
207 Aws::Http::HttpResponseCode m_HttpResponseCode;
208 bool m_dashboardArnHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_typeHasBeenSet = false;
211 bool m_widgetsHasBeenSet = false;
212 bool m_refreshScheduleHasBeenSet = false;
213 bool m_terminationProtectionEnabledHasBeenSet = false;
214 bool m_createdTimestampHasBeenSet = false;
215 bool m_updatedTimestampHasBeenSet = false;
216 bool m_requestIdHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace CloudTrail
221} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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