AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BarChartConfiguration.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/BarChartFieldWells.h>
9#include <aws/quicksight/model/BarChartSortConfiguration.h>
10#include <aws/quicksight/model/BarChartOrientation.h>
11#include <aws/quicksight/model/BarsArrangement.h>
12#include <aws/quicksight/model/VisualPalette.h>
13#include <aws/quicksight/model/SmallMultiplesOptions.h>
14#include <aws/quicksight/model/AxisDisplayOptions.h>
15#include <aws/quicksight/model/ChartAxisLabelOptions.h>
16#include <aws/quicksight/model/LegendOptions.h>
17#include <aws/quicksight/model/DataLabelOptions.h>
18#include <aws/quicksight/model/TooltipOptions.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20#include <aws/quicksight/model/VisualInteractionOptions.h>
21#include <aws/quicksight/model/ReferenceLine.h>
22#include <aws/quicksight/model/ContributionAnalysisDefault.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace QuickSight
36{
37namespace Model
38{
39
47 {
48 public:
49 AWS_QUICKSIGHT_API BarChartConfiguration() = default;
52 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const BarChartFieldWells& GetFieldWells() const { return m_fieldWells; }
60 inline bool FieldWellsHasBeenSet() const { return m_fieldWellsHasBeenSet; }
61 template<typename FieldWellsT = BarChartFieldWells>
62 void SetFieldWells(FieldWellsT&& value) { m_fieldWellsHasBeenSet = true; m_fieldWells = std::forward<FieldWellsT>(value); }
63 template<typename FieldWellsT = BarChartFieldWells>
64 BarChartConfiguration& WithFieldWells(FieldWellsT&& value) { SetFieldWells(std::forward<FieldWellsT>(value)); return *this;}
66
68
71 inline const BarChartSortConfiguration& GetSortConfiguration() const { return m_sortConfiguration; }
72 inline bool SortConfigurationHasBeenSet() const { return m_sortConfigurationHasBeenSet; }
73 template<typename SortConfigurationT = BarChartSortConfiguration>
74 void SetSortConfiguration(SortConfigurationT&& value) { m_sortConfigurationHasBeenSet = true; m_sortConfiguration = std::forward<SortConfigurationT>(value); }
75 template<typename SortConfigurationT = BarChartSortConfiguration>
76 BarChartConfiguration& WithSortConfiguration(SortConfigurationT&& value) { SetSortConfiguration(std::forward<SortConfigurationT>(value)); return *this;}
78
80
89 inline BarChartOrientation GetOrientation() const { return m_orientation; }
90 inline bool OrientationHasBeenSet() const { return m_orientationHasBeenSet; }
91 inline void SetOrientation(BarChartOrientation value) { m_orientationHasBeenSet = true; m_orientation = value; }
94
96
100 inline BarsArrangement GetBarsArrangement() const { return m_barsArrangement; }
101 inline bool BarsArrangementHasBeenSet() const { return m_barsArrangementHasBeenSet; }
102 inline void SetBarsArrangement(BarsArrangement value) { m_barsArrangementHasBeenSet = true; m_barsArrangement = value; }
105
107
110 inline const VisualPalette& GetVisualPalette() const { return m_visualPalette; }
111 inline bool VisualPaletteHasBeenSet() const { return m_visualPaletteHasBeenSet; }
112 template<typename VisualPaletteT = VisualPalette>
113 void SetVisualPalette(VisualPaletteT&& value) { m_visualPaletteHasBeenSet = true; m_visualPalette = std::forward<VisualPaletteT>(value); }
114 template<typename VisualPaletteT = VisualPalette>
115 BarChartConfiguration& WithVisualPalette(VisualPaletteT&& value) { SetVisualPalette(std::forward<VisualPaletteT>(value)); return *this;}
117
119
122 inline const SmallMultiplesOptions& GetSmallMultiplesOptions() const { return m_smallMultiplesOptions; }
123 inline bool SmallMultiplesOptionsHasBeenSet() const { return m_smallMultiplesOptionsHasBeenSet; }
124 template<typename SmallMultiplesOptionsT = SmallMultiplesOptions>
125 void SetSmallMultiplesOptions(SmallMultiplesOptionsT&& value) { m_smallMultiplesOptionsHasBeenSet = true; m_smallMultiplesOptions = std::forward<SmallMultiplesOptionsT>(value); }
126 template<typename SmallMultiplesOptionsT = SmallMultiplesOptions>
127 BarChartConfiguration& WithSmallMultiplesOptions(SmallMultiplesOptionsT&& value) { SetSmallMultiplesOptions(std::forward<SmallMultiplesOptionsT>(value)); return *this;}
129
131
135 inline const AxisDisplayOptions& GetCategoryAxis() const { return m_categoryAxis; }
136 inline bool CategoryAxisHasBeenSet() const { return m_categoryAxisHasBeenSet; }
137 template<typename CategoryAxisT = AxisDisplayOptions>
138 void SetCategoryAxis(CategoryAxisT&& value) { m_categoryAxisHasBeenSet = true; m_categoryAxis = std::forward<CategoryAxisT>(value); }
139 template<typename CategoryAxisT = AxisDisplayOptions>
140 BarChartConfiguration& WithCategoryAxis(CategoryAxisT&& value) { SetCategoryAxis(std::forward<CategoryAxisT>(value)); return *this;}
142
144
148 inline const ChartAxisLabelOptions& GetCategoryLabelOptions() const { return m_categoryLabelOptions; }
149 inline bool CategoryLabelOptionsHasBeenSet() const { return m_categoryLabelOptionsHasBeenSet; }
150 template<typename CategoryLabelOptionsT = ChartAxisLabelOptions>
151 void SetCategoryLabelOptions(CategoryLabelOptionsT&& value) { m_categoryLabelOptionsHasBeenSet = true; m_categoryLabelOptions = std::forward<CategoryLabelOptionsT>(value); }
152 template<typename CategoryLabelOptionsT = ChartAxisLabelOptions>
153 BarChartConfiguration& WithCategoryLabelOptions(CategoryLabelOptionsT&& value) { SetCategoryLabelOptions(std::forward<CategoryLabelOptionsT>(value)); return *this;}
155
157
161 inline const AxisDisplayOptions& GetValueAxis() const { return m_valueAxis; }
162 inline bool ValueAxisHasBeenSet() const { return m_valueAxisHasBeenSet; }
163 template<typename ValueAxisT = AxisDisplayOptions>
164 void SetValueAxis(ValueAxisT&& value) { m_valueAxisHasBeenSet = true; m_valueAxis = std::forward<ValueAxisT>(value); }
165 template<typename ValueAxisT = AxisDisplayOptions>
166 BarChartConfiguration& WithValueAxis(ValueAxisT&& value) { SetValueAxis(std::forward<ValueAxisT>(value)); return *this;}
168
170
174 inline const ChartAxisLabelOptions& GetValueLabelOptions() const { return m_valueLabelOptions; }
175 inline bool ValueLabelOptionsHasBeenSet() const { return m_valueLabelOptionsHasBeenSet; }
176 template<typename ValueLabelOptionsT = ChartAxisLabelOptions>
177 void SetValueLabelOptions(ValueLabelOptionsT&& value) { m_valueLabelOptionsHasBeenSet = true; m_valueLabelOptions = std::forward<ValueLabelOptionsT>(value); }
178 template<typename ValueLabelOptionsT = ChartAxisLabelOptions>
179 BarChartConfiguration& WithValueLabelOptions(ValueLabelOptionsT&& value) { SetValueLabelOptions(std::forward<ValueLabelOptionsT>(value)); return *this;}
181
183
187 inline const ChartAxisLabelOptions& GetColorLabelOptions() const { return m_colorLabelOptions; }
188 inline bool ColorLabelOptionsHasBeenSet() const { return m_colorLabelOptionsHasBeenSet; }
189 template<typename ColorLabelOptionsT = ChartAxisLabelOptions>
190 void SetColorLabelOptions(ColorLabelOptionsT&& value) { m_colorLabelOptionsHasBeenSet = true; m_colorLabelOptions = std::forward<ColorLabelOptionsT>(value); }
191 template<typename ColorLabelOptionsT = ChartAxisLabelOptions>
192 BarChartConfiguration& WithColorLabelOptions(ColorLabelOptionsT&& value) { SetColorLabelOptions(std::forward<ColorLabelOptionsT>(value)); return *this;}
194
196
199 inline const LegendOptions& GetLegend() const { return m_legend; }
200 inline bool LegendHasBeenSet() const { return m_legendHasBeenSet; }
201 template<typename LegendT = LegendOptions>
202 void SetLegend(LegendT&& value) { m_legendHasBeenSet = true; m_legend = std::forward<LegendT>(value); }
203 template<typename LegendT = LegendOptions>
204 BarChartConfiguration& WithLegend(LegendT&& value) { SetLegend(std::forward<LegendT>(value)); return *this;}
206
208
211 inline const DataLabelOptions& GetDataLabels() const { return m_dataLabels; }
212 inline bool DataLabelsHasBeenSet() const { return m_dataLabelsHasBeenSet; }
213 template<typename DataLabelsT = DataLabelOptions>
214 void SetDataLabels(DataLabelsT&& value) { m_dataLabelsHasBeenSet = true; m_dataLabels = std::forward<DataLabelsT>(value); }
215 template<typename DataLabelsT = DataLabelOptions>
216 BarChartConfiguration& WithDataLabels(DataLabelsT&& value) { SetDataLabels(std::forward<DataLabelsT>(value)); return *this;}
218
220
223 inline const TooltipOptions& GetTooltip() const { return m_tooltip; }
224 inline bool TooltipHasBeenSet() const { return m_tooltipHasBeenSet; }
225 template<typename TooltipT = TooltipOptions>
226 void SetTooltip(TooltipT&& value) { m_tooltipHasBeenSet = true; m_tooltip = std::forward<TooltipT>(value); }
227 template<typename TooltipT = TooltipOptions>
228 BarChartConfiguration& WithTooltip(TooltipT&& value) { SetTooltip(std::forward<TooltipT>(value)); return *this;}
230
232
235 inline const Aws::Vector<ReferenceLine>& GetReferenceLines() const { return m_referenceLines; }
236 inline bool ReferenceLinesHasBeenSet() const { return m_referenceLinesHasBeenSet; }
237 template<typename ReferenceLinesT = Aws::Vector<ReferenceLine>>
238 void SetReferenceLines(ReferenceLinesT&& value) { m_referenceLinesHasBeenSet = true; m_referenceLines = std::forward<ReferenceLinesT>(value); }
239 template<typename ReferenceLinesT = Aws::Vector<ReferenceLine>>
240 BarChartConfiguration& WithReferenceLines(ReferenceLinesT&& value) { SetReferenceLines(std::forward<ReferenceLinesT>(value)); return *this;}
241 template<typename ReferenceLinesT = ReferenceLine>
242 BarChartConfiguration& AddReferenceLines(ReferenceLinesT&& value) { m_referenceLinesHasBeenSet = true; m_referenceLines.emplace_back(std::forward<ReferenceLinesT>(value)); return *this; }
244
246
249 inline const Aws::Vector<ContributionAnalysisDefault>& GetContributionAnalysisDefaults() const { return m_contributionAnalysisDefaults; }
250 inline bool ContributionAnalysisDefaultsHasBeenSet() const { return m_contributionAnalysisDefaultsHasBeenSet; }
251 template<typename ContributionAnalysisDefaultsT = Aws::Vector<ContributionAnalysisDefault>>
252 void SetContributionAnalysisDefaults(ContributionAnalysisDefaultsT&& value) { m_contributionAnalysisDefaultsHasBeenSet = true; m_contributionAnalysisDefaults = std::forward<ContributionAnalysisDefaultsT>(value); }
253 template<typename ContributionAnalysisDefaultsT = Aws::Vector<ContributionAnalysisDefault>>
254 BarChartConfiguration& WithContributionAnalysisDefaults(ContributionAnalysisDefaultsT&& value) { SetContributionAnalysisDefaults(std::forward<ContributionAnalysisDefaultsT>(value)); return *this;}
255 template<typename ContributionAnalysisDefaultsT = ContributionAnalysisDefault>
256 BarChartConfiguration& AddContributionAnalysisDefaults(ContributionAnalysisDefaultsT&& value) { m_contributionAnalysisDefaultsHasBeenSet = true; m_contributionAnalysisDefaults.emplace_back(std::forward<ContributionAnalysisDefaultsT>(value)); return *this; }
258
260
263 inline const VisualInteractionOptions& GetInteractions() const { return m_interactions; }
264 inline bool InteractionsHasBeenSet() const { return m_interactionsHasBeenSet; }
265 template<typename InteractionsT = VisualInteractionOptions>
266 void SetInteractions(InteractionsT&& value) { m_interactionsHasBeenSet = true; m_interactions = std::forward<InteractionsT>(value); }
267 template<typename InteractionsT = VisualInteractionOptions>
268 BarChartConfiguration& WithInteractions(InteractionsT&& value) { SetInteractions(std::forward<InteractionsT>(value)); return *this;}
270 private:
271
272 BarChartFieldWells m_fieldWells;
273 bool m_fieldWellsHasBeenSet = false;
274
275 BarChartSortConfiguration m_sortConfiguration;
276 bool m_sortConfigurationHasBeenSet = false;
277
279 bool m_orientationHasBeenSet = false;
280
281 BarsArrangement m_barsArrangement{BarsArrangement::NOT_SET};
282 bool m_barsArrangementHasBeenSet = false;
283
284 VisualPalette m_visualPalette;
285 bool m_visualPaletteHasBeenSet = false;
286
287 SmallMultiplesOptions m_smallMultiplesOptions;
288 bool m_smallMultiplesOptionsHasBeenSet = false;
289
290 AxisDisplayOptions m_categoryAxis;
291 bool m_categoryAxisHasBeenSet = false;
292
293 ChartAxisLabelOptions m_categoryLabelOptions;
294 bool m_categoryLabelOptionsHasBeenSet = false;
295
296 AxisDisplayOptions m_valueAxis;
297 bool m_valueAxisHasBeenSet = false;
298
299 ChartAxisLabelOptions m_valueLabelOptions;
300 bool m_valueLabelOptionsHasBeenSet = false;
301
302 ChartAxisLabelOptions m_colorLabelOptions;
303 bool m_colorLabelOptionsHasBeenSet = false;
304
305 LegendOptions m_legend;
306 bool m_legendHasBeenSet = false;
307
308 DataLabelOptions m_dataLabels;
309 bool m_dataLabelsHasBeenSet = false;
310
311 TooltipOptions m_tooltip;
312 bool m_tooltipHasBeenSet = false;
313
314 Aws::Vector<ReferenceLine> m_referenceLines;
315 bool m_referenceLinesHasBeenSet = false;
316
317 Aws::Vector<ContributionAnalysisDefault> m_contributionAnalysisDefaults;
318 bool m_contributionAnalysisDefaultsHasBeenSet = false;
319
320 VisualInteractionOptions m_interactions;
321 bool m_interactionsHasBeenSet = false;
322 };
323
324} // namespace Model
325} // namespace QuickSight
326} // namespace Aws
AWS_QUICKSIGHT_API BarChartConfiguration()=default
void SetCategoryLabelOptions(CategoryLabelOptionsT &&value)
const BarChartFieldWells & GetFieldWells() const
AWS_QUICKSIGHT_API BarChartConfiguration(Aws::Utils::Json::JsonView jsonValue)
BarChartConfiguration & WithOrientation(BarChartOrientation value)
void SetSmallMultiplesOptions(SmallMultiplesOptionsT &&value)
BarChartConfiguration & WithCategoryAxis(CategoryAxisT &&value)
void SetContributionAnalysisDefaults(ContributionAnalysisDefaultsT &&value)
BarChartConfiguration & WithValueAxis(ValueAxisT &&value)
const Aws::Vector< ReferenceLine > & GetReferenceLines() const
AWS_QUICKSIGHT_API BarChartConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
BarChartConfiguration & WithVisualPalette(VisualPaletteT &&value)
BarChartConfiguration & AddContributionAnalysisDefaults(ContributionAnalysisDefaultsT &&value)
const AxisDisplayOptions & GetValueAxis() const
BarChartConfiguration & WithColorLabelOptions(ColorLabelOptionsT &&value)
BarChartConfiguration & WithSmallMultiplesOptions(SmallMultiplesOptionsT &&value)
const ChartAxisLabelOptions & GetColorLabelOptions() const
BarChartConfiguration & WithFieldWells(FieldWellsT &&value)
void SetValueLabelOptions(ValueLabelOptionsT &&value)
BarChartConfiguration & WithLegend(LegendT &&value)
const AxisDisplayOptions & GetCategoryAxis() const
void SetSortConfiguration(SortConfigurationT &&value)
BarChartConfiguration & AddReferenceLines(ReferenceLinesT &&value)
BarChartConfiguration & WithSortConfiguration(SortConfigurationT &&value)
BarChartConfiguration & WithReferenceLines(ReferenceLinesT &&value)
const VisualInteractionOptions & GetInteractions() const
BarChartConfiguration & WithInteractions(InteractionsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const ChartAxisLabelOptions & GetCategoryLabelOptions() const
const SmallMultiplesOptions & GetSmallMultiplesOptions() const
BarChartConfiguration & WithTooltip(TooltipT &&value)
void SetColorLabelOptions(ColorLabelOptionsT &&value)
const ChartAxisLabelOptions & GetValueLabelOptions() const
const Aws::Vector< ContributionAnalysisDefault > & GetContributionAnalysisDefaults() const
BarChartConfiguration & WithDataLabels(DataLabelsT &&value)
BarChartConfiguration & WithBarsArrangement(BarsArrangement value)
BarChartConfiguration & WithContributionAnalysisDefaults(ContributionAnalysisDefaultsT &&value)
BarChartConfiguration & WithValueLabelOptions(ValueLabelOptionsT &&value)
const BarChartSortConfiguration & GetSortConfiguration() const
BarChartConfiguration & WithCategoryLabelOptions(CategoryLabelOptionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue