AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PivotTotalOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/Visibility.h>
9#include <aws/quicksight/model/TableTotalsPlacement.h>
10#include <aws/quicksight/model/TableTotalsScrollStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/quicksight/model/TableCellStyle.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/quicksight/model/TotalAggregationOption.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QuickSight
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_QUICKSIGHT_API PivotTotalOptions() = default;
42 AWS_QUICKSIGHT_API PivotTotalOptions(Aws::Utils::Json::JsonView jsonValue);
44 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
52 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
53 inline void SetTotalsVisibility(Visibility value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = value; }
56
58
61 inline TableTotalsPlacement GetPlacement() const { return m_placement; }
62 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
63 inline void SetPlacement(TableTotalsPlacement value) { m_placementHasBeenSet = true; m_placement = value; }
64 inline PivotTotalOptions& WithPlacement(TableTotalsPlacement value) { SetPlacement(value); return *this;}
66
68
71 inline TableTotalsScrollStatus GetScrollStatus() const { return m_scrollStatus; }
72 inline bool ScrollStatusHasBeenSet() const { return m_scrollStatusHasBeenSet; }
73 inline void SetScrollStatus(TableTotalsScrollStatus value) { m_scrollStatusHasBeenSet = true; m_scrollStatus = value; }
76
78
81 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
82 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
83 template<typename CustomLabelT = Aws::String>
84 void SetCustomLabel(CustomLabelT&& value) { m_customLabelHasBeenSet = true; m_customLabel = std::forward<CustomLabelT>(value); }
85 template<typename CustomLabelT = Aws::String>
86 PivotTotalOptions& WithCustomLabel(CustomLabelT&& value) { SetCustomLabel(std::forward<CustomLabelT>(value)); return *this;}
88
90
93 inline const TableCellStyle& GetTotalCellStyle() const { return m_totalCellStyle; }
94 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
95 template<typename TotalCellStyleT = TableCellStyle>
96 void SetTotalCellStyle(TotalCellStyleT&& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = std::forward<TotalCellStyleT>(value); }
97 template<typename TotalCellStyleT = TableCellStyle>
98 PivotTotalOptions& WithTotalCellStyle(TotalCellStyleT&& value) { SetTotalCellStyle(std::forward<TotalCellStyleT>(value)); return *this;}
100
102
105 inline const TableCellStyle& GetValueCellStyle() const { return m_valueCellStyle; }
106 inline bool ValueCellStyleHasBeenSet() const { return m_valueCellStyleHasBeenSet; }
107 template<typename ValueCellStyleT = TableCellStyle>
108 void SetValueCellStyle(ValueCellStyleT&& value) { m_valueCellStyleHasBeenSet = true; m_valueCellStyle = std::forward<ValueCellStyleT>(value); }
109 template<typename ValueCellStyleT = TableCellStyle>
110 PivotTotalOptions& WithValueCellStyle(ValueCellStyleT&& value) { SetValueCellStyle(std::forward<ValueCellStyleT>(value)); return *this;}
112
114
117 inline const TableCellStyle& GetMetricHeaderCellStyle() const { return m_metricHeaderCellStyle; }
118 inline bool MetricHeaderCellStyleHasBeenSet() const { return m_metricHeaderCellStyleHasBeenSet; }
119 template<typename MetricHeaderCellStyleT = TableCellStyle>
120 void SetMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) { m_metricHeaderCellStyleHasBeenSet = true; m_metricHeaderCellStyle = std::forward<MetricHeaderCellStyleT>(value); }
121 template<typename MetricHeaderCellStyleT = TableCellStyle>
122 PivotTotalOptions& WithMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) { SetMetricHeaderCellStyle(std::forward<MetricHeaderCellStyleT>(value)); return *this;}
124
126
129 inline const Aws::Vector<TotalAggregationOption>& GetTotalAggregationOptions() const { return m_totalAggregationOptions; }
130 inline bool TotalAggregationOptionsHasBeenSet() const { return m_totalAggregationOptionsHasBeenSet; }
131 template<typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
132 void SetTotalAggregationOptions(TotalAggregationOptionsT&& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions = std::forward<TotalAggregationOptionsT>(value); }
133 template<typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
134 PivotTotalOptions& WithTotalAggregationOptions(TotalAggregationOptionsT&& value) { SetTotalAggregationOptions(std::forward<TotalAggregationOptionsT>(value)); return *this;}
135 template<typename TotalAggregationOptionsT = TotalAggregationOption>
136 PivotTotalOptions& AddTotalAggregationOptions(TotalAggregationOptionsT&& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions.emplace_back(std::forward<TotalAggregationOptionsT>(value)); return *this; }
138 private:
139
140 Visibility m_totalsVisibility{Visibility::NOT_SET};
141 bool m_totalsVisibilityHasBeenSet = false;
142
144 bool m_placementHasBeenSet = false;
145
147 bool m_scrollStatusHasBeenSet = false;
148
149 Aws::String m_customLabel;
150 bool m_customLabelHasBeenSet = false;
151
152 TableCellStyle m_totalCellStyle;
153 bool m_totalCellStyleHasBeenSet = false;
154
155 TableCellStyle m_valueCellStyle;
156 bool m_valueCellStyleHasBeenSet = false;
157
158 TableCellStyle m_metricHeaderCellStyle;
159 bool m_metricHeaderCellStyleHasBeenSet = false;
160
161 Aws::Vector<TotalAggregationOption> m_totalAggregationOptions;
162 bool m_totalAggregationOptionsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace QuickSight
167} // 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