AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FreeFormLayoutElement.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/LayoutElementType.h>
10#include <aws/quicksight/model/Visibility.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/quicksight/model/FreeFormLayoutElementBorderStyle.h>
13#include <aws/quicksight/model/FreeFormLayoutElementBackgroundStyle.h>
14#include <aws/quicksight/model/LoadingAnimation.h>
15#include <aws/quicksight/model/SheetElementRenderingRule.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace QuickSight
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_QUICKSIGHT_API FreeFormLayoutElement() = default;
44 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetElementId() const { return m_elementId; }
52 inline bool ElementIdHasBeenSet() const { return m_elementIdHasBeenSet; }
53 template<typename ElementIdT = Aws::String>
54 void SetElementId(ElementIdT&& value) { m_elementIdHasBeenSet = true; m_elementId = std::forward<ElementIdT>(value); }
55 template<typename ElementIdT = Aws::String>
56 FreeFormLayoutElement& WithElementId(ElementIdT&& value) { SetElementId(std::forward<ElementIdT>(value)); return *this;}
58
60
63 inline LayoutElementType GetElementType() const { return m_elementType; }
64 inline bool ElementTypeHasBeenSet() const { return m_elementTypeHasBeenSet; }
65 inline void SetElementType(LayoutElementType value) { m_elementTypeHasBeenSet = true; m_elementType = value; }
68
70
73 inline const Aws::String& GetXAxisLocation() const { return m_xAxisLocation; }
74 inline bool XAxisLocationHasBeenSet() const { return m_xAxisLocationHasBeenSet; }
75 template<typename XAxisLocationT = Aws::String>
76 void SetXAxisLocation(XAxisLocationT&& value) { m_xAxisLocationHasBeenSet = true; m_xAxisLocation = std::forward<XAxisLocationT>(value); }
77 template<typename XAxisLocationT = Aws::String>
78 FreeFormLayoutElement& WithXAxisLocation(XAxisLocationT&& value) { SetXAxisLocation(std::forward<XAxisLocationT>(value)); return *this;}
80
82
85 inline const Aws::String& GetYAxisLocation() const { return m_yAxisLocation; }
86 inline bool YAxisLocationHasBeenSet() const { return m_yAxisLocationHasBeenSet; }
87 template<typename YAxisLocationT = Aws::String>
88 void SetYAxisLocation(YAxisLocationT&& value) { m_yAxisLocationHasBeenSet = true; m_yAxisLocation = std::forward<YAxisLocationT>(value); }
89 template<typename YAxisLocationT = Aws::String>
90 FreeFormLayoutElement& WithYAxisLocation(YAxisLocationT&& value) { SetYAxisLocation(std::forward<YAxisLocationT>(value)); return *this;}
92
94
97 inline const Aws::String& GetWidth() const { return m_width; }
98 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
99 template<typename WidthT = Aws::String>
100 void SetWidth(WidthT&& value) { m_widthHasBeenSet = true; m_width = std::forward<WidthT>(value); }
101 template<typename WidthT = Aws::String>
102 FreeFormLayoutElement& WithWidth(WidthT&& value) { SetWidth(std::forward<WidthT>(value)); return *this;}
104
106
109 inline const Aws::String& GetHeight() const { return m_height; }
110 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
111 template<typename HeightT = Aws::String>
112 void SetHeight(HeightT&& value) { m_heightHasBeenSet = true; m_height = std::forward<HeightT>(value); }
113 template<typename HeightT = Aws::String>
114 FreeFormLayoutElement& WithHeight(HeightT&& value) { SetHeight(std::forward<HeightT>(value)); return *this;}
116
118
121 inline Visibility GetVisibility() const { return m_visibility; }
122 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
123 inline void SetVisibility(Visibility value) { m_visibilityHasBeenSet = true; m_visibility = value; }
124 inline FreeFormLayoutElement& WithVisibility(Visibility value) { SetVisibility(value); return *this;}
126
128
132 inline const Aws::Vector<SheetElementRenderingRule>& GetRenderingRules() const { return m_renderingRules; }
133 inline bool RenderingRulesHasBeenSet() const { return m_renderingRulesHasBeenSet; }
134 template<typename RenderingRulesT = Aws::Vector<SheetElementRenderingRule>>
135 void SetRenderingRules(RenderingRulesT&& value) { m_renderingRulesHasBeenSet = true; m_renderingRules = std::forward<RenderingRulesT>(value); }
136 template<typename RenderingRulesT = Aws::Vector<SheetElementRenderingRule>>
137 FreeFormLayoutElement& WithRenderingRules(RenderingRulesT&& value) { SetRenderingRules(std::forward<RenderingRulesT>(value)); return *this;}
138 template<typename RenderingRulesT = SheetElementRenderingRule>
139 FreeFormLayoutElement& AddRenderingRules(RenderingRulesT&& value) { m_renderingRulesHasBeenSet = true; m_renderingRules.emplace_back(std::forward<RenderingRulesT>(value)); return *this; }
141
143
146 inline const FreeFormLayoutElementBorderStyle& GetBorderStyle() const { return m_borderStyle; }
147 inline bool BorderStyleHasBeenSet() const { return m_borderStyleHasBeenSet; }
148 template<typename BorderStyleT = FreeFormLayoutElementBorderStyle>
149 void SetBorderStyle(BorderStyleT&& value) { m_borderStyleHasBeenSet = true; m_borderStyle = std::forward<BorderStyleT>(value); }
150 template<typename BorderStyleT = FreeFormLayoutElementBorderStyle>
151 FreeFormLayoutElement& WithBorderStyle(BorderStyleT&& value) { SetBorderStyle(std::forward<BorderStyleT>(value)); return *this;}
153
155
159 inline const FreeFormLayoutElementBorderStyle& GetSelectedBorderStyle() const { return m_selectedBorderStyle; }
160 inline bool SelectedBorderStyleHasBeenSet() const { return m_selectedBorderStyleHasBeenSet; }
161 template<typename SelectedBorderStyleT = FreeFormLayoutElementBorderStyle>
162 void SetSelectedBorderStyle(SelectedBorderStyleT&& value) { m_selectedBorderStyleHasBeenSet = true; m_selectedBorderStyle = std::forward<SelectedBorderStyleT>(value); }
163 template<typename SelectedBorderStyleT = FreeFormLayoutElementBorderStyle>
164 FreeFormLayoutElement& WithSelectedBorderStyle(SelectedBorderStyleT&& value) { SetSelectedBorderStyle(std::forward<SelectedBorderStyleT>(value)); return *this;}
166
168
171 inline const FreeFormLayoutElementBackgroundStyle& GetBackgroundStyle() const { return m_backgroundStyle; }
172 inline bool BackgroundStyleHasBeenSet() const { return m_backgroundStyleHasBeenSet; }
173 template<typename BackgroundStyleT = FreeFormLayoutElementBackgroundStyle>
174 void SetBackgroundStyle(BackgroundStyleT&& value) { m_backgroundStyleHasBeenSet = true; m_backgroundStyle = std::forward<BackgroundStyleT>(value); }
175 template<typename BackgroundStyleT = FreeFormLayoutElementBackgroundStyle>
176 FreeFormLayoutElement& WithBackgroundStyle(BackgroundStyleT&& value) { SetBackgroundStyle(std::forward<BackgroundStyleT>(value)); return *this;}
178
180
183 inline const LoadingAnimation& GetLoadingAnimation() const { return m_loadingAnimation; }
184 inline bool LoadingAnimationHasBeenSet() const { return m_loadingAnimationHasBeenSet; }
185 template<typename LoadingAnimationT = LoadingAnimation>
186 void SetLoadingAnimation(LoadingAnimationT&& value) { m_loadingAnimationHasBeenSet = true; m_loadingAnimation = std::forward<LoadingAnimationT>(value); }
187 template<typename LoadingAnimationT = LoadingAnimation>
188 FreeFormLayoutElement& WithLoadingAnimation(LoadingAnimationT&& value) { SetLoadingAnimation(std::forward<LoadingAnimationT>(value)); return *this;}
190 private:
191
192 Aws::String m_elementId;
193 bool m_elementIdHasBeenSet = false;
194
196 bool m_elementTypeHasBeenSet = false;
197
198 Aws::String m_xAxisLocation;
199 bool m_xAxisLocationHasBeenSet = false;
200
201 Aws::String m_yAxisLocation;
202 bool m_yAxisLocationHasBeenSet = false;
203
204 Aws::String m_width;
205 bool m_widthHasBeenSet = false;
206
207 Aws::String m_height;
208 bool m_heightHasBeenSet = false;
209
210 Visibility m_visibility{Visibility::NOT_SET};
211 bool m_visibilityHasBeenSet = false;
212
214 bool m_renderingRulesHasBeenSet = false;
215
216 FreeFormLayoutElementBorderStyle m_borderStyle;
217 bool m_borderStyleHasBeenSet = false;
218
219 FreeFormLayoutElementBorderStyle m_selectedBorderStyle;
220 bool m_selectedBorderStyleHasBeenSet = false;
221
222 FreeFormLayoutElementBackgroundStyle m_backgroundStyle;
223 bool m_backgroundStyleHasBeenSet = false;
224
225 LoadingAnimation m_loadingAnimation;
226 bool m_loadingAnimationHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace QuickSight
231} // 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)
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 & 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