AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Visibility& GetTotalsVisibility() const{ return m_totalsVisibility; }
51 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
52 inline void SetTotalsVisibility(const Visibility& value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = value; }
53 inline void SetTotalsVisibility(Visibility&& value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = std::move(value); }
54 inline SubtotalOptions& WithTotalsVisibility(const Visibility& value) { SetTotalsVisibility(value); return *this;}
55 inline SubtotalOptions& WithTotalsVisibility(Visibility&& value) { SetTotalsVisibility(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetCustomLabel() const{ return m_customLabel; }
63 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
64 inline void SetCustomLabel(const Aws::String& value) { m_customLabelHasBeenSet = true; m_customLabel = value; }
65 inline void SetCustomLabel(Aws::String&& value) { m_customLabelHasBeenSet = true; m_customLabel = std::move(value); }
66 inline void SetCustomLabel(const char* value) { m_customLabelHasBeenSet = true; m_customLabel.assign(value); }
67 inline SubtotalOptions& WithCustomLabel(const Aws::String& value) { SetCustomLabel(value); return *this;}
68 inline SubtotalOptions& WithCustomLabel(Aws::String&& value) { SetCustomLabel(std::move(value)); return *this;}
69 inline SubtotalOptions& WithCustomLabel(const char* value) { SetCustomLabel(value); return *this;}
71
73
76 inline const PivotTableSubtotalLevel& GetFieldLevel() const{ return m_fieldLevel; }
77 inline bool FieldLevelHasBeenSet() const { return m_fieldLevelHasBeenSet; }
78 inline void SetFieldLevel(const PivotTableSubtotalLevel& value) { m_fieldLevelHasBeenSet = true; m_fieldLevel = value; }
79 inline void SetFieldLevel(PivotTableSubtotalLevel&& value) { m_fieldLevelHasBeenSet = true; m_fieldLevel = std::move(value); }
80 inline SubtotalOptions& WithFieldLevel(const PivotTableSubtotalLevel& value) { SetFieldLevel(value); return *this;}
81 inline SubtotalOptions& WithFieldLevel(PivotTableSubtotalLevel&& value) { SetFieldLevel(std::move(value)); return *this;}
83
85
88 inline const Aws::Vector<PivotTableFieldSubtotalOptions>& GetFieldLevelOptions() const{ return m_fieldLevelOptions; }
89 inline bool FieldLevelOptionsHasBeenSet() const { return m_fieldLevelOptionsHasBeenSet; }
90 inline void SetFieldLevelOptions(const Aws::Vector<PivotTableFieldSubtotalOptions>& value) { m_fieldLevelOptionsHasBeenSet = true; m_fieldLevelOptions = value; }
91 inline void SetFieldLevelOptions(Aws::Vector<PivotTableFieldSubtotalOptions>&& value) { m_fieldLevelOptionsHasBeenSet = true; m_fieldLevelOptions = std::move(value); }
94 inline SubtotalOptions& AddFieldLevelOptions(const PivotTableFieldSubtotalOptions& value) { m_fieldLevelOptionsHasBeenSet = true; m_fieldLevelOptions.push_back(value); return *this; }
95 inline SubtotalOptions& AddFieldLevelOptions(PivotTableFieldSubtotalOptions&& value) { m_fieldLevelOptionsHasBeenSet = true; m_fieldLevelOptions.push_back(std::move(value)); return *this; }
97
99
102 inline const TableCellStyle& GetTotalCellStyle() const{ return m_totalCellStyle; }
103 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
104 inline void SetTotalCellStyle(const TableCellStyle& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = value; }
105 inline void SetTotalCellStyle(TableCellStyle&& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = std::move(value); }
106 inline SubtotalOptions& WithTotalCellStyle(const TableCellStyle& value) { SetTotalCellStyle(value); return *this;}
107 inline SubtotalOptions& WithTotalCellStyle(TableCellStyle&& value) { SetTotalCellStyle(std::move(value)); return *this;}
109
111
114 inline const TableCellStyle& GetValueCellStyle() const{ return m_valueCellStyle; }
115 inline bool ValueCellStyleHasBeenSet() const { return m_valueCellStyleHasBeenSet; }
116 inline void SetValueCellStyle(const TableCellStyle& value) { m_valueCellStyleHasBeenSet = true; m_valueCellStyle = value; }
117 inline void SetValueCellStyle(TableCellStyle&& value) { m_valueCellStyleHasBeenSet = true; m_valueCellStyle = std::move(value); }
118 inline SubtotalOptions& WithValueCellStyle(const TableCellStyle& value) { SetValueCellStyle(value); return *this;}
119 inline SubtotalOptions& WithValueCellStyle(TableCellStyle&& value) { SetValueCellStyle(std::move(value)); return *this;}
121
123
126 inline const TableCellStyle& GetMetricHeaderCellStyle() const{ return m_metricHeaderCellStyle; }
127 inline bool MetricHeaderCellStyleHasBeenSet() const { return m_metricHeaderCellStyleHasBeenSet; }
128 inline void SetMetricHeaderCellStyle(const TableCellStyle& value) { m_metricHeaderCellStyleHasBeenSet = true; m_metricHeaderCellStyle = value; }
129 inline void SetMetricHeaderCellStyle(TableCellStyle&& value) { m_metricHeaderCellStyleHasBeenSet = true; m_metricHeaderCellStyle = std::move(value); }
131 inline SubtotalOptions& WithMetricHeaderCellStyle(TableCellStyle&& value) { SetMetricHeaderCellStyle(std::move(value)); return *this;}
133
135
138 inline const Aws::Vector<TableStyleTarget>& GetStyleTargets() const{ return m_styleTargets; }
139 inline bool StyleTargetsHasBeenSet() const { return m_styleTargetsHasBeenSet; }
140 inline void SetStyleTargets(const Aws::Vector<TableStyleTarget>& value) { m_styleTargetsHasBeenSet = true; m_styleTargets = value; }
141 inline void SetStyleTargets(Aws::Vector<TableStyleTarget>&& value) { m_styleTargetsHasBeenSet = true; m_styleTargets = std::move(value); }
143 inline SubtotalOptions& WithStyleTargets(Aws::Vector<TableStyleTarget>&& value) { SetStyleTargets(std::move(value)); return *this;}
144 inline SubtotalOptions& AddStyleTargets(const TableStyleTarget& value) { m_styleTargetsHasBeenSet = true; m_styleTargets.push_back(value); return *this; }
145 inline SubtotalOptions& AddStyleTargets(TableStyleTarget&& value) { m_styleTargetsHasBeenSet = true; m_styleTargets.push_back(std::move(value)); return *this; }
147 private:
148
149 Visibility m_totalsVisibility;
150 bool m_totalsVisibilityHasBeenSet = false;
151
152 Aws::String m_customLabel;
153 bool m_customLabelHasBeenSet = false;
154
155 PivotTableSubtotalLevel m_fieldLevel;
156 bool m_fieldLevelHasBeenSet = false;
157
159 bool m_fieldLevelOptionsHasBeenSet = false;
160
161 TableCellStyle m_totalCellStyle;
162 bool m_totalCellStyleHasBeenSet = false;
163
164 TableCellStyle m_valueCellStyle;
165 bool m_valueCellStyleHasBeenSet = false;
166
167 TableCellStyle m_metricHeaderCellStyle;
168 bool m_metricHeaderCellStyleHasBeenSet = false;
169
170 Aws::Vector<TableStyleTarget> m_styleTargets;
171 bool m_styleTargetsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace QuickSight
176} // namespace Aws
void SetValueCellStyle(const TableCellStyle &value)
void SetStyleTargets(const Aws::Vector< TableStyleTarget > &value)
SubtotalOptions & WithStyleTargets(Aws::Vector< TableStyleTarget > &&value)
AWS_QUICKSIGHT_API SubtotalOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTotalCellStyle(const TableCellStyle &value)
void SetCustomLabel(const Aws::String &value)
const TableCellStyle & GetValueCellStyle() const
const Aws::Vector< TableStyleTarget > & GetStyleTargets() const
SubtotalOptions & WithMetricHeaderCellStyle(const TableCellStyle &value)
void SetTotalsVisibility(Visibility &&value)
SubtotalOptions & AddStyleTargets(const TableStyleTarget &value)
SubtotalOptions & WithFieldLevel(PivotTableSubtotalLevel &&value)
SubtotalOptions & WithFieldLevel(const PivotTableSubtotalLevel &value)
SubtotalOptions & WithMetricHeaderCellStyle(TableCellStyle &&value)
void SetFieldLevelOptions(const Aws::Vector< PivotTableFieldSubtotalOptions > &value)
SubtotalOptions & WithValueCellStyle(TableCellStyle &&value)
SubtotalOptions & WithTotalsVisibility(const Visibility &value)
const PivotTableSubtotalLevel & GetFieldLevel() const
SubtotalOptions & WithValueCellStyle(const TableCellStyle &value)
const Aws::Vector< PivotTableFieldSubtotalOptions > & GetFieldLevelOptions() const
AWS_QUICKSIGHT_API SubtotalOptions(Aws::Utils::Json::JsonView jsonValue)
SubtotalOptions & WithTotalCellStyle(const TableCellStyle &value)
void SetValueCellStyle(TableCellStyle &&value)
SubtotalOptions & WithFieldLevelOptions(Aws::Vector< PivotTableFieldSubtotalOptions > &&value)
SubtotalOptions & WithTotalCellStyle(TableCellStyle &&value)
SubtotalOptions & WithTotalsVisibility(Visibility &&value)
const TableCellStyle & GetMetricHeaderCellStyle() const
void SetMetricHeaderCellStyle(TableCellStyle &&value)
void SetMetricHeaderCellStyle(const TableCellStyle &value)
SubtotalOptions & WithCustomLabel(const char *value)
SubtotalOptions & WithCustomLabel(Aws::String &&value)
void SetStyleTargets(Aws::Vector< TableStyleTarget > &&value)
const Aws::String & GetCustomLabel() const
SubtotalOptions & WithStyleTargets(const Aws::Vector< TableStyleTarget > &value)
void SetTotalCellStyle(TableCellStyle &&value)
void SetFieldLevel(PivotTableSubtotalLevel &&value)
SubtotalOptions & AddFieldLevelOptions(PivotTableFieldSubtotalOptions &&value)
void SetCustomLabel(Aws::String &&value)
SubtotalOptions & AddStyleTargets(TableStyleTarget &&value)
void SetFieldLevelOptions(Aws::Vector< PivotTableFieldSubtotalOptions > &&value)
void SetTotalsVisibility(const Visibility &value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
SubtotalOptions & WithCustomLabel(const Aws::String &value)
void SetFieldLevel(const PivotTableSubtotalLevel &value)
const TableCellStyle & GetTotalCellStyle() const
const Visibility & GetTotalsVisibility() const
SubtotalOptions & AddFieldLevelOptions(const PivotTableFieldSubtotalOptions &value)
SubtotalOptions & WithFieldLevelOptions(const Aws::Vector< PivotTableFieldSubtotalOptions > &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