AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PivotTotalOptions.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/TableCellStyle.h>
11#include <aws/quicksight/model/TableTotalsPlacement.h>
12#include <aws/quicksight/model/TableTotalsScrollStatus.h>
13#include <aws/quicksight/model/TotalAggregationOption.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
35 public:
36 AWS_QUICKSIGHT_API PivotTotalOptions() = default;
37 AWS_QUICKSIGHT_API PivotTotalOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
46 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
47 inline void SetTotalsVisibility(Visibility value) {
48 m_totalsVisibilityHasBeenSet = true;
49 m_totalsVisibility = value;
50 }
53 return *this;
54 }
56
58
61 inline TableTotalsPlacement GetPlacement() const { return m_placement; }
62 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
64 m_placementHasBeenSet = true;
65 m_placement = value;
66 }
68 SetPlacement(value);
69 return *this;
70 }
72
74
77 inline TableTotalsScrollStatus GetScrollStatus() const { return m_scrollStatus; }
78 inline bool ScrollStatusHasBeenSet() const { return m_scrollStatusHasBeenSet; }
80 m_scrollStatusHasBeenSet = true;
81 m_scrollStatus = value;
82 }
84 SetScrollStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
94 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
95 template <typename CustomLabelT = Aws::String>
96 void SetCustomLabel(CustomLabelT&& value) {
97 m_customLabelHasBeenSet = true;
98 m_customLabel = std::forward<CustomLabelT>(value);
99 }
100 template <typename CustomLabelT = Aws::String>
101 PivotTotalOptions& WithCustomLabel(CustomLabelT&& value) {
102 SetCustomLabel(std::forward<CustomLabelT>(value));
103 return *this;
104 }
106
108
111 inline const TableCellStyle& GetTotalCellStyle() const { return m_totalCellStyle; }
112 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
113 template <typename TotalCellStyleT = TableCellStyle>
114 void SetTotalCellStyle(TotalCellStyleT&& value) {
115 m_totalCellStyleHasBeenSet = true;
116 m_totalCellStyle = std::forward<TotalCellStyleT>(value);
117 }
118 template <typename TotalCellStyleT = TableCellStyle>
119 PivotTotalOptions& WithTotalCellStyle(TotalCellStyleT&& value) {
120 SetTotalCellStyle(std::forward<TotalCellStyleT>(value));
121 return *this;
122 }
124
126
129 inline const TableCellStyle& GetValueCellStyle() const { return m_valueCellStyle; }
130 inline bool ValueCellStyleHasBeenSet() const { return m_valueCellStyleHasBeenSet; }
131 template <typename ValueCellStyleT = TableCellStyle>
132 void SetValueCellStyle(ValueCellStyleT&& value) {
133 m_valueCellStyleHasBeenSet = true;
134 m_valueCellStyle = std::forward<ValueCellStyleT>(value);
135 }
136 template <typename ValueCellStyleT = TableCellStyle>
137 PivotTotalOptions& WithValueCellStyle(ValueCellStyleT&& value) {
138 SetValueCellStyle(std::forward<ValueCellStyleT>(value));
139 return *this;
140 }
142
144
147 inline const TableCellStyle& GetMetricHeaderCellStyle() const { return m_metricHeaderCellStyle; }
148 inline bool MetricHeaderCellStyleHasBeenSet() const { return m_metricHeaderCellStyleHasBeenSet; }
149 template <typename MetricHeaderCellStyleT = TableCellStyle>
150 void SetMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) {
151 m_metricHeaderCellStyleHasBeenSet = true;
152 m_metricHeaderCellStyle = std::forward<MetricHeaderCellStyleT>(value);
153 }
154 template <typename MetricHeaderCellStyleT = TableCellStyle>
155 PivotTotalOptions& WithMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) {
156 SetMetricHeaderCellStyle(std::forward<MetricHeaderCellStyleT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Vector<TotalAggregationOption>& GetTotalAggregationOptions() const { return m_totalAggregationOptions; }
166 inline bool TotalAggregationOptionsHasBeenSet() const { return m_totalAggregationOptionsHasBeenSet; }
167 template <typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
168 void SetTotalAggregationOptions(TotalAggregationOptionsT&& value) {
169 m_totalAggregationOptionsHasBeenSet = true;
170 m_totalAggregationOptions = std::forward<TotalAggregationOptionsT>(value);
171 }
172 template <typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
173 PivotTotalOptions& WithTotalAggregationOptions(TotalAggregationOptionsT&& value) {
174 SetTotalAggregationOptions(std::forward<TotalAggregationOptionsT>(value));
175 return *this;
176 }
177 template <typename TotalAggregationOptionsT = TotalAggregationOption>
178 PivotTotalOptions& AddTotalAggregationOptions(TotalAggregationOptionsT&& value) {
179 m_totalAggregationOptionsHasBeenSet = true;
180 m_totalAggregationOptions.emplace_back(std::forward<TotalAggregationOptionsT>(value));
181 return *this;
182 }
184 private:
185 Visibility m_totalsVisibility{Visibility::NOT_SET};
186
188
190
191 Aws::String m_customLabel;
192
193 TableCellStyle m_totalCellStyle;
194
195 TableCellStyle m_valueCellStyle;
196
197 TableCellStyle m_metricHeaderCellStyle;
198
199 Aws::Vector<TotalAggregationOption> m_totalAggregationOptions;
200 bool m_totalsVisibilityHasBeenSet = false;
201 bool m_placementHasBeenSet = false;
202 bool m_scrollStatusHasBeenSet = false;
203 bool m_customLabelHasBeenSet = false;
204 bool m_totalCellStyleHasBeenSet = false;
205 bool m_valueCellStyleHasBeenSet = false;
206 bool m_metricHeaderCellStyleHasBeenSet = false;
207 bool m_totalAggregationOptionsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace QuickSight
212} // namespace Aws
AWS_QUICKSIGHT_API PivotTotalOptions(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCustomLabel() const
TableTotalsPlacement GetPlacement() const
const TableCellStyle & GetValueCellStyle() const
PivotTotalOptions & WithCustomLabel(CustomLabelT &&value)
void SetScrollStatus(TableTotalsScrollStatus value)
AWS_QUICKSIGHT_API PivotTotalOptions()=default
void SetTotalAggregationOptions(TotalAggregationOptionsT &&value)
const TableCellStyle & GetMetricHeaderCellStyle() const
PivotTotalOptions & WithTotalsVisibility(Visibility value)
PivotTotalOptions & WithMetricHeaderCellStyle(MetricHeaderCellStyleT &&value)
AWS_QUICKSIGHT_API PivotTotalOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
PivotTotalOptions & WithPlacement(TableTotalsPlacement value)
void SetMetricHeaderCellStyle(MetricHeaderCellStyleT &&value)
PivotTotalOptions & WithScrollStatus(TableTotalsScrollStatus value)
const Aws::Vector< TotalAggregationOption > & GetTotalAggregationOptions() const
PivotTotalOptions & WithTotalCellStyle(TotalCellStyleT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTotalCellStyle(TotalCellStyleT &&value)
TableTotalsScrollStatus GetScrollStatus() const
PivotTotalOptions & AddTotalAggregationOptions(TotalAggregationOptionsT &&value)
PivotTotalOptions & WithTotalAggregationOptions(TotalAggregationOptionsT &&value)
void SetValueCellStyle(ValueCellStyleT &&value)
const TableCellStyle & GetTotalCellStyle() const
void SetPlacement(TableTotalsPlacement value)
PivotTotalOptions & WithValueCellStyle(ValueCellStyleT &&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