AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
SubtotalOptions.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/PivotTableFieldSubtotalOptions.h>
11#include <aws/quicksight/model/PivotTableSubtotalLevel.h>
12#include <aws/quicksight/model/TableCellStyle.h>
13#include <aws/quicksight/model/TableStyleTarget.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 SubtotalOptions() = default;
36 AWS_QUICKSIGHT_API SubtotalOptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
45 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
46 inline void SetTotalsVisibility(Visibility value) {
47 m_totalsVisibilityHasBeenSet = true;
48 m_totalsVisibility = value;
49 }
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
61 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
62 template <typename CustomLabelT = Aws::String>
63 void SetCustomLabel(CustomLabelT&& value) {
64 m_customLabelHasBeenSet = true;
65 m_customLabel = std::forward<CustomLabelT>(value);
66 }
67 template <typename CustomLabelT = Aws::String>
68 SubtotalOptions& WithCustomLabel(CustomLabelT&& value) {
69 SetCustomLabel(std::forward<CustomLabelT>(value));
70 return *this;
71 }
73
75
78 inline PivotTableSubtotalLevel GetFieldLevel() const { return m_fieldLevel; }
79 inline bool FieldLevelHasBeenSet() const { return m_fieldLevelHasBeenSet; }
81 m_fieldLevelHasBeenSet = true;
82 m_fieldLevel = value;
83 }
85 SetFieldLevel(value);
86 return *this;
87 }
89
91
94 inline const Aws::Vector<PivotTableFieldSubtotalOptions>& GetFieldLevelOptions() const { return m_fieldLevelOptions; }
95 inline bool FieldLevelOptionsHasBeenSet() const { return m_fieldLevelOptionsHasBeenSet; }
96 template <typename FieldLevelOptionsT = Aws::Vector<PivotTableFieldSubtotalOptions>>
97 void SetFieldLevelOptions(FieldLevelOptionsT&& value) {
98 m_fieldLevelOptionsHasBeenSet = true;
99 m_fieldLevelOptions = std::forward<FieldLevelOptionsT>(value);
100 }
101 template <typename FieldLevelOptionsT = Aws::Vector<PivotTableFieldSubtotalOptions>>
102 SubtotalOptions& WithFieldLevelOptions(FieldLevelOptionsT&& value) {
103 SetFieldLevelOptions(std::forward<FieldLevelOptionsT>(value));
104 return *this;
105 }
106 template <typename FieldLevelOptionsT = PivotTableFieldSubtotalOptions>
107 SubtotalOptions& AddFieldLevelOptions(FieldLevelOptionsT&& value) {
108 m_fieldLevelOptionsHasBeenSet = true;
109 m_fieldLevelOptions.emplace_back(std::forward<FieldLevelOptionsT>(value));
110 return *this;
111 }
113
115
118 inline const TableCellStyle& GetTotalCellStyle() const { return m_totalCellStyle; }
119 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
120 template <typename TotalCellStyleT = TableCellStyle>
121 void SetTotalCellStyle(TotalCellStyleT&& value) {
122 m_totalCellStyleHasBeenSet = true;
123 m_totalCellStyle = std::forward<TotalCellStyleT>(value);
124 }
125 template <typename TotalCellStyleT = TableCellStyle>
126 SubtotalOptions& WithTotalCellStyle(TotalCellStyleT&& value) {
127 SetTotalCellStyle(std::forward<TotalCellStyleT>(value));
128 return *this;
129 }
131
133
136 inline const TableCellStyle& GetValueCellStyle() const { return m_valueCellStyle; }
137 inline bool ValueCellStyleHasBeenSet() const { return m_valueCellStyleHasBeenSet; }
138 template <typename ValueCellStyleT = TableCellStyle>
139 void SetValueCellStyle(ValueCellStyleT&& value) {
140 m_valueCellStyleHasBeenSet = true;
141 m_valueCellStyle = std::forward<ValueCellStyleT>(value);
142 }
143 template <typename ValueCellStyleT = TableCellStyle>
144 SubtotalOptions& WithValueCellStyle(ValueCellStyleT&& value) {
145 SetValueCellStyle(std::forward<ValueCellStyleT>(value));
146 return *this;
147 }
149
151
154 inline const TableCellStyle& GetMetricHeaderCellStyle() const { return m_metricHeaderCellStyle; }
155 inline bool MetricHeaderCellStyleHasBeenSet() const { return m_metricHeaderCellStyleHasBeenSet; }
156 template <typename MetricHeaderCellStyleT = TableCellStyle>
157 void SetMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) {
158 m_metricHeaderCellStyleHasBeenSet = true;
159 m_metricHeaderCellStyle = std::forward<MetricHeaderCellStyleT>(value);
160 }
161 template <typename MetricHeaderCellStyleT = TableCellStyle>
162 SubtotalOptions& WithMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) {
163 SetMetricHeaderCellStyle(std::forward<MetricHeaderCellStyleT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<TableStyleTarget>& GetStyleTargets() const { return m_styleTargets; }
173 inline bool StyleTargetsHasBeenSet() const { return m_styleTargetsHasBeenSet; }
174 template <typename StyleTargetsT = Aws::Vector<TableStyleTarget>>
175 void SetStyleTargets(StyleTargetsT&& value) {
176 m_styleTargetsHasBeenSet = true;
177 m_styleTargets = std::forward<StyleTargetsT>(value);
178 }
179 template <typename StyleTargetsT = Aws::Vector<TableStyleTarget>>
180 SubtotalOptions& WithStyleTargets(StyleTargetsT&& value) {
181 SetStyleTargets(std::forward<StyleTargetsT>(value));
182 return *this;
183 }
184 template <typename StyleTargetsT = TableStyleTarget>
185 SubtotalOptions& AddStyleTargets(StyleTargetsT&& value) {
186 m_styleTargetsHasBeenSet = true;
187 m_styleTargets.emplace_back(std::forward<StyleTargetsT>(value));
188 return *this;
189 }
191 private:
192 Visibility m_totalsVisibility{Visibility::NOT_SET};
193
194 Aws::String m_customLabel;
195
197
199
200 TableCellStyle m_totalCellStyle;
201
202 TableCellStyle m_valueCellStyle;
203
204 TableCellStyle m_metricHeaderCellStyle;
205
206 Aws::Vector<TableStyleTarget> m_styleTargets;
207 bool m_totalsVisibilityHasBeenSet = false;
208 bool m_customLabelHasBeenSet = false;
209 bool m_fieldLevelHasBeenSet = false;
210 bool m_fieldLevelOptionsHasBeenSet = false;
211 bool m_totalCellStyleHasBeenSet = false;
212 bool m_valueCellStyleHasBeenSet = false;
213 bool m_metricHeaderCellStyleHasBeenSet = false;
214 bool m_styleTargetsHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace QuickSight
219} // namespace Aws
AWS_QUICKSIGHT_API SubtotalOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const TableCellStyle & GetValueCellStyle() const
const Aws::Vector< TableStyleTarget > & GetStyleTargets() const
void SetFieldLevelOptions(FieldLevelOptionsT &&value)
SubtotalOptions & AddStyleTargets(StyleTargetsT &&value)
SubtotalOptions & WithMetricHeaderCellStyle(MetricHeaderCellStyleT &&value)
const Aws::Vector< PivotTableFieldSubtotalOptions > & GetFieldLevelOptions() const
SubtotalOptions & WithStyleTargets(StyleTargetsT &&value)
AWS_QUICKSIGHT_API SubtotalOptions(Aws::Utils::Json::JsonView jsonValue)
SubtotalOptions & WithCustomLabel(CustomLabelT &&value)
void SetTotalCellStyle(TotalCellStyleT &&value)
AWS_QUICKSIGHT_API SubtotalOptions()=default
SubtotalOptions & WithValueCellStyle(ValueCellStyleT &&value)
void SetCustomLabel(CustomLabelT &&value)
void SetStyleTargets(StyleTargetsT &&value)
const TableCellStyle & GetMetricHeaderCellStyle() const
const Aws::String & GetCustomLabel() const
void SetMetricHeaderCellStyle(MetricHeaderCellStyleT &&value)
PivotTableSubtotalLevel GetFieldLevel() const
SubtotalOptions & WithTotalCellStyle(TotalCellStyleT &&value)
SubtotalOptions & WithTotalsVisibility(Visibility value)
void SetFieldLevel(PivotTableSubtotalLevel value)
SubtotalOptions & WithFieldLevel(PivotTableSubtotalLevel value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
SubtotalOptions & WithFieldLevelOptions(FieldLevelOptionsT &&value)
const TableCellStyle & GetTotalCellStyle() const
SubtotalOptions & AddFieldLevelOptions(FieldLevelOptionsT &&value)
void SetValueCellStyle(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