AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
TotalOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/TableCellStyle.h>
11#include <aws/quicksight/model/TableTotalsPlacement.h>
12#include <aws/quicksight/model/TableTotalsScrollStatus.h>
13#include <aws/quicksight/model/TotalAggregationOption.h>
14#include <aws/quicksight/model/Visibility.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
27
34 public:
35 AWS_QUICKSIGHT_API TotalOptions() = default;
36 AWS_QUICKSIGHT_API TotalOptions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API TotalOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline Visibility GetTotalsVisibility() const { return m_totalsVisibility; }
45 inline bool TotalsVisibilityHasBeenSet() const { return m_totalsVisibilityHasBeenSet; }
46 inline void SetTotalsVisibility(Visibility value) {
47 m_totalsVisibilityHasBeenSet = true;
48 m_totalsVisibility = value;
49 }
52 return *this;
53 }
55
57
60 inline TableTotalsPlacement GetPlacement() const { return m_placement; }
61 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
63 m_placementHasBeenSet = true;
64 m_placement = value;
65 }
67 SetPlacement(value);
68 return *this;
69 }
71
73
76 inline TableTotalsScrollStatus GetScrollStatus() const { return m_scrollStatus; }
77 inline bool ScrollStatusHasBeenSet() const { return m_scrollStatusHasBeenSet; }
79 m_scrollStatusHasBeenSet = true;
80 m_scrollStatus = value;
81 }
83 SetScrollStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetCustomLabel() const { return m_customLabel; }
93 inline bool CustomLabelHasBeenSet() const { return m_customLabelHasBeenSet; }
94 template <typename CustomLabelT = Aws::String>
95 void SetCustomLabel(CustomLabelT&& value) {
96 m_customLabelHasBeenSet = true;
97 m_customLabel = std::forward<CustomLabelT>(value);
98 }
99 template <typename CustomLabelT = Aws::String>
100 TotalOptions& WithCustomLabel(CustomLabelT&& value) {
101 SetCustomLabel(std::forward<CustomLabelT>(value));
102 return *this;
103 }
105
107
110 inline const TableCellStyle& GetTotalCellStyle() const { return m_totalCellStyle; }
111 inline bool TotalCellStyleHasBeenSet() const { return m_totalCellStyleHasBeenSet; }
112 template <typename TotalCellStyleT = TableCellStyle>
113 void SetTotalCellStyle(TotalCellStyleT&& value) {
114 m_totalCellStyleHasBeenSet = true;
115 m_totalCellStyle = std::forward<TotalCellStyleT>(value);
116 }
117 template <typename TotalCellStyleT = TableCellStyle>
118 TotalOptions& WithTotalCellStyle(TotalCellStyleT&& value) {
119 SetTotalCellStyle(std::forward<TotalCellStyleT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<TotalAggregationOption>& GetTotalAggregationOptions() const { return m_totalAggregationOptions; }
129 inline bool TotalAggregationOptionsHasBeenSet() const { return m_totalAggregationOptionsHasBeenSet; }
130 template <typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
131 void SetTotalAggregationOptions(TotalAggregationOptionsT&& value) {
132 m_totalAggregationOptionsHasBeenSet = true;
133 m_totalAggregationOptions = std::forward<TotalAggregationOptionsT>(value);
134 }
135 template <typename TotalAggregationOptionsT = Aws::Vector<TotalAggregationOption>>
136 TotalOptions& WithTotalAggregationOptions(TotalAggregationOptionsT&& value) {
137 SetTotalAggregationOptions(std::forward<TotalAggregationOptionsT>(value));
138 return *this;
139 }
140 template <typename TotalAggregationOptionsT = TotalAggregationOption>
141 TotalOptions& AddTotalAggregationOptions(TotalAggregationOptionsT&& value) {
142 m_totalAggregationOptionsHasBeenSet = true;
143 m_totalAggregationOptions.emplace_back(std::forward<TotalAggregationOptionsT>(value));
144 return *this;
145 }
147 private:
148 Visibility m_totalsVisibility{Visibility::NOT_SET};
149
151
153
154 Aws::String m_customLabel;
155
156 TableCellStyle m_totalCellStyle;
157
158 Aws::Vector<TotalAggregationOption> m_totalAggregationOptions;
159 bool m_totalsVisibilityHasBeenSet = false;
160 bool m_placementHasBeenSet = false;
161 bool m_scrollStatusHasBeenSet = false;
162 bool m_customLabelHasBeenSet = false;
163 bool m_totalCellStyleHasBeenSet = false;
164 bool m_totalAggregationOptionsHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace QuickSight
169} // namespace Aws
void SetTotalCellStyle(TotalCellStyleT &&value)
AWS_QUICKSIGHT_API TotalOptions(Aws::Utils::Json::JsonView jsonValue)
void SetScrollStatus(TableTotalsScrollStatus value)
const Aws::String & GetCustomLabel() const
TotalOptions & WithScrollStatus(TableTotalsScrollStatus value)
const Aws::Vector< TotalAggregationOption > & GetTotalAggregationOptions() const
TotalOptions & WithTotalCellStyle(TotalCellStyleT &&value)
const TableCellStyle & GetTotalCellStyle() const
TotalOptions & AddTotalAggregationOptions(TotalAggregationOptionsT &&value)
AWS_QUICKSIGHT_API TotalOptions()=default
void SetTotalAggregationOptions(TotalAggregationOptionsT &&value)
TotalOptions & WithCustomLabel(CustomLabelT &&value)
TableTotalsScrollStatus GetScrollStatus() const
AWS_QUICKSIGHT_API TotalOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomLabel(CustomLabelT &&value)
void SetTotalsVisibility(Visibility value)
TotalOptions & WithTotalsVisibility(Visibility value)
TotalOptions & WithPlacement(TableTotalsPlacement value)
TotalOptions & WithTotalAggregationOptions(TotalAggregationOptionsT &&value)
TableTotalsPlacement GetPlacement() const
void SetPlacement(TableTotalsPlacement value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue