AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDashboardResult.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/Tag.h>
11#include <aws/cloudtrail/model/Widget.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 CreateDashboardResult() = 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 CreateDashboardResult& 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 CreateDashboardResult& AddWidgets(WidgetsT&& value) {
100 m_widgetsHasBeenSet = true;
101 m_widgets.emplace_back(std::forward<WidgetsT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
109 template <typename TagsListT = Aws::Vector<Tag>>
110 void SetTagsList(TagsListT&& value) {
111 m_tagsListHasBeenSet = true;
112 m_tagsList = std::forward<TagsListT>(value);
113 }
114 template <typename TagsListT = Aws::Vector<Tag>>
116 SetTagsList(std::forward<TagsListT>(value));
117 return *this;
118 }
119 template <typename TagsListT = Tag>
120 CreateDashboardResult& AddTagsList(TagsListT&& value) {
121 m_tagsListHasBeenSet = true;
122 m_tagsList.emplace_back(std::forward<TagsListT>(value));
123 return *this;
124 }
126
128
131 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
132 template <typename RefreshScheduleT = RefreshSchedule>
133 void SetRefreshSchedule(RefreshScheduleT&& value) {
134 m_refreshScheduleHasBeenSet = true;
135 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
136 }
137 template <typename RefreshScheduleT = RefreshSchedule>
138 CreateDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) {
139 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
140 return *this;
141 }
143
145
148 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
149 inline void SetTerminationProtectionEnabled(bool value) {
150 m_terminationProtectionEnabledHasBeenSet = true;
151 m_terminationProtectionEnabled = value;
152 }
155 return *this;
156 }
158
160
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 template <typename RequestIdT = Aws::String>
163 void SetRequestId(RequestIdT&& value) {
164 m_requestIdHasBeenSet = true;
165 m_requestId = std::forward<RequestIdT>(value);
166 }
167 template <typename RequestIdT = Aws::String>
169 SetRequestId(std::forward<RequestIdT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_dashboardArn;
175
176 Aws::String m_name;
177
179
180 Aws::Vector<Widget> m_widgets;
181
182 Aws::Vector<Tag> m_tagsList;
183
184 RefreshSchedule m_refreshSchedule;
185
186 bool m_terminationProtectionEnabled{false};
187
188 Aws::String m_requestId;
189 bool m_dashboardArnHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191 bool m_typeHasBeenSet = false;
192 bool m_widgetsHasBeenSet = false;
193 bool m_tagsListHasBeenSet = false;
194 bool m_refreshScheduleHasBeenSet = false;
195 bool m_terminationProtectionEnabledHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace CloudTrail
201} // namespace Aws
CreateDashboardResult & WithType(DashboardType value)
CreateDashboardResult & WithRequestId(RequestIdT &&value)
CreateDashboardResult & WithTerminationProtectionEnabled(bool value)
CreateDashboardResult & WithName(NameT &&value)
const Aws::Vector< Widget > & GetWidgets() const
CreateDashboardResult & WithRefreshSchedule(RefreshScheduleT &&value)
CreateDashboardResult & AddTagsList(TagsListT &&value)
CreateDashboardResult & WithWidgets(WidgetsT &&value)
AWS_CLOUDTRAIL_API CreateDashboardResult()=default
CreateDashboardResult & WithDashboardArn(DashboardArnT &&value)
CreateDashboardResult & AddWidgets(WidgetsT &&value)
CreateDashboardResult & WithTagsList(TagsListT &&value)
AWS_CLOUDTRAIL_API CreateDashboardResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Tag > & GetTagsList() const
AWS_CLOUDTRAIL_API CreateDashboardResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue