AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PivotTableOptions.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/PivotTableMetricPlacement.h>
10#include <aws/quicksight/model/PivotTableRowsLabelOptions.h>
11#include <aws/quicksight/model/PivotTableRowsLayout.h>
12#include <aws/quicksight/model/RowAlternateColorOptions.h>
13#include <aws/quicksight/model/TableCellStyle.h>
14#include <aws/quicksight/model/Visibility.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
27
34 public:
35 AWS_QUICKSIGHT_API PivotTableOptions() = default;
36 AWS_QUICKSIGHT_API PivotTableOptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline PivotTableMetricPlacement GetMetricPlacement() const { return m_metricPlacement; }
45 inline bool MetricPlacementHasBeenSet() const { return m_metricPlacementHasBeenSet; }
47 m_metricPlacementHasBeenSet = true;
48 m_metricPlacement = value;
49 }
51 SetMetricPlacement(value);
52 return *this;
53 }
55
57
60 inline Visibility GetSingleMetricVisibility() const { return m_singleMetricVisibility; }
61 inline bool SingleMetricVisibilityHasBeenSet() const { return m_singleMetricVisibilityHasBeenSet; }
63 m_singleMetricVisibilityHasBeenSet = true;
64 m_singleMetricVisibility = value;
65 }
68 return *this;
69 }
71
73
76 inline Visibility GetColumnNamesVisibility() const { return m_columnNamesVisibility; }
77 inline bool ColumnNamesVisibilityHasBeenSet() const { return m_columnNamesVisibilityHasBeenSet; }
79 m_columnNamesVisibilityHasBeenSet = true;
80 m_columnNamesVisibility = value;
81 }
84 return *this;
85 }
87
89
92 inline Visibility GetToggleButtonsVisibility() const { return m_toggleButtonsVisibility; }
93 inline bool ToggleButtonsVisibilityHasBeenSet() const { return m_toggleButtonsVisibilityHasBeenSet; }
95 m_toggleButtonsVisibilityHasBeenSet = true;
96 m_toggleButtonsVisibility = value;
97 }
100 return *this;
101 }
103
105
108 inline const TableCellStyle& GetColumnHeaderStyle() const { return m_columnHeaderStyle; }
109 inline bool ColumnHeaderStyleHasBeenSet() const { return m_columnHeaderStyleHasBeenSet; }
110 template <typename ColumnHeaderStyleT = TableCellStyle>
111 void SetColumnHeaderStyle(ColumnHeaderStyleT&& value) {
112 m_columnHeaderStyleHasBeenSet = true;
113 m_columnHeaderStyle = std::forward<ColumnHeaderStyleT>(value);
114 }
115 template <typename ColumnHeaderStyleT = TableCellStyle>
116 PivotTableOptions& WithColumnHeaderStyle(ColumnHeaderStyleT&& value) {
117 SetColumnHeaderStyle(std::forward<ColumnHeaderStyleT>(value));
118 return *this;
119 }
121
123
126 inline const TableCellStyle& GetRowHeaderStyle() const { return m_rowHeaderStyle; }
127 inline bool RowHeaderStyleHasBeenSet() const { return m_rowHeaderStyleHasBeenSet; }
128 template <typename RowHeaderStyleT = TableCellStyle>
129 void SetRowHeaderStyle(RowHeaderStyleT&& value) {
130 m_rowHeaderStyleHasBeenSet = true;
131 m_rowHeaderStyle = std::forward<RowHeaderStyleT>(value);
132 }
133 template <typename RowHeaderStyleT = TableCellStyle>
134 PivotTableOptions& WithRowHeaderStyle(RowHeaderStyleT&& value) {
135 SetRowHeaderStyle(std::forward<RowHeaderStyleT>(value));
136 return *this;
137 }
139
141
144 inline const TableCellStyle& GetCellStyle() const { return m_cellStyle; }
145 inline bool CellStyleHasBeenSet() const { return m_cellStyleHasBeenSet; }
146 template <typename CellStyleT = TableCellStyle>
147 void SetCellStyle(CellStyleT&& value) {
148 m_cellStyleHasBeenSet = true;
149 m_cellStyle = std::forward<CellStyleT>(value);
150 }
151 template <typename CellStyleT = TableCellStyle>
152 PivotTableOptions& WithCellStyle(CellStyleT&& value) {
153 SetCellStyle(std::forward<CellStyleT>(value));
154 return *this;
155 }
157
159
162 inline const TableCellStyle& GetRowFieldNamesStyle() const { return m_rowFieldNamesStyle; }
163 inline bool RowFieldNamesStyleHasBeenSet() const { return m_rowFieldNamesStyleHasBeenSet; }
164 template <typename RowFieldNamesStyleT = TableCellStyle>
165 void SetRowFieldNamesStyle(RowFieldNamesStyleT&& value) {
166 m_rowFieldNamesStyleHasBeenSet = true;
167 m_rowFieldNamesStyle = std::forward<RowFieldNamesStyleT>(value);
168 }
169 template <typename RowFieldNamesStyleT = TableCellStyle>
170 PivotTableOptions& WithRowFieldNamesStyle(RowFieldNamesStyleT&& value) {
171 SetRowFieldNamesStyle(std::forward<RowFieldNamesStyleT>(value));
172 return *this;
173 }
175
177
180 inline const RowAlternateColorOptions& GetRowAlternateColorOptions() const { return m_rowAlternateColorOptions; }
181 inline bool RowAlternateColorOptionsHasBeenSet() const { return m_rowAlternateColorOptionsHasBeenSet; }
182 template <typename RowAlternateColorOptionsT = RowAlternateColorOptions>
183 void SetRowAlternateColorOptions(RowAlternateColorOptionsT&& value) {
184 m_rowAlternateColorOptionsHasBeenSet = true;
185 m_rowAlternateColorOptions = std::forward<RowAlternateColorOptionsT>(value);
186 }
187 template <typename RowAlternateColorOptionsT = RowAlternateColorOptions>
188 PivotTableOptions& WithRowAlternateColorOptions(RowAlternateColorOptionsT&& value) {
189 SetRowAlternateColorOptions(std::forward<RowAlternateColorOptionsT>(value));
190 return *this;
191 }
193
195
201 inline Visibility GetCollapsedRowDimensionsVisibility() const { return m_collapsedRowDimensionsVisibility; }
202 inline bool CollapsedRowDimensionsVisibilityHasBeenSet() const { return m_collapsedRowDimensionsVisibilityHasBeenSet; }
204 m_collapsedRowDimensionsVisibilityHasBeenSet = true;
205 m_collapsedRowDimensionsVisibility = value;
206 }
209 return *this;
210 }
212
214
222 inline PivotTableRowsLayout GetRowsLayout() const { return m_rowsLayout; }
223 inline bool RowsLayoutHasBeenSet() const { return m_rowsLayoutHasBeenSet; }
225 m_rowsLayoutHasBeenSet = true;
226 m_rowsLayout = value;
227 }
229 SetRowsLayout(value);
230 return *this;
231 }
233
235
240 inline const PivotTableRowsLabelOptions& GetRowsLabelOptions() const { return m_rowsLabelOptions; }
241 inline bool RowsLabelOptionsHasBeenSet() const { return m_rowsLabelOptionsHasBeenSet; }
242 template <typename RowsLabelOptionsT = PivotTableRowsLabelOptions>
243 void SetRowsLabelOptions(RowsLabelOptionsT&& value) {
244 m_rowsLabelOptionsHasBeenSet = true;
245 m_rowsLabelOptions = std::forward<RowsLabelOptionsT>(value);
246 }
247 template <typename RowsLabelOptionsT = PivotTableRowsLabelOptions>
248 PivotTableOptions& WithRowsLabelOptions(RowsLabelOptionsT&& value) {
249 SetRowsLabelOptions(std::forward<RowsLabelOptionsT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetDefaultCellWidth() const { return m_defaultCellWidth; }
259 inline bool DefaultCellWidthHasBeenSet() const { return m_defaultCellWidthHasBeenSet; }
260 template <typename DefaultCellWidthT = Aws::String>
261 void SetDefaultCellWidth(DefaultCellWidthT&& value) {
262 m_defaultCellWidthHasBeenSet = true;
263 m_defaultCellWidth = std::forward<DefaultCellWidthT>(value);
264 }
265 template <typename DefaultCellWidthT = Aws::String>
266 PivotTableOptions& WithDefaultCellWidth(DefaultCellWidthT&& value) {
267 SetDefaultCellWidth(std::forward<DefaultCellWidthT>(value));
268 return *this;
269 }
271 private:
273
274 Visibility m_singleMetricVisibility{Visibility::NOT_SET};
275
276 Visibility m_columnNamesVisibility{Visibility::NOT_SET};
277
278 Visibility m_toggleButtonsVisibility{Visibility::NOT_SET};
279
280 TableCellStyle m_columnHeaderStyle;
281
282 TableCellStyle m_rowHeaderStyle;
283
284 TableCellStyle m_cellStyle;
285
286 TableCellStyle m_rowFieldNamesStyle;
287
288 RowAlternateColorOptions m_rowAlternateColorOptions;
289
290 Visibility m_collapsedRowDimensionsVisibility{Visibility::NOT_SET};
291
293
294 PivotTableRowsLabelOptions m_rowsLabelOptions;
295
296 Aws::String m_defaultCellWidth;
297 bool m_metricPlacementHasBeenSet = false;
298 bool m_singleMetricVisibilityHasBeenSet = false;
299 bool m_columnNamesVisibilityHasBeenSet = false;
300 bool m_toggleButtonsVisibilityHasBeenSet = false;
301 bool m_columnHeaderStyleHasBeenSet = false;
302 bool m_rowHeaderStyleHasBeenSet = false;
303 bool m_cellStyleHasBeenSet = false;
304 bool m_rowFieldNamesStyleHasBeenSet = false;
305 bool m_rowAlternateColorOptionsHasBeenSet = false;
306 bool m_collapsedRowDimensionsVisibilityHasBeenSet = false;
307 bool m_rowsLayoutHasBeenSet = false;
308 bool m_rowsLabelOptionsHasBeenSet = false;
309 bool m_defaultCellWidthHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace QuickSight
314} // namespace Aws
PivotTableOptions & WithCollapsedRowDimensionsVisibility(Visibility value)
AWS_QUICKSIGHT_API PivotTableOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
PivotTableOptions & WithColumnHeaderStyle(ColumnHeaderStyleT &&value)
const RowAlternateColorOptions & GetRowAlternateColorOptions() const
PivotTableRowsLayout GetRowsLayout() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PivotTableOptions & WithToggleButtonsVisibility(Visibility value)
PivotTableOptions & WithSingleMetricVisibility(Visibility value)
const TableCellStyle & GetRowFieldNamesStyle() const
const TableCellStyle & GetRowHeaderStyle() const
const TableCellStyle & GetCellStyle() const
void SetDefaultCellWidth(DefaultCellWidthT &&value)
void SetColumnHeaderStyle(ColumnHeaderStyleT &&value)
const PivotTableRowsLabelOptions & GetRowsLabelOptions() const
PivotTableOptions & WithRowsLayout(PivotTableRowsLayout value)
void SetRowFieldNamesStyle(RowFieldNamesStyleT &&value)
void SetCollapsedRowDimensionsVisibility(Visibility value)
AWS_QUICKSIGHT_API PivotTableOptions(Aws::Utils::Json::JsonView jsonValue)
PivotTableOptions & WithRowAlternateColorOptions(RowAlternateColorOptionsT &&value)
void SetRowAlternateColorOptions(RowAlternateColorOptionsT &&value)
void SetRowsLabelOptions(RowsLabelOptionsT &&value)
PivotTableMetricPlacement GetMetricPlacement() const
void SetRowHeaderStyle(RowHeaderStyleT &&value)
AWS_QUICKSIGHT_API PivotTableOptions()=default
const Aws::String & GetDefaultCellWidth() const
PivotTableOptions & WithCellStyle(CellStyleT &&value)
PivotTableOptions & WithRowFieldNamesStyle(RowFieldNamesStyleT &&value)
void SetRowsLayout(PivotTableRowsLayout value)
PivotTableOptions & WithMetricPlacement(PivotTableMetricPlacement value)
void SetMetricPlacement(PivotTableMetricPlacement value)
const TableCellStyle & GetColumnHeaderStyle() const
PivotTableOptions & WithRowsLabelOptions(RowsLabelOptionsT &&value)
PivotTableOptions & WithRowHeaderStyle(RowHeaderStyleT &&value)
PivotTableOptions & WithColumnNamesVisibility(Visibility value)
PivotTableOptions & WithDefaultCellWidth(DefaultCellWidthT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue