AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PieChartConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/ChartAxisLabelOptions.h>
10#include <aws/quicksight/model/ContributionAnalysisDefault.h>
11#include <aws/quicksight/model/DataLabelOptions.h>
12#include <aws/quicksight/model/DonutOptions.h>
13#include <aws/quicksight/model/LegendOptions.h>
14#include <aws/quicksight/model/PieChartFieldWells.h>
15#include <aws/quicksight/model/PieChartSortConfiguration.h>
16#include <aws/quicksight/model/SmallMultiplesOptions.h>
17#include <aws/quicksight/model/TooltipOptions.h>
18#include <aws/quicksight/model/VisualInteractionOptions.h>
19#include <aws/quicksight/model/VisualPalette.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace QuickSight {
31namespace Model {
32
39 public:
40 AWS_QUICKSIGHT_API PieChartConfiguration() = default;
43 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const PieChartFieldWells& GetFieldWells() const { return m_fieldWells; }
50 inline bool FieldWellsHasBeenSet() const { return m_fieldWellsHasBeenSet; }
51 template <typename FieldWellsT = PieChartFieldWells>
52 void SetFieldWells(FieldWellsT&& value) {
53 m_fieldWellsHasBeenSet = true;
54 m_fieldWells = std::forward<FieldWellsT>(value);
55 }
56 template <typename FieldWellsT = PieChartFieldWells>
57 PieChartConfiguration& WithFieldWells(FieldWellsT&& value) {
58 SetFieldWells(std::forward<FieldWellsT>(value));
59 return *this;
60 }
62
64
67 inline const PieChartSortConfiguration& GetSortConfiguration() const { return m_sortConfiguration; }
68 inline bool SortConfigurationHasBeenSet() const { return m_sortConfigurationHasBeenSet; }
69 template <typename SortConfigurationT = PieChartSortConfiguration>
70 void SetSortConfiguration(SortConfigurationT&& value) {
71 m_sortConfigurationHasBeenSet = true;
72 m_sortConfiguration = std::forward<SortConfigurationT>(value);
73 }
74 template <typename SortConfigurationT = PieChartSortConfiguration>
75 PieChartConfiguration& WithSortConfiguration(SortConfigurationT&& value) {
76 SetSortConfiguration(std::forward<SortConfigurationT>(value));
77 return *this;
78 }
80
82
86 inline const DonutOptions& GetDonutOptions() const { return m_donutOptions; }
87 inline bool DonutOptionsHasBeenSet() const { return m_donutOptionsHasBeenSet; }
88 template <typename DonutOptionsT = DonutOptions>
89 void SetDonutOptions(DonutOptionsT&& value) {
90 m_donutOptionsHasBeenSet = true;
91 m_donutOptions = std::forward<DonutOptionsT>(value);
92 }
93 template <typename DonutOptionsT = DonutOptions>
94 PieChartConfiguration& WithDonutOptions(DonutOptionsT&& value) {
95 SetDonutOptions(std::forward<DonutOptionsT>(value));
96 return *this;
97 }
99
101
104 inline const SmallMultiplesOptions& GetSmallMultiplesOptions() const { return m_smallMultiplesOptions; }
105 inline bool SmallMultiplesOptionsHasBeenSet() const { return m_smallMultiplesOptionsHasBeenSet; }
106 template <typename SmallMultiplesOptionsT = SmallMultiplesOptions>
107 void SetSmallMultiplesOptions(SmallMultiplesOptionsT&& value) {
108 m_smallMultiplesOptionsHasBeenSet = true;
109 m_smallMultiplesOptions = std::forward<SmallMultiplesOptionsT>(value);
110 }
111 template <typename SmallMultiplesOptionsT = SmallMultiplesOptions>
112 PieChartConfiguration& WithSmallMultiplesOptions(SmallMultiplesOptionsT&& value) {
113 SetSmallMultiplesOptions(std::forward<SmallMultiplesOptionsT>(value));
114 return *this;
115 }
117
119
122 inline const ChartAxisLabelOptions& GetCategoryLabelOptions() const { return m_categoryLabelOptions; }
123 inline bool CategoryLabelOptionsHasBeenSet() const { return m_categoryLabelOptionsHasBeenSet; }
124 template <typename CategoryLabelOptionsT = ChartAxisLabelOptions>
125 void SetCategoryLabelOptions(CategoryLabelOptionsT&& value) {
126 m_categoryLabelOptionsHasBeenSet = true;
127 m_categoryLabelOptions = std::forward<CategoryLabelOptionsT>(value);
128 }
129 template <typename CategoryLabelOptionsT = ChartAxisLabelOptions>
130 PieChartConfiguration& WithCategoryLabelOptions(CategoryLabelOptionsT&& value) {
131 SetCategoryLabelOptions(std::forward<CategoryLabelOptionsT>(value));
132 return *this;
133 }
135
137
140 inline const ChartAxisLabelOptions& GetValueLabelOptions() const { return m_valueLabelOptions; }
141 inline bool ValueLabelOptionsHasBeenSet() const { return m_valueLabelOptionsHasBeenSet; }
142 template <typename ValueLabelOptionsT = ChartAxisLabelOptions>
143 void SetValueLabelOptions(ValueLabelOptionsT&& value) {
144 m_valueLabelOptionsHasBeenSet = true;
145 m_valueLabelOptions = std::forward<ValueLabelOptionsT>(value);
146 }
147 template <typename ValueLabelOptionsT = ChartAxisLabelOptions>
148 PieChartConfiguration& WithValueLabelOptions(ValueLabelOptionsT&& value) {
149 SetValueLabelOptions(std::forward<ValueLabelOptionsT>(value));
150 return *this;
151 }
153
155
158 inline const LegendOptions& GetLegend() const { return m_legend; }
159 inline bool LegendHasBeenSet() const { return m_legendHasBeenSet; }
160 template <typename LegendT = LegendOptions>
161 void SetLegend(LegendT&& value) {
162 m_legendHasBeenSet = true;
163 m_legend = std::forward<LegendT>(value);
164 }
165 template <typename LegendT = LegendOptions>
167 SetLegend(std::forward<LegendT>(value));
168 return *this;
169 }
171
173
176 inline const DataLabelOptions& GetDataLabels() const { return m_dataLabels; }
177 inline bool DataLabelsHasBeenSet() const { return m_dataLabelsHasBeenSet; }
178 template <typename DataLabelsT = DataLabelOptions>
179 void SetDataLabels(DataLabelsT&& value) {
180 m_dataLabelsHasBeenSet = true;
181 m_dataLabels = std::forward<DataLabelsT>(value);
182 }
183 template <typename DataLabelsT = DataLabelOptions>
184 PieChartConfiguration& WithDataLabels(DataLabelsT&& value) {
185 SetDataLabels(std::forward<DataLabelsT>(value));
186 return *this;
187 }
189
191
194 inline const TooltipOptions& GetTooltip() const { return m_tooltip; }
195 inline bool TooltipHasBeenSet() const { return m_tooltipHasBeenSet; }
196 template <typename TooltipT = TooltipOptions>
197 void SetTooltip(TooltipT&& value) {
198 m_tooltipHasBeenSet = true;
199 m_tooltip = std::forward<TooltipT>(value);
200 }
201 template <typename TooltipT = TooltipOptions>
203 SetTooltip(std::forward<TooltipT>(value));
204 return *this;
205 }
207
209
212 inline const VisualPalette& GetVisualPalette() const { return m_visualPalette; }
213 inline bool VisualPaletteHasBeenSet() const { return m_visualPaletteHasBeenSet; }
214 template <typename VisualPaletteT = VisualPalette>
215 void SetVisualPalette(VisualPaletteT&& value) {
216 m_visualPaletteHasBeenSet = true;
217 m_visualPalette = std::forward<VisualPaletteT>(value);
218 }
219 template <typename VisualPaletteT = VisualPalette>
220 PieChartConfiguration& WithVisualPalette(VisualPaletteT&& value) {
221 SetVisualPalette(std::forward<VisualPaletteT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Vector<ContributionAnalysisDefault>& GetContributionAnalysisDefaults() const { return m_contributionAnalysisDefaults; }
231 inline bool ContributionAnalysisDefaultsHasBeenSet() const { return m_contributionAnalysisDefaultsHasBeenSet; }
232 template <typename ContributionAnalysisDefaultsT = Aws::Vector<ContributionAnalysisDefault>>
233 void SetContributionAnalysisDefaults(ContributionAnalysisDefaultsT&& value) {
234 m_contributionAnalysisDefaultsHasBeenSet = true;
235 m_contributionAnalysisDefaults = std::forward<ContributionAnalysisDefaultsT>(value);
236 }
237 template <typename ContributionAnalysisDefaultsT = Aws::Vector<ContributionAnalysisDefault>>
238 PieChartConfiguration& WithContributionAnalysisDefaults(ContributionAnalysisDefaultsT&& value) {
239 SetContributionAnalysisDefaults(std::forward<ContributionAnalysisDefaultsT>(value));
240 return *this;
241 }
242 template <typename ContributionAnalysisDefaultsT = ContributionAnalysisDefault>
243 PieChartConfiguration& AddContributionAnalysisDefaults(ContributionAnalysisDefaultsT&& value) {
244 m_contributionAnalysisDefaultsHasBeenSet = true;
245 m_contributionAnalysisDefaults.emplace_back(std::forward<ContributionAnalysisDefaultsT>(value));
246 return *this;
247 }
249
251
254 inline const VisualInteractionOptions& GetInteractions() const { return m_interactions; }
255 inline bool InteractionsHasBeenSet() const { return m_interactionsHasBeenSet; }
256 template <typename InteractionsT = VisualInteractionOptions>
257 void SetInteractions(InteractionsT&& value) {
258 m_interactionsHasBeenSet = true;
259 m_interactions = std::forward<InteractionsT>(value);
260 }
261 template <typename InteractionsT = VisualInteractionOptions>
262 PieChartConfiguration& WithInteractions(InteractionsT&& value) {
263 SetInteractions(std::forward<InteractionsT>(value));
264 return *this;
265 }
267 private:
268 PieChartFieldWells m_fieldWells;
269
270 PieChartSortConfiguration m_sortConfiguration;
271
272 DonutOptions m_donutOptions;
273
274 SmallMultiplesOptions m_smallMultiplesOptions;
275
276 ChartAxisLabelOptions m_categoryLabelOptions;
277
278 ChartAxisLabelOptions m_valueLabelOptions;
279
280 LegendOptions m_legend;
281
282 DataLabelOptions m_dataLabels;
283
284 TooltipOptions m_tooltip;
285
286 VisualPalette m_visualPalette;
287
288 Aws::Vector<ContributionAnalysisDefault> m_contributionAnalysisDefaults;
289
290 VisualInteractionOptions m_interactions;
291 bool m_fieldWellsHasBeenSet = false;
292 bool m_sortConfigurationHasBeenSet = false;
293 bool m_donutOptionsHasBeenSet = false;
294 bool m_smallMultiplesOptionsHasBeenSet = false;
295 bool m_categoryLabelOptionsHasBeenSet = false;
296 bool m_valueLabelOptionsHasBeenSet = false;
297 bool m_legendHasBeenSet = false;
298 bool m_dataLabelsHasBeenSet = false;
299 bool m_tooltipHasBeenSet = false;
300 bool m_visualPaletteHasBeenSet = false;
301 bool m_contributionAnalysisDefaultsHasBeenSet = false;
302 bool m_interactionsHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace QuickSight
307} // namespace Aws
void SetContributionAnalysisDefaults(ContributionAnalysisDefaultsT &&value)
PieChartConfiguration & WithTooltip(TooltipT &&value)
PieChartConfiguration & WithDataLabels(DataLabelsT &&value)
const PieChartSortConfiguration & GetSortConfiguration() const
PieChartConfiguration & WithValueLabelOptions(ValueLabelOptionsT &&value)
PieChartConfiguration & WithFieldWells(FieldWellsT &&value)
const ChartAxisLabelOptions & GetValueLabelOptions() const
const Aws::Vector< ContributionAnalysisDefault > & GetContributionAnalysisDefaults() const
void SetValueLabelOptions(ValueLabelOptionsT &&value)
const SmallMultiplesOptions & GetSmallMultiplesOptions() const
PieChartConfiguration & WithContributionAnalysisDefaults(ContributionAnalysisDefaultsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PieChartConfiguration & WithVisualPalette(VisualPaletteT &&value)
PieChartConfiguration & WithCategoryLabelOptions(CategoryLabelOptionsT &&value)
PieChartConfiguration & WithLegend(LegendT &&value)
const PieChartFieldWells & GetFieldWells() const
PieChartConfiguration & WithInteractions(InteractionsT &&value)
const ChartAxisLabelOptions & GetCategoryLabelOptions() const
AWS_QUICKSIGHT_API PieChartConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetSortConfiguration(SortConfigurationT &&value)
PieChartConfiguration & AddContributionAnalysisDefaults(ContributionAnalysisDefaultsT &&value)
PieChartConfiguration & WithSortConfiguration(SortConfigurationT &&value)
AWS_QUICKSIGHT_API PieChartConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const VisualInteractionOptions & GetInteractions() const
void SetCategoryLabelOptions(CategoryLabelOptionsT &&value)
void SetSmallMultiplesOptions(SmallMultiplesOptionsT &&value)
AWS_QUICKSIGHT_API PieChartConfiguration()=default
PieChartConfiguration & WithDonutOptions(DonutOptionsT &&value)
PieChartConfiguration & WithSmallMultiplesOptions(SmallMultiplesOptionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue