AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GridLayoutElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/GridLayoutElementBackgroundStyle.h>
10#include <aws/quicksight/model/GridLayoutElementBorderStyle.h>
11#include <aws/quicksight/model/LayoutElementType.h>
12#include <aws/quicksight/model/LoadingAnimation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
25
32 public:
33 AWS_QUICKSIGHT_API GridLayoutElement() = default;
34 AWS_QUICKSIGHT_API GridLayoutElement(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetElementId() const { return m_elementId; }
43 inline bool ElementIdHasBeenSet() const { return m_elementIdHasBeenSet; }
44 template <typename ElementIdT = Aws::String>
45 void SetElementId(ElementIdT&& value) {
46 m_elementIdHasBeenSet = true;
47 m_elementId = std::forward<ElementIdT>(value);
48 }
49 template <typename ElementIdT = Aws::String>
50 GridLayoutElement& WithElementId(ElementIdT&& value) {
51 SetElementId(std::forward<ElementIdT>(value));
52 return *this;
53 }
55
57
60 inline LayoutElementType GetElementType() const { return m_elementType; }
61 inline bool ElementTypeHasBeenSet() const { return m_elementTypeHasBeenSet; }
62 inline void SetElementType(LayoutElementType value) {
63 m_elementTypeHasBeenSet = true;
64 m_elementType = value;
65 }
67 SetElementType(value);
68 return *this;
69 }
71
73
76 inline int GetColumnIndex() const { return m_columnIndex; }
77 inline bool ColumnIndexHasBeenSet() const { return m_columnIndexHasBeenSet; }
78 inline void SetColumnIndex(int value) {
79 m_columnIndexHasBeenSet = true;
80 m_columnIndex = value;
81 }
83 SetColumnIndex(value);
84 return *this;
85 }
87
89
92 inline int GetColumnSpan() const { return m_columnSpan; }
93 inline bool ColumnSpanHasBeenSet() const { return m_columnSpanHasBeenSet; }
94 inline void SetColumnSpan(int value) {
95 m_columnSpanHasBeenSet = true;
96 m_columnSpan = value;
97 }
98 inline GridLayoutElement& WithColumnSpan(int value) {
99 SetColumnSpan(value);
100 return *this;
101 }
103
105
108 inline int GetRowIndex() const { return m_rowIndex; }
109 inline bool RowIndexHasBeenSet() const { return m_rowIndexHasBeenSet; }
110 inline void SetRowIndex(int value) {
111 m_rowIndexHasBeenSet = true;
112 m_rowIndex = value;
113 }
114 inline GridLayoutElement& WithRowIndex(int value) {
115 SetRowIndex(value);
116 return *this;
117 }
119
121
124 inline int GetRowSpan() const { return m_rowSpan; }
125 inline bool RowSpanHasBeenSet() const { return m_rowSpanHasBeenSet; }
126 inline void SetRowSpan(int value) {
127 m_rowSpanHasBeenSet = true;
128 m_rowSpan = value;
129 }
130 inline GridLayoutElement& WithRowSpan(int value) {
131 SetRowSpan(value);
132 return *this;
133 }
135
137
140 inline const GridLayoutElementBorderStyle& GetBorderStyle() const { return m_borderStyle; }
141 inline bool BorderStyleHasBeenSet() const { return m_borderStyleHasBeenSet; }
142 template <typename BorderStyleT = GridLayoutElementBorderStyle>
143 void SetBorderStyle(BorderStyleT&& value) {
144 m_borderStyleHasBeenSet = true;
145 m_borderStyle = std::forward<BorderStyleT>(value);
146 }
147 template <typename BorderStyleT = GridLayoutElementBorderStyle>
148 GridLayoutElement& WithBorderStyle(BorderStyleT&& value) {
149 SetBorderStyle(std::forward<BorderStyleT>(value));
150 return *this;
151 }
153
155
159 inline const GridLayoutElementBorderStyle& GetSelectedBorderStyle() const { return m_selectedBorderStyle; }
160 inline bool SelectedBorderStyleHasBeenSet() const { return m_selectedBorderStyleHasBeenSet; }
161 template <typename SelectedBorderStyleT = GridLayoutElementBorderStyle>
162 void SetSelectedBorderStyle(SelectedBorderStyleT&& value) {
163 m_selectedBorderStyleHasBeenSet = true;
164 m_selectedBorderStyle = std::forward<SelectedBorderStyleT>(value);
165 }
166 template <typename SelectedBorderStyleT = GridLayoutElementBorderStyle>
167 GridLayoutElement& WithSelectedBorderStyle(SelectedBorderStyleT&& value) {
168 SetSelectedBorderStyle(std::forward<SelectedBorderStyleT>(value));
169 return *this;
170 }
172
174
177 inline const GridLayoutElementBackgroundStyle& GetBackgroundStyle() const { return m_backgroundStyle; }
178 inline bool BackgroundStyleHasBeenSet() const { return m_backgroundStyleHasBeenSet; }
179 template <typename BackgroundStyleT = GridLayoutElementBackgroundStyle>
180 void SetBackgroundStyle(BackgroundStyleT&& value) {
181 m_backgroundStyleHasBeenSet = true;
182 m_backgroundStyle = std::forward<BackgroundStyleT>(value);
183 }
184 template <typename BackgroundStyleT = GridLayoutElementBackgroundStyle>
185 GridLayoutElement& WithBackgroundStyle(BackgroundStyleT&& value) {
186 SetBackgroundStyle(std::forward<BackgroundStyleT>(value));
187 return *this;
188 }
190
192
193 inline const LoadingAnimation& GetLoadingAnimation() const { return m_loadingAnimation; }
194 inline bool LoadingAnimationHasBeenSet() const { return m_loadingAnimationHasBeenSet; }
195 template <typename LoadingAnimationT = LoadingAnimation>
196 void SetLoadingAnimation(LoadingAnimationT&& value) {
197 m_loadingAnimationHasBeenSet = true;
198 m_loadingAnimation = std::forward<LoadingAnimationT>(value);
199 }
200 template <typename LoadingAnimationT = LoadingAnimation>
201 GridLayoutElement& WithLoadingAnimation(LoadingAnimationT&& value) {
202 SetLoadingAnimation(std::forward<LoadingAnimationT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetBorderRadius() const { return m_borderRadius; }
212 inline bool BorderRadiusHasBeenSet() const { return m_borderRadiusHasBeenSet; }
213 template <typename BorderRadiusT = Aws::String>
214 void SetBorderRadius(BorderRadiusT&& value) {
215 m_borderRadiusHasBeenSet = true;
216 m_borderRadius = std::forward<BorderRadiusT>(value);
217 }
218 template <typename BorderRadiusT = Aws::String>
219 GridLayoutElement& WithBorderRadius(BorderRadiusT&& value) {
220 SetBorderRadius(std::forward<BorderRadiusT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetPadding() const { return m_padding; }
230 inline bool PaddingHasBeenSet() const { return m_paddingHasBeenSet; }
231 template <typename PaddingT = Aws::String>
232 void SetPadding(PaddingT&& value) {
233 m_paddingHasBeenSet = true;
234 m_padding = std::forward<PaddingT>(value);
235 }
236 template <typename PaddingT = Aws::String>
237 GridLayoutElement& WithPadding(PaddingT&& value) {
238 SetPadding(std::forward<PaddingT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_elementId;
244
246
247 int m_columnIndex{0};
248
249 int m_columnSpan{0};
250
251 int m_rowIndex{0};
252
253 int m_rowSpan{0};
254
255 GridLayoutElementBorderStyle m_borderStyle;
256
257 GridLayoutElementBorderStyle m_selectedBorderStyle;
258
259 GridLayoutElementBackgroundStyle m_backgroundStyle;
260
261 LoadingAnimation m_loadingAnimation;
262
263 Aws::String m_borderRadius;
264
265 Aws::String m_padding;
266 bool m_elementIdHasBeenSet = false;
267 bool m_elementTypeHasBeenSet = false;
268 bool m_columnIndexHasBeenSet = false;
269 bool m_columnSpanHasBeenSet = false;
270 bool m_rowIndexHasBeenSet = false;
271 bool m_rowSpanHasBeenSet = false;
272 bool m_borderStyleHasBeenSet = false;
273 bool m_selectedBorderStyleHasBeenSet = false;
274 bool m_backgroundStyleHasBeenSet = false;
275 bool m_loadingAnimationHasBeenSet = false;
276 bool m_borderRadiusHasBeenSet = false;
277 bool m_paddingHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace QuickSight
282} // namespace Aws
GridLayoutElement & WithRowSpan(int value)
const LoadingAnimation & GetLoadingAnimation() const
void SetBackgroundStyle(BackgroundStyleT &&value)
const GridLayoutElementBackgroundStyle & GetBackgroundStyle() const
const Aws::String & GetBorderRadius() const
void SetBorderRadius(BorderRadiusT &&value)
GridLayoutElement & WithElementId(ElementIdT &&value)
GridLayoutElement & WithBorderRadius(BorderRadiusT &&value)
GridLayoutElement & WithPadding(PaddingT &&value)
GridLayoutElement & WithBorderStyle(BorderStyleT &&value)
AWS_QUICKSIGHT_API GridLayoutElement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API GridLayoutElement()=default
GridLayoutElement & WithLoadingAnimation(LoadingAnimationT &&value)
GridLayoutElement & WithBackgroundStyle(BackgroundStyleT &&value)
GridLayoutElement & WithColumnIndex(int value)
GridLayoutElement & WithElementType(LayoutElementType value)
void SetSelectedBorderStyle(SelectedBorderStyleT &&value)
GridLayoutElement & WithSelectedBorderStyle(SelectedBorderStyleT &&value)
void SetElementType(LayoutElementType value)
GridLayoutElement & WithColumnSpan(int value)
void SetLoadingAnimation(LoadingAnimationT &&value)
const GridLayoutElementBorderStyle & GetBorderStyle() const
AWS_QUICKSIGHT_API GridLayoutElement(Aws::Utils::Json::JsonView jsonValue)
GridLayoutElement & WithRowIndex(int value)
const GridLayoutElementBorderStyle & GetSelectedBorderStyle() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue