AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DisplayFormatOptions.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/TopicNumericSeparatorSymbol.h>
10#include <aws/quicksight/model/NumberScale.h>
11#include <aws/quicksight/model/NegativeFormat.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QUICKSIGHT_API DisplayFormatOptions() = default;
39 AWS_QUICKSIGHT_API DisplayFormatOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline bool GetUseBlankCellFormat() const { return m_useBlankCellFormat; }
49 inline bool UseBlankCellFormatHasBeenSet() const { return m_useBlankCellFormatHasBeenSet; }
50 inline void SetUseBlankCellFormat(bool value) { m_useBlankCellFormatHasBeenSet = true; m_useBlankCellFormat = value; }
51 inline DisplayFormatOptions& WithUseBlankCellFormat(bool value) { SetUseBlankCellFormat(value); return *this;}
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) { m_blankCellFormatHasBeenSet = true; m_blankCellFormat = std::forward<BlankCellFormatT>(value); }
62 template<typename BlankCellFormatT = Aws::String>
63 DisplayFormatOptions& WithBlankCellFormat(BlankCellFormatT&& value) { SetBlankCellFormat(std::forward<BlankCellFormatT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDateFormat() const { return m_dateFormat; }
71 inline bool DateFormatHasBeenSet() const { return m_dateFormatHasBeenSet; }
72 template<typename DateFormatT = Aws::String>
73 void SetDateFormat(DateFormatT&& value) { m_dateFormatHasBeenSet = true; m_dateFormat = std::forward<DateFormatT>(value); }
74 template<typename DateFormatT = Aws::String>
75 DisplayFormatOptions& WithDateFormat(DateFormatT&& value) { SetDateFormat(std::forward<DateFormatT>(value)); return *this;}
77
79
82 inline TopicNumericSeparatorSymbol GetDecimalSeparator() const { return m_decimalSeparator; }
83 inline bool DecimalSeparatorHasBeenSet() const { return m_decimalSeparatorHasBeenSet; }
84 inline void SetDecimalSeparator(TopicNumericSeparatorSymbol value) { m_decimalSeparatorHasBeenSet = true; m_decimalSeparator = value; }
87
89
92 inline const Aws::String& GetGroupingSeparator() const { return m_groupingSeparator; }
93 inline bool GroupingSeparatorHasBeenSet() const { return m_groupingSeparatorHasBeenSet; }
94 template<typename GroupingSeparatorT = Aws::String>
95 void SetGroupingSeparator(GroupingSeparatorT&& value) { m_groupingSeparatorHasBeenSet = true; m_groupingSeparator = std::forward<GroupingSeparatorT>(value); }
96 template<typename GroupingSeparatorT = Aws::String>
97 DisplayFormatOptions& WithGroupingSeparator(GroupingSeparatorT&& value) { SetGroupingSeparator(std::forward<GroupingSeparatorT>(value)); return *this;}
99
101
104 inline bool GetUseGrouping() const { return m_useGrouping; }
105 inline bool UseGroupingHasBeenSet() const { return m_useGroupingHasBeenSet; }
106 inline void SetUseGrouping(bool value) { m_useGroupingHasBeenSet = true; m_useGrouping = value; }
107 inline DisplayFormatOptions& WithUseGrouping(bool value) { SetUseGrouping(value); return *this;}
109
111
114 inline int GetFractionDigits() const { return m_fractionDigits; }
115 inline bool FractionDigitsHasBeenSet() const { return m_fractionDigitsHasBeenSet; }
116 inline void SetFractionDigits(int value) { m_fractionDigitsHasBeenSet = true; m_fractionDigits = value; }
117 inline DisplayFormatOptions& WithFractionDigits(int value) { SetFractionDigits(value); return *this;}
119
121
124 inline const Aws::String& GetPrefix() const { return m_prefix; }
125 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
126 template<typename PrefixT = Aws::String>
127 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
128 template<typename PrefixT = Aws::String>
129 DisplayFormatOptions& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
131
133
136 inline const Aws::String& GetSuffix() const { return m_suffix; }
137 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
138 template<typename SuffixT = Aws::String>
139 void SetSuffix(SuffixT&& value) { m_suffixHasBeenSet = true; m_suffix = std::forward<SuffixT>(value); }
140 template<typename SuffixT = Aws::String>
141 DisplayFormatOptions& WithSuffix(SuffixT&& value) { SetSuffix(std::forward<SuffixT>(value)); return *this;}
143
145
150 inline NumberScale GetUnitScaler() const { return m_unitScaler; }
151 inline bool UnitScalerHasBeenSet() const { return m_unitScalerHasBeenSet; }
152 inline void SetUnitScaler(NumberScale value) { m_unitScalerHasBeenSet = true; m_unitScaler = value; }
153 inline DisplayFormatOptions& WithUnitScaler(NumberScale value) { SetUnitScaler(value); return *this;}
155
157
160 inline const NegativeFormat& GetNegativeFormat() const { return m_negativeFormat; }
161 inline bool NegativeFormatHasBeenSet() const { return m_negativeFormatHasBeenSet; }
162 template<typename NegativeFormatT = NegativeFormat>
163 void SetNegativeFormat(NegativeFormatT&& value) { m_negativeFormatHasBeenSet = true; m_negativeFormat = std::forward<NegativeFormatT>(value); }
164 template<typename NegativeFormatT = NegativeFormat>
165 DisplayFormatOptions& WithNegativeFormat(NegativeFormatT&& value) { SetNegativeFormat(std::forward<NegativeFormatT>(value)); return *this;}
167
169
172 inline const Aws::String& GetCurrencySymbol() const { return m_currencySymbol; }
173 inline bool CurrencySymbolHasBeenSet() const { return m_currencySymbolHasBeenSet; }
174 template<typename CurrencySymbolT = Aws::String>
175 void SetCurrencySymbol(CurrencySymbolT&& value) { m_currencySymbolHasBeenSet = true; m_currencySymbol = std::forward<CurrencySymbolT>(value); }
176 template<typename CurrencySymbolT = Aws::String>
177 DisplayFormatOptions& WithCurrencySymbol(CurrencySymbolT&& value) { SetCurrencySymbol(std::forward<CurrencySymbolT>(value)); return *this;}
179 private:
180
181 bool m_useBlankCellFormat{false};
182 bool m_useBlankCellFormatHasBeenSet = false;
183
184 Aws::String m_blankCellFormat;
185 bool m_blankCellFormatHasBeenSet = false;
186
187 Aws::String m_dateFormat;
188 bool m_dateFormatHasBeenSet = false;
189
191 bool m_decimalSeparatorHasBeenSet = false;
192
193 Aws::String m_groupingSeparator;
194 bool m_groupingSeparatorHasBeenSet = false;
195
196 bool m_useGrouping{false};
197 bool m_useGroupingHasBeenSet = false;
198
199 int m_fractionDigits{0};
200 bool m_fractionDigitsHasBeenSet = false;
201
202 Aws::String m_prefix;
203 bool m_prefixHasBeenSet = false;
204
205 Aws::String m_suffix;
206 bool m_suffixHasBeenSet = false;
207
208 NumberScale m_unitScaler{NumberScale::NOT_SET};
209 bool m_unitScalerHasBeenSet = false;
210
211 NegativeFormat m_negativeFormat;
212 bool m_negativeFormatHasBeenSet = false;
213
214 Aws::String m_currencySymbol;
215 bool m_currencySymbolHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace QuickSight
220} // 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