AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateDashboardResult.h
1
6#pragma once
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/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/RefreshSchedule.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/cloudtrail/model/Widget.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudTrail
29{
30namespace Model
31{
33 {
34 public:
35 AWS_CLOUDTRAIL_API UpdateDashboardResult() = default;
38
39
41
44 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
45 template<typename DashboardArnT = Aws::String>
46 void SetDashboardArn(DashboardArnT&& value) { m_dashboardArnHasBeenSet = true; m_dashboardArn = std::forward<DashboardArnT>(value); }
47 template<typename DashboardArnT = Aws::String>
48 UpdateDashboardResult& WithDashboardArn(DashboardArnT&& value) { SetDashboardArn(std::forward<DashboardArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 UpdateDashboardResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline DashboardType GetType() const { return m_type; }
67 inline void SetType(DashboardType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline UpdateDashboardResult& WithType(DashboardType value) { SetType(value); return *this;}
70
72
75 inline const Aws::Vector<Widget>& GetWidgets() const { return m_widgets; }
76 template<typename WidgetsT = Aws::Vector<Widget>>
77 void SetWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets = std::forward<WidgetsT>(value); }
78 template<typename WidgetsT = Aws::Vector<Widget>>
79 UpdateDashboardResult& WithWidgets(WidgetsT&& value) { SetWidgets(std::forward<WidgetsT>(value)); return *this;}
80 template<typename WidgetsT = Widget>
81 UpdateDashboardResult& AddWidgets(WidgetsT&& value) { m_widgetsHasBeenSet = true; m_widgets.emplace_back(std::forward<WidgetsT>(value)); return *this; }
83
85
88 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
89 template<typename RefreshScheduleT = RefreshSchedule>
90 void SetRefreshSchedule(RefreshScheduleT&& value) { m_refreshScheduleHasBeenSet = true; m_refreshSchedule = std::forward<RefreshScheduleT>(value); }
91 template<typename RefreshScheduleT = RefreshSchedule>
92 UpdateDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) { SetRefreshSchedule(std::forward<RefreshScheduleT>(value)); return *this;}
94
96
99 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
100 inline void SetTerminationProtectionEnabled(bool value) { m_terminationProtectionEnabledHasBeenSet = true; m_terminationProtectionEnabled = value; }
103
105
108 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
109 template<typename CreatedTimestampT = Aws::Utils::DateTime>
110 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
111 template<typename CreatedTimestampT = Aws::Utils::DateTime>
112 UpdateDashboardResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
120 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
121 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
122 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
123 UpdateDashboardResult& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
125
127
128 inline const Aws::String& GetRequestId() const { return m_requestId; }
129 template<typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
131 template<typename RequestIdT = Aws::String>
132 UpdateDashboardResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
134 private:
135
136 Aws::String m_dashboardArn;
137 bool m_dashboardArnHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
143 bool m_typeHasBeenSet = false;
144
145 Aws::Vector<Widget> m_widgets;
146 bool m_widgetsHasBeenSet = false;
147
148 RefreshSchedule m_refreshSchedule;
149 bool m_refreshScheduleHasBeenSet = false;
150
151 bool m_terminationProtectionEnabled{false};
152 bool m_terminationProtectionEnabledHasBeenSet = false;
153
154 Aws::Utils::DateTime m_createdTimestamp{};
155 bool m_createdTimestampHasBeenSet = false;
156
157 Aws::Utils::DateTime m_updatedTimestamp{};
158 bool m_updatedTimestampHasBeenSet = false;
159
160 Aws::String m_requestId;
161 bool m_requestIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CloudTrail
166} // namespace Aws
const RefreshSchedule & GetRefreshSchedule() const
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