AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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/http/HttpResponse.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 CreateDashboardResult() = 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 CreateDashboardResult& 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
109 inline const Aws::Vector<Tag>& GetTagsList() const { return m_tagsList; }
110 template <typename TagsListT = Aws::Vector<Tag>>
111 void SetTagsList(TagsListT&& value) {
112 m_tagsListHasBeenSet = true;
113 m_tagsList = std::forward<TagsListT>(value);
114 }
115 template <typename TagsListT = Aws::Vector<Tag>>
117 SetTagsList(std::forward<TagsListT>(value));
118 return *this;
119 }
120 template <typename TagsListT = Tag>
121 CreateDashboardResult& AddTagsList(TagsListT&& value) {
122 m_tagsListHasBeenSet = true;
123 m_tagsList.emplace_back(std::forward<TagsListT>(value));
124 return *this;
125 }
127
129
132 inline const RefreshSchedule& GetRefreshSchedule() const { return m_refreshSchedule; }
133 template <typename RefreshScheduleT = RefreshSchedule>
134 void SetRefreshSchedule(RefreshScheduleT&& value) {
135 m_refreshScheduleHasBeenSet = true;
136 m_refreshSchedule = std::forward<RefreshScheduleT>(value);
137 }
138 template <typename RefreshScheduleT = RefreshSchedule>
139 CreateDashboardResult& WithRefreshSchedule(RefreshScheduleT&& value) {
140 SetRefreshSchedule(std::forward<RefreshScheduleT>(value));
141 return *this;
142 }
144
146
149 inline bool GetTerminationProtectionEnabled() const { return m_terminationProtectionEnabled; }
150 inline void SetTerminationProtectionEnabled(bool value) {
151 m_terminationProtectionEnabledHasBeenSet = true;
152 m_terminationProtectionEnabled = value;
153 }
156 return *this;
157 }
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
175
176 private:
177 Aws::String m_dashboardArn;
178
179 Aws::String m_name;
180
182
183 Aws::Vector<Widget> m_widgets;
184
185 Aws::Vector<Tag> m_tagsList;
186
187 RefreshSchedule m_refreshSchedule;
188
189 bool m_terminationProtectionEnabled{false};
190
191 Aws::String m_requestId;
192 Aws::Http::HttpResponseCode m_HttpResponseCode;
193 bool m_dashboardArnHasBeenSet = false;
194 bool m_nameHasBeenSet = false;
195 bool m_typeHasBeenSet = false;
196 bool m_widgetsHasBeenSet = false;
197 bool m_tagsListHasBeenSet = false;
198 bool m_refreshScheduleHasBeenSet = false;
199 bool m_terminationProtectionEnabledHasBeenSet = false;
200 bool m_requestIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace CloudTrail
205} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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