AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Visibility& GetTotalsVisibility() const{ return m_totalsVisibility; }
52 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
53 inline void SetTotalsVisibility(const Visibility& value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = value; }
54 inline void SetTotalsVisibility(Visibility&& value) { m_totalsVisibilityHasBeenSet = true; m_totalsVisibility = std::move(value); }
55 inline PivotTotalOptions& WithTotalsVisibility(const Visibility& value) { SetTotalsVisibility(value); return *this;}
56 inline PivotTotalOptions& WithTotalsVisibility(Visibility&& value) { SetTotalsVisibility(std::move(value)); return *this;}
58
60
63 inline const TableTotalsPlacement& GetPlacement() const{ return m_placement; }
64 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
65 inline void SetPlacement(const TableTotalsPlacement& value) { m_placementHasBeenSet = true; m_placement = value; }
66 inline void SetPlacement(TableTotalsPlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
67 inline PivotTotalOptions& WithPlacement(const TableTotalsPlacement& value) { SetPlacement(value); return *this;}
68 inline PivotTotalOptions& WithPlacement(TableTotalsPlacement&& value) { SetPlacement(std::move(value)); return *this;}
70
72
75 inline const TableTotalsScrollStatus& GetScrollStatus() const{ return m_scrollStatus; }
76 inline bool ScrollStatusHasBeenSet() const { return m_scrollStatusHasBeenSet; }
77 inline void SetScrollStatus(const TableTotalsScrollStatus& value) { m_scrollStatusHasBeenSet = true; m_scrollStatus = value; }
78 inline void SetScrollStatus(TableTotalsScrollStatus&& value) { m_scrollStatusHasBeenSet = true; m_scrollStatus = std::move(value); }
79 inline PivotTotalOptions& WithScrollStatus(const TableTotalsScrollStatus& value) { SetScrollStatus(value); return *this;}
80 inline PivotTotalOptions& WithScrollStatus(TableTotalsScrollStatus&& value) { SetScrollStatus(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetCustomLabel() const{ return m_customLabel; }
88 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
89 inline void SetCustomLabel(const Aws::String& value) { m_customLabelHasBeenSet = true; m_customLabel = value; }
90 inline void SetCustomLabel(Aws::String&& value) { m_customLabelHasBeenSet = true; m_customLabel = std::move(value); }
91 inline void SetCustomLabel(const char* value) { m_customLabelHasBeenSet = true; m_customLabel.assign(value); }
92 inline PivotTotalOptions& WithCustomLabel(const Aws::String& value) { SetCustomLabel(value); return *this;}
93 inline PivotTotalOptions& WithCustomLabel(Aws::String&& value) { SetCustomLabel(std::move(value)); return *this;}
94 inline PivotTotalOptions& WithCustomLabel(const char* value) { SetCustomLabel(value); return *this;}
96
98
101 inline const TableCellStyle& GetTotalCellStyle() const{ return m_totalCellStyle; }
102 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
103 inline void SetTotalCellStyle(const TableCellStyle& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = value; }
104 inline void SetTotalCellStyle(TableCellStyle&& value) { m_totalCellStyleHasBeenSet = true; m_totalCellStyle = std::move(value); }
105 inline PivotTotalOptions& WithTotalCellStyle(const TableCellStyle& value) { SetTotalCellStyle(value); return *this;}
106 inline PivotTotalOptions& WithTotalCellStyle(TableCellStyle&& value) { SetTotalCellStyle(std::move(value)); return *this;}
108
110
113 inline const TableCellStyle& GetValueCellStyle() const{ return m_valueCellStyle; }
114 inline bool ValueCellStyleHasBeenSet() const { return m_valueCellStyleHasBeenSet; }
115 inline void SetValueCellStyle(const TableCellStyle& value) { m_valueCellStyleHasBeenSet = true; m_valueCellStyle = value; }
116 inline void SetValueCellStyle(TableCellStyle&& value) { m_valueCellStyleHasBeenSet = true; m_valueCellStyle = std::move(value); }
117 inline PivotTotalOptions& WithValueCellStyle(const TableCellStyle& value) { SetValueCellStyle(value); return *this;}
118 inline PivotTotalOptions& WithValueCellStyle(TableCellStyle&& value) { SetValueCellStyle(std::move(value)); return *this;}
120
122
125 inline const TableCellStyle& GetMetricHeaderCellStyle() const{ return m_metricHeaderCellStyle; }
126 inline bool MetricHeaderCellStyleHasBeenSet() const { return m_metricHeaderCellStyleHasBeenSet; }
127 inline void SetMetricHeaderCellStyle(const TableCellStyle& value) { m_metricHeaderCellStyleHasBeenSet = true; m_metricHeaderCellStyle = value; }
128 inline void SetMetricHeaderCellStyle(TableCellStyle&& value) { m_metricHeaderCellStyleHasBeenSet = true; m_metricHeaderCellStyle = std::move(value); }
130 inline PivotTotalOptions& WithMetricHeaderCellStyle(TableCellStyle&& value) { SetMetricHeaderCellStyle(std::move(value)); return *this;}
132
134
137 inline const Aws::Vector<TotalAggregationOption>& GetTotalAggregationOptions() const{ return m_totalAggregationOptions; }
138 inline bool TotalAggregationOptionsHasBeenSet() const { return m_totalAggregationOptionsHasBeenSet; }
139 inline void SetTotalAggregationOptions(const Aws::Vector<TotalAggregationOption>& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions = value; }
140 inline void SetTotalAggregationOptions(Aws::Vector<TotalAggregationOption>&& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions = std::move(value); }
143 inline PivotTotalOptions& AddTotalAggregationOptions(const TotalAggregationOption& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions.push_back(value); return *this; }
144 inline PivotTotalOptions& AddTotalAggregationOptions(TotalAggregationOption&& value) { m_totalAggregationOptionsHasBeenSet = true; m_totalAggregationOptions.push_back(std::move(value)); return *this; }
146 private:
147
148 Visibility m_totalsVisibility;
149 bool m_totalsVisibilityHasBeenSet = false;
150
151 TableTotalsPlacement m_placement;
152 bool m_placementHasBeenSet = false;
153
154 TableTotalsScrollStatus m_scrollStatus;
155 bool m_scrollStatusHasBeenSet = false;
156
157 Aws::String m_customLabel;
158 bool m_customLabelHasBeenSet = false;
159
160 TableCellStyle m_totalCellStyle;
161 bool m_totalCellStyleHasBeenSet = false;
162
163 TableCellStyle m_valueCellStyle;
164 bool m_valueCellStyleHasBeenSet = false;
165
166 TableCellStyle m_metricHeaderCellStyle;
167 bool m_metricHeaderCellStyleHasBeenSet = false;
168
169 Aws::Vector<TotalAggregationOption> m_totalAggregationOptions;
170 bool m_totalAggregationOptionsHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace QuickSight
175} // namespace Aws
PivotTotalOptions & WithValueCellStyle(const TableCellStyle &value)
PivotTotalOptions & WithTotalCellStyle(TableCellStyle &&value)
AWS_QUICKSIGHT_API PivotTotalOptions(Aws::Utils::Json::JsonView jsonValue)
PivotTotalOptions & WithTotalsVisibility(const Visibility &value)
void SetTotalsVisibility(const Visibility &value)
PivotTotalOptions & WithTotalCellStyle(const TableCellStyle &value)
const Aws::String & GetCustomLabel() const
const Visibility & GetTotalsVisibility() const
const TableCellStyle & GetValueCellStyle() const
const TableCellStyle & GetMetricHeaderCellStyle() const
void SetValueCellStyle(const TableCellStyle &value)
const TableTotalsPlacement & GetPlacement() const
PivotTotalOptions & WithCustomLabel(const Aws::String &value)
void SetScrollStatus(const TableTotalsScrollStatus &value)
PivotTotalOptions & AddTotalAggregationOptions(TotalAggregationOption &&value)
void SetMetricHeaderCellStyle(const TableCellStyle &value)
void SetPlacement(const TableTotalsPlacement &value)
void SetTotalCellStyle(const TableCellStyle &value)
AWS_QUICKSIGHT_API PivotTotalOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTotalAggregationOptions(Aws::Vector< TotalAggregationOption > &&value)
PivotTotalOptions & WithTotalsVisibility(Visibility &&value)
void SetScrollStatus(TableTotalsScrollStatus &&value)
PivotTotalOptions & WithTotalAggregationOptions(const Aws::Vector< TotalAggregationOption > &value)
PivotTotalOptions & WithMetricHeaderCellStyle(const TableCellStyle &value)
PivotTotalOptions & WithScrollStatus(const TableTotalsScrollStatus &value)
PivotTotalOptions & AddTotalAggregationOptions(const TotalAggregationOption &value)
PivotTotalOptions & WithPlacement(const TableTotalsPlacement &value)
PivotTotalOptions & WithMetricHeaderCellStyle(TableCellStyle &&value)
const Aws::Vector< TotalAggregationOption > & GetTotalAggregationOptions() const
void SetTotalCellStyle(TableCellStyle &&value)
const TableTotalsScrollStatus & GetScrollStatus() const
PivotTotalOptions & WithScrollStatus(TableTotalsScrollStatus &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTotalAggregationOptions(const Aws::Vector< TotalAggregationOption > &value)
void SetMetricHeaderCellStyle(TableCellStyle &&value)
PivotTotalOptions & WithCustomLabel(Aws::String &&value)
PivotTotalOptions & WithPlacement(TableTotalsPlacement &&value)
PivotTotalOptions & WithValueCellStyle(TableCellStyle &&value)
void SetValueCellStyle(TableCellStyle &&value)
const TableCellStyle & GetTotalCellStyle() const
PivotTotalOptions & WithTotalAggregationOptions(Aws::Vector< TotalAggregationOption > &&value)
void SetCustomLabel(const Aws::String &value)
PivotTotalOptions & WithCustomLabel(const char *value)
void SetPlacement(TableTotalsPlacement &&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