AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubtotalOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/Visibility.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/quicksight/model/PivotTableSubtotalLevel.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/quicksight/model/TableCellStyle.h>
13#include <aws/quicksight/model/PivotTableFieldSubtotalOptions.h>
14#include <aws/quicksight/model/TableStyleTarget.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
38 {
39 public:
40 AWS_QUICKSIGHT_API SubtotalOptions() = default;
41 AWS_QUICKSIGHT_API SubtotalOptions(Aws::Utils::Json::JsonView jsonValue);
43 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
51 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
52 inline void SetTotalsVisibility(Visibility value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = value; }
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) { m_customLabelHasBeenSet = true; m_customLabel = std::forward<CustomLabelT>(value); }
64 template<typename CustomLabelT = Aws::String>
65 SubtotalOptions& WithCustomLabel(CustomLabelT&& value) { SetCustomLabel(std::forward<CustomLabelT>(value)); return *this;}
67
69
72 inline PivotTableSubtotalLevel GetFieldLevel() const { return m_fieldLevel; }
73 inline bool FieldLevelHasBeenSet() const { return m_fieldLevelHasBeenSet; }
74 inline void SetFieldLevel(PivotTableSubtotalLevel value) { m_fieldLevelHasBeenSet = true; m_fieldLevel = value; }
77
79
82 inline const Aws::Vector<PivotTableFieldSubtotalOptions>& GetFieldLevelOptions() const { return m_fieldLevelOptions; }
83 inline bool FieldLevelOptionsHasBeenSet() const { return m_fieldLevelOptionsHasBeenSet; }
84 template<typename FieldLevelOptionsT = Aws::Vector<PivotTableFieldSubtotalOptions>>
85 void SetFieldLevelOptions(FieldLevelOptionsT&& value) { m_fieldLevelOptionsHasBeenSet = true; m_fieldLevelOptions = std::forward<FieldLevelOptionsT>(value); }
86 template<typename FieldLevelOptionsT = Aws::Vector<PivotTableFieldSubtotalOptions>>
87 SubtotalOptions& WithFieldLevelOptions(FieldLevelOptionsT&& value) { SetFieldLevelOptions(std::forward<FieldLevelOptionsT>(value)); return *this;}
88 template<typename FieldLevelOptionsT = PivotTableFieldSubtotalOptions>
89 SubtotalOptions& AddFieldLevelOptions(FieldLevelOptionsT&& value) { m_fieldLevelOptionsHasBeenSet = true; m_fieldLevelOptions.emplace_back(std::forward<FieldLevelOptionsT>(value)); return *this; }
91
93
96 inline const TableCellStyle& GetTotalCellStyle() const { return m_totalCellStyle; }
97 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
98 template<typename TotalCellStyleT = TableCellStyle>
99 void SetTotalCellStyle(TotalCellStyleT&& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = std::forward<TotalCellStyleT>(value); }
100 template<typename TotalCellStyleT = TableCellStyle>
101 SubtotalOptions& WithTotalCellStyle(TotalCellStyleT&& value) { SetTotalCellStyle(std::forward<TotalCellStyleT>(value)); return *this;}
103
105
108 inline const TableCellStyle& GetValueCellStyle() const { return m_valueCellStyle; }
109 inline bool ValueCellStyleHasBeenSet() const { return m_valueCellStyleHasBeenSet; }
110 template<typename ValueCellStyleT = TableCellStyle>
111 void SetValueCellStyle(ValueCellStyleT&& value) { m_valueCellStyleHasBeenSet = true; m_valueCellStyle = std::forward<ValueCellStyleT>(value); }
112 template<typename ValueCellStyleT = TableCellStyle>
113 SubtotalOptions& WithValueCellStyle(ValueCellStyleT&& value) { SetValueCellStyle(std::forward<ValueCellStyleT>(value)); return *this;}
115
117
120 inline const TableCellStyle& GetMetricHeaderCellStyle() const { return m_metricHeaderCellStyle; }
121 inline bool MetricHeaderCellStyleHasBeenSet() const { return m_metricHeaderCellStyleHasBeenSet; }
122 template<typename MetricHeaderCellStyleT = TableCellStyle>
123 void SetMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) { m_metricHeaderCellStyleHasBeenSet = true; m_metricHeaderCellStyle = std::forward<MetricHeaderCellStyleT>(value); }
124 template<typename MetricHeaderCellStyleT = TableCellStyle>
125 SubtotalOptions& WithMetricHeaderCellStyle(MetricHeaderCellStyleT&& value) { SetMetricHeaderCellStyle(std::forward<MetricHeaderCellStyleT>(value)); return *this;}
127
129
132 inline const Aws::Vector<TableStyleTarget>& GetStyleTargets() const { return m_styleTargets; }
133 inline bool StyleTargetsHasBeenSet() const { return m_styleTargetsHasBeenSet; }
134 template<typename StyleTargetsT = Aws::Vector<TableStyleTarget>>
135 void SetStyleTargets(StyleTargetsT&& value) { m_styleTargetsHasBeenSet = true; m_styleTargets = std::forward<StyleTargetsT>(value); }
136 template<typename StyleTargetsT = Aws::Vector<TableStyleTarget>>
137 SubtotalOptions& WithStyleTargets(StyleTargetsT&& value) { SetStyleTargets(std::forward<StyleTargetsT>(value)); return *this;}
138 template<typename StyleTargetsT = TableStyleTarget>
139 SubtotalOptions& AddStyleTargets(StyleTargetsT&& value) { m_styleTargetsHasBeenSet = true; m_styleTargets.emplace_back(std::forward<StyleTargetsT>(value)); return *this; }
141 private:
142
143 Visibility m_totalsVisibility{Visibility::NOT_SET};
144 bool m_totalsVisibilityHasBeenSet = false;
145
146 Aws::String m_customLabel;
147 bool m_customLabelHasBeenSet = false;
148
150 bool m_fieldLevelHasBeenSet = false;
151
153 bool m_fieldLevelOptionsHasBeenSet = false;
154
155 TableCellStyle m_totalCellStyle;
156 bool m_totalCellStyleHasBeenSet = false;
157
158 TableCellStyle m_valueCellStyle;
159 bool m_valueCellStyleHasBeenSet = false;
160
161 TableCellStyle m_metricHeaderCellStyle;
162 bool m_metricHeaderCellStyleHasBeenSet = false;
163
164 Aws::Vector<TableStyleTarget> m_styleTargets;
165 bool m_styleTargetsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace QuickSight
170} // 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