AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
FreeFormLayoutElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/FreeFormLayoutElementBackgroundStyle.h>
11#include <aws/quicksight/model/FreeFormLayoutElementBorderStyle.h>
12#include <aws/quicksight/model/LayoutElementType.h>
13#include <aws/quicksight/model/LoadingAnimation.h>
14#include <aws/quicksight/model/SheetElementRenderingRule.h>
15#include <aws/quicksight/model/Visibility.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight {
27namespace Model {
28
35 public:
36 AWS_QUICKSIGHT_API FreeFormLayoutElement() = default;
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetElementId() const { return m_elementId; }
46 inline bool ElementIdHasBeenSet() const { return m_elementIdHasBeenSet; }
47 template <typename ElementIdT = Aws::String>
48 void SetElementId(ElementIdT&& value) {
49 m_elementIdHasBeenSet = true;
50 m_elementId = std::forward<ElementIdT>(value);
51 }
52 template <typename ElementIdT = Aws::String>
53 FreeFormLayoutElement& WithElementId(ElementIdT&& value) {
54 SetElementId(std::forward<ElementIdT>(value));
55 return *this;
56 }
58
60
63 inline LayoutElementType GetElementType() const { return m_elementType; }
64 inline bool ElementTypeHasBeenSet() const { return m_elementTypeHasBeenSet; }
65 inline void SetElementType(LayoutElementType value) {
66 m_elementTypeHasBeenSet = true;
67 m_elementType = value;
68 }
70 SetElementType(value);
71 return *this;
72 }
74
76
79 inline const Aws::String& GetXAxisLocation() const { return m_xAxisLocation; }
80 inline bool XAxisLocationHasBeenSet() const { return m_xAxisLocationHasBeenSet; }
81 template <typename XAxisLocationT = Aws::String>
82 void SetXAxisLocation(XAxisLocationT&& value) {
83 m_xAxisLocationHasBeenSet = true;
84 m_xAxisLocation = std::forward<XAxisLocationT>(value);
85 }
86 template <typename XAxisLocationT = Aws::String>
87 FreeFormLayoutElement& WithXAxisLocation(XAxisLocationT&& value) {
88 SetXAxisLocation(std::forward<XAxisLocationT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetYAxisLocation() const { return m_yAxisLocation; }
98 inline bool YAxisLocationHasBeenSet() const { return m_yAxisLocationHasBeenSet; }
99 template <typename YAxisLocationT = Aws::String>
100 void SetYAxisLocation(YAxisLocationT&& value) {
101 m_yAxisLocationHasBeenSet = true;
102 m_yAxisLocation = std::forward<YAxisLocationT>(value);
103 }
104 template <typename YAxisLocationT = Aws::String>
105 FreeFormLayoutElement& WithYAxisLocation(YAxisLocationT&& value) {
106 SetYAxisLocation(std::forward<YAxisLocationT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetWidth() const { return m_width; }
116 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
117 template <typename WidthT = Aws::String>
118 void SetWidth(WidthT&& value) {
119 m_widthHasBeenSet = true;
120 m_width = std::forward<WidthT>(value);
121 }
122 template <typename WidthT = Aws::String>
124 SetWidth(std::forward<WidthT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetHeight() const { return m_height; }
134 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
135 template <typename HeightT = Aws::String>
136 void SetHeight(HeightT&& value) {
137 m_heightHasBeenSet = true;
138 m_height = std::forward<HeightT>(value);
139 }
140 template <typename HeightT = Aws::String>
142 SetHeight(std::forward<HeightT>(value));
143 return *this;
144 }
146
148
151 inline Visibility GetVisibility() const { return m_visibility; }
152 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
153 inline void SetVisibility(Visibility value) {
154 m_visibilityHasBeenSet = true;
155 m_visibility = value;
156 }
158 SetVisibility(value);
159 return *this;
160 }
162
164
168 inline const Aws::Vector<SheetElementRenderingRule>& GetRenderingRules() const { return m_renderingRules; }
169 inline bool RenderingRulesHasBeenSet() const { return m_renderingRulesHasBeenSet; }
170 template <typename RenderingRulesT = Aws::Vector<SheetElementRenderingRule>>
171 void SetRenderingRules(RenderingRulesT&& value) {
172 m_renderingRulesHasBeenSet = true;
173 m_renderingRules = std::forward<RenderingRulesT>(value);
174 }
175 template <typename RenderingRulesT = Aws::Vector<SheetElementRenderingRule>>
176 FreeFormLayoutElement& WithRenderingRules(RenderingRulesT&& value) {
177 SetRenderingRules(std::forward<RenderingRulesT>(value));
178 return *this;
179 }
180 template <typename RenderingRulesT = SheetElementRenderingRule>
181 FreeFormLayoutElement& AddRenderingRules(RenderingRulesT&& value) {
182 m_renderingRulesHasBeenSet = true;
183 m_renderingRules.emplace_back(std::forward<RenderingRulesT>(value));
184 return *this;
185 }
187
189
192 inline const FreeFormLayoutElementBorderStyle& GetBorderStyle() const { return m_borderStyle; }
193 inline bool BorderStyleHasBeenSet() const { return m_borderStyleHasBeenSet; }
194 template <typename BorderStyleT = FreeFormLayoutElementBorderStyle>
195 void SetBorderStyle(BorderStyleT&& value) {
196 m_borderStyleHasBeenSet = true;
197 m_borderStyle = std::forward<BorderStyleT>(value);
198 }
199 template <typename BorderStyleT = FreeFormLayoutElementBorderStyle>
200 FreeFormLayoutElement& WithBorderStyle(BorderStyleT&& value) {
201 SetBorderStyle(std::forward<BorderStyleT>(value));
202 return *this;
203 }
205
207
211 inline const FreeFormLayoutElementBorderStyle& GetSelectedBorderStyle() const { return m_selectedBorderStyle; }
212 inline bool SelectedBorderStyleHasBeenSet() const { return m_selectedBorderStyleHasBeenSet; }
213 template <typename SelectedBorderStyleT = FreeFormLayoutElementBorderStyle>
214 void SetSelectedBorderStyle(SelectedBorderStyleT&& value) {
215 m_selectedBorderStyleHasBeenSet = true;
216 m_selectedBorderStyle = std::forward<SelectedBorderStyleT>(value);
217 }
218 template <typename SelectedBorderStyleT = FreeFormLayoutElementBorderStyle>
219 FreeFormLayoutElement& WithSelectedBorderStyle(SelectedBorderStyleT&& value) {
220 SetSelectedBorderStyle(std::forward<SelectedBorderStyleT>(value));
221 return *this;
222 }
224
226
229 inline const FreeFormLayoutElementBackgroundStyle& GetBackgroundStyle() const { return m_backgroundStyle; }
230 inline bool BackgroundStyleHasBeenSet() const { return m_backgroundStyleHasBeenSet; }
231 template <typename BackgroundStyleT = FreeFormLayoutElementBackgroundStyle>
232 void SetBackgroundStyle(BackgroundStyleT&& value) {
233 m_backgroundStyleHasBeenSet = true;
234 m_backgroundStyle = std::forward<BackgroundStyleT>(value);
235 }
236 template <typename BackgroundStyleT = FreeFormLayoutElementBackgroundStyle>
237 FreeFormLayoutElement& WithBackgroundStyle(BackgroundStyleT&& value) {
238 SetBackgroundStyle(std::forward<BackgroundStyleT>(value));
239 return *this;
240 }
242
244
247 inline const LoadingAnimation& GetLoadingAnimation() const { return m_loadingAnimation; }
248 inline bool LoadingAnimationHasBeenSet() const { return m_loadingAnimationHasBeenSet; }
249 template <typename LoadingAnimationT = LoadingAnimation>
250 void SetLoadingAnimation(LoadingAnimationT&& value) {
251 m_loadingAnimationHasBeenSet = true;
252 m_loadingAnimation = std::forward<LoadingAnimationT>(value);
253 }
254 template <typename LoadingAnimationT = LoadingAnimation>
255 FreeFormLayoutElement& WithLoadingAnimation(LoadingAnimationT&& value) {
256 SetLoadingAnimation(std::forward<LoadingAnimationT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::String& GetBorderRadius() const { return m_borderRadius; }
266 inline bool BorderRadiusHasBeenSet() const { return m_borderRadiusHasBeenSet; }
267 template <typename BorderRadiusT = Aws::String>
268 void SetBorderRadius(BorderRadiusT&& value) {
269 m_borderRadiusHasBeenSet = true;
270 m_borderRadius = std::forward<BorderRadiusT>(value);
271 }
272 template <typename BorderRadiusT = Aws::String>
273 FreeFormLayoutElement& WithBorderRadius(BorderRadiusT&& value) {
274 SetBorderRadius(std::forward<BorderRadiusT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::String& GetPadding() const { return m_padding; }
284 inline bool PaddingHasBeenSet() const { return m_paddingHasBeenSet; }
285 template <typename PaddingT = Aws::String>
286 void SetPadding(PaddingT&& value) {
287 m_paddingHasBeenSet = true;
288 m_padding = std::forward<PaddingT>(value);
289 }
290 template <typename PaddingT = Aws::String>
292 SetPadding(std::forward<PaddingT>(value));
293 return *this;
294 }
296 private:
297 Aws::String m_elementId;
298
300
301 Aws::String m_xAxisLocation;
302
303 Aws::String m_yAxisLocation;
304
305 Aws::String m_width;
306
307 Aws::String m_height;
308
309 Visibility m_visibility{Visibility::NOT_SET};
310
312
313 FreeFormLayoutElementBorderStyle m_borderStyle;
314
315 FreeFormLayoutElementBorderStyle m_selectedBorderStyle;
316
317 FreeFormLayoutElementBackgroundStyle m_backgroundStyle;
318
319 LoadingAnimation m_loadingAnimation;
320
321 Aws::String m_borderRadius;
322
323 Aws::String m_padding;
324 bool m_elementIdHasBeenSet = false;
325 bool m_elementTypeHasBeenSet = false;
326 bool m_xAxisLocationHasBeenSet = false;
327 bool m_yAxisLocationHasBeenSet = false;
328 bool m_widthHasBeenSet = false;
329 bool m_heightHasBeenSet = false;
330 bool m_visibilityHasBeenSet = false;
331 bool m_renderingRulesHasBeenSet = false;
332 bool m_borderStyleHasBeenSet = false;
333 bool m_selectedBorderStyleHasBeenSet = false;
334 bool m_backgroundStyleHasBeenSet = false;
335 bool m_loadingAnimationHasBeenSet = false;
336 bool m_borderRadiusHasBeenSet = false;
337 bool m_paddingHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace QuickSight
342} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
FreeFormLayoutElement & WithLoadingAnimation(LoadingAnimationT &&value)
FreeFormLayoutElement & WithYAxisLocation(YAxisLocationT &&value)
FreeFormLayoutElement & WithHeight(HeightT &&value)
const FreeFormLayoutElementBorderStyle & GetSelectedBorderStyle() const
const FreeFormLayoutElementBorderStyle & GetBorderStyle() const
FreeFormLayoutElement & WithBorderStyle(BorderStyleT &&value)
FreeFormLayoutElement & WithElementType(LayoutElementType value)
FreeFormLayoutElement & WithPadding(PaddingT &&value)
AWS_QUICKSIGHT_API FreeFormLayoutElement()=default
FreeFormLayoutElement & AddRenderingRules(RenderingRulesT &&value)
FreeFormLayoutElement & WithBackgroundStyle(BackgroundStyleT &&value)
const FreeFormLayoutElementBackgroundStyle & GetBackgroundStyle() const
AWS_QUICKSIGHT_API FreeFormLayoutElement(Aws::Utils::Json::JsonView jsonValue)
const LoadingAnimation & GetLoadingAnimation() const
FreeFormLayoutElement & WithXAxisLocation(XAxisLocationT &&value)
FreeFormLayoutElement & WithWidth(WidthT &&value)
void SetLoadingAnimation(LoadingAnimationT &&value)
const Aws::Vector< SheetElementRenderingRule > & GetRenderingRules() const
FreeFormLayoutElement & WithVisibility(Visibility value)
FreeFormLayoutElement & WithElementId(ElementIdT &&value)
void SetSelectedBorderStyle(SelectedBorderStyleT &&value)
FreeFormLayoutElement & WithBorderRadius(BorderRadiusT &&value)
FreeFormLayoutElement & WithSelectedBorderStyle(SelectedBorderStyleT &&value)
AWS_QUICKSIGHT_API FreeFormLayoutElement & operator=(Aws::Utils::Json::JsonView jsonValue)
FreeFormLayoutElement & WithRenderingRules(RenderingRulesT &&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