AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DisplayFormatOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/NegativeFormat.h>
10#include <aws/quicksight/model/NumberScale.h>
11#include <aws/quicksight/model/TopicNumericSeparatorSymbol.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
32 public:
33 AWS_QUICKSIGHT_API DisplayFormatOptions() = default;
34 AWS_QUICKSIGHT_API DisplayFormatOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline bool GetUseBlankCellFormat() const { return m_useBlankCellFormat; }
43 inline bool UseBlankCellFormatHasBeenSet() const { return m_useBlankCellFormatHasBeenSet; }
44 inline void SetUseBlankCellFormat(bool value) {
45 m_useBlankCellFormatHasBeenSet = true;
46 m_useBlankCellFormat = value;
47 }
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBlankCellFormat() const { return m_blankCellFormat; }
59 inline bool BlankCellFormatHasBeenSet() const { return m_blankCellFormatHasBeenSet; }
60 template <typename BlankCellFormatT = Aws::String>
61 void SetBlankCellFormat(BlankCellFormatT&& value) {
62 m_blankCellFormatHasBeenSet = true;
63 m_blankCellFormat = std::forward<BlankCellFormatT>(value);
64 }
65 template <typename BlankCellFormatT = Aws::String>
66 DisplayFormatOptions& WithBlankCellFormat(BlankCellFormatT&& value) {
67 SetBlankCellFormat(std::forward<BlankCellFormatT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDateFormat() const { return m_dateFormat; }
77 inline bool DateFormatHasBeenSet() const { return m_dateFormatHasBeenSet; }
78 template <typename DateFormatT = Aws::String>
79 void SetDateFormat(DateFormatT&& value) {
80 m_dateFormatHasBeenSet = true;
81 m_dateFormat = std::forward<DateFormatT>(value);
82 }
83 template <typename DateFormatT = Aws::String>
84 DisplayFormatOptions& WithDateFormat(DateFormatT&& value) {
85 SetDateFormat(std::forward<DateFormatT>(value));
86 return *this;
87 }
89
91
94 inline TopicNumericSeparatorSymbol GetDecimalSeparator() const { return m_decimalSeparator; }
95 inline bool DecimalSeparatorHasBeenSet() const { return m_decimalSeparatorHasBeenSet; }
97 m_decimalSeparatorHasBeenSet = true;
98 m_decimalSeparator = value;
99 }
101 SetDecimalSeparator(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetGroupingSeparator() const { return m_groupingSeparator; }
111 inline bool GroupingSeparatorHasBeenSet() const { return m_groupingSeparatorHasBeenSet; }
112 template <typename GroupingSeparatorT = Aws::String>
113 void SetGroupingSeparator(GroupingSeparatorT&& value) {
114 m_groupingSeparatorHasBeenSet = true;
115 m_groupingSeparator = std::forward<GroupingSeparatorT>(value);
116 }
117 template <typename GroupingSeparatorT = Aws::String>
118 DisplayFormatOptions& WithGroupingSeparator(GroupingSeparatorT&& value) {
119 SetGroupingSeparator(std::forward<GroupingSeparatorT>(value));
120 return *this;
121 }
123
125
128 inline bool GetUseGrouping() const { return m_useGrouping; }
129 inline bool UseGroupingHasBeenSet() const { return m_useGroupingHasBeenSet; }
130 inline void SetUseGrouping(bool value) {
131 m_useGroupingHasBeenSet = true;
132 m_useGrouping = value;
133 }
135 SetUseGrouping(value);
136 return *this;
137 }
139
141
144 inline int GetFractionDigits() const { return m_fractionDigits; }
145 inline bool FractionDigitsHasBeenSet() const { return m_fractionDigitsHasBeenSet; }
146 inline void SetFractionDigits(int value) {
147 m_fractionDigitsHasBeenSet = true;
148 m_fractionDigits = value;
149 }
151 SetFractionDigits(value);
152 return *this;
153 }
155
157
160 inline const Aws::String& GetPrefix() const { return m_prefix; }
161 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
162 template <typename PrefixT = Aws::String>
163 void SetPrefix(PrefixT&& value) {
164 m_prefixHasBeenSet = true;
165 m_prefix = std::forward<PrefixT>(value);
166 }
167 template <typename PrefixT = Aws::String>
169 SetPrefix(std::forward<PrefixT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetSuffix() const { return m_suffix; }
179 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
180 template <typename SuffixT = Aws::String>
181 void SetSuffix(SuffixT&& value) {
182 m_suffixHasBeenSet = true;
183 m_suffix = std::forward<SuffixT>(value);
184 }
185 template <typename SuffixT = Aws::String>
187 SetSuffix(std::forward<SuffixT>(value));
188 return *this;
189 }
191
193
198 inline NumberScale GetUnitScaler() const { return m_unitScaler; }
199 inline bool UnitScalerHasBeenSet() const { return m_unitScalerHasBeenSet; }
200 inline void SetUnitScaler(NumberScale value) {
201 m_unitScalerHasBeenSet = true;
202 m_unitScaler = value;
203 }
205 SetUnitScaler(value);
206 return *this;
207 }
209
211
214 inline const NegativeFormat& GetNegativeFormat() const { return m_negativeFormat; }
215 inline bool NegativeFormatHasBeenSet() const { return m_negativeFormatHasBeenSet; }
216 template <typename NegativeFormatT = NegativeFormat>
217 void SetNegativeFormat(NegativeFormatT&& value) {
218 m_negativeFormatHasBeenSet = true;
219 m_negativeFormat = std::forward<NegativeFormatT>(value);
220 }
221 template <typename NegativeFormatT = NegativeFormat>
222 DisplayFormatOptions& WithNegativeFormat(NegativeFormatT&& value) {
223 SetNegativeFormat(std::forward<NegativeFormatT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetCurrencySymbol() const { return m_currencySymbol; }
233 inline bool CurrencySymbolHasBeenSet() const { return m_currencySymbolHasBeenSet; }
234 template <typename CurrencySymbolT = Aws::String>
235 void SetCurrencySymbol(CurrencySymbolT&& value) {
236 m_currencySymbolHasBeenSet = true;
237 m_currencySymbol = std::forward<CurrencySymbolT>(value);
238 }
239 template <typename CurrencySymbolT = Aws::String>
240 DisplayFormatOptions& WithCurrencySymbol(CurrencySymbolT&& value) {
241 SetCurrencySymbol(std::forward<CurrencySymbolT>(value));
242 return *this;
243 }
245 private:
246 bool m_useBlankCellFormat{false};
247
248 Aws::String m_blankCellFormat;
249
250 Aws::String m_dateFormat;
251
253
254 Aws::String m_groupingSeparator;
255
256 bool m_useGrouping{false};
257
258 int m_fractionDigits{0};
259
260 Aws::String m_prefix;
261
262 Aws::String m_suffix;
263
264 NumberScale m_unitScaler{NumberScale::NOT_SET};
265
266 NegativeFormat m_negativeFormat;
267
268 Aws::String m_currencySymbol;
269 bool m_useBlankCellFormatHasBeenSet = false;
270 bool m_blankCellFormatHasBeenSet = false;
271 bool m_dateFormatHasBeenSet = false;
272 bool m_decimalSeparatorHasBeenSet = false;
273 bool m_groupingSeparatorHasBeenSet = false;
274 bool m_useGroupingHasBeenSet = false;
275 bool m_fractionDigitsHasBeenSet = false;
276 bool m_prefixHasBeenSet = false;
277 bool m_suffixHasBeenSet = false;
278 bool m_unitScalerHasBeenSet = false;
279 bool m_negativeFormatHasBeenSet = false;
280 bool m_currencySymbolHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace QuickSight
285} // namespace Aws
DisplayFormatOptions & WithNegativeFormat(NegativeFormatT &&value)
DisplayFormatOptions & WithCurrencySymbol(CurrencySymbolT &&value)
DisplayFormatOptions & WithUnitScaler(NumberScale value)
DisplayFormatOptions & WithGroupingSeparator(GroupingSeparatorT &&value)
TopicNumericSeparatorSymbol GetDecimalSeparator() const
DisplayFormatOptions & WithDateFormat(DateFormatT &&value)
AWS_QUICKSIGHT_API DisplayFormatOptions()=default
DisplayFormatOptions & WithUseBlankCellFormat(bool value)
DisplayFormatOptions & WithBlankCellFormat(BlankCellFormatT &&value)
DisplayFormatOptions & WithUseGrouping(bool value)
DisplayFormatOptions & WithPrefix(PrefixT &&value)
DisplayFormatOptions & WithDecimalSeparator(TopicNumericSeparatorSymbol value)
DisplayFormatOptions & WithFractionDigits(int value)
void SetGroupingSeparator(GroupingSeparatorT &&value)
void SetDecimalSeparator(TopicNumericSeparatorSymbol value)
AWS_QUICKSIGHT_API DisplayFormatOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
DisplayFormatOptions & WithSuffix(SuffixT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBlankCellFormat(BlankCellFormatT &&value)
AWS_QUICKSIGHT_API DisplayFormatOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue