AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
NumberDisplayFormatConfiguration.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/DecimalPlacesConfiguration.h>
10#include <aws/quicksight/model/NegativeValueConfiguration.h>
11#include <aws/quicksight/model/NullValueFormatConfiguration.h>
12#include <aws/quicksight/model/NumberScale.h>
13#include <aws/quicksight/model/NumericSeparatorConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
34 public:
35 AWS_QUICKSIGHT_API NumberDisplayFormatConfiguration() = default;
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetPrefix() const { return m_prefix; }
45 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
46 template <typename PrefixT = Aws::String>
47 void SetPrefix(PrefixT&& value) {
48 m_prefixHasBeenSet = true;
49 m_prefix = std::forward<PrefixT>(value);
50 }
51 template <typename PrefixT = Aws::String>
53 SetPrefix(std::forward<PrefixT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetSuffix() const { return m_suffix; }
63 inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
64 template <typename SuffixT = Aws::String>
65 void SetSuffix(SuffixT&& value) {
66 m_suffixHasBeenSet = true;
67 m_suffix = std::forward<SuffixT>(value);
68 }
69 template <typename SuffixT = Aws::String>
71 SetSuffix(std::forward<SuffixT>(value));
72 return *this;
73 }
75
77
80 inline const NumericSeparatorConfiguration& GetSeparatorConfiguration() const { return m_separatorConfiguration; }
81 inline bool SeparatorConfigurationHasBeenSet() const { return m_separatorConfigurationHasBeenSet; }
82 template <typename SeparatorConfigurationT = NumericSeparatorConfiguration>
83 void SetSeparatorConfiguration(SeparatorConfigurationT&& value) {
84 m_separatorConfigurationHasBeenSet = true;
85 m_separatorConfiguration = std::forward<SeparatorConfigurationT>(value);
86 }
87 template <typename SeparatorConfigurationT = NumericSeparatorConfiguration>
89 SetSeparatorConfiguration(std::forward<SeparatorConfigurationT>(value));
90 return *this;
91 }
93
95
98 inline const DecimalPlacesConfiguration& GetDecimalPlacesConfiguration() const { return m_decimalPlacesConfiguration; }
99 inline bool DecimalPlacesConfigurationHasBeenSet() const { return m_decimalPlacesConfigurationHasBeenSet; }
100 template <typename DecimalPlacesConfigurationT = DecimalPlacesConfiguration>
101 void SetDecimalPlacesConfiguration(DecimalPlacesConfigurationT&& value) {
102 m_decimalPlacesConfigurationHasBeenSet = true;
103 m_decimalPlacesConfiguration = std::forward<DecimalPlacesConfigurationT>(value);
104 }
105 template <typename DecimalPlacesConfigurationT = DecimalPlacesConfiguration>
107 SetDecimalPlacesConfiguration(std::forward<DecimalPlacesConfigurationT>(value));
108 return *this;
109 }
111
113
116 inline NumberScale GetNumberScale() const { return m_numberScale; }
117 inline bool NumberScaleHasBeenSet() const { return m_numberScaleHasBeenSet; }
118 inline void SetNumberScale(NumberScale value) {
119 m_numberScaleHasBeenSet = true;
120 m_numberScale = value;
121 }
123 SetNumberScale(value);
124 return *this;
125 }
127
129
132 inline const NegativeValueConfiguration& GetNegativeValueConfiguration() const { return m_negativeValueConfiguration; }
133 inline bool NegativeValueConfigurationHasBeenSet() const { return m_negativeValueConfigurationHasBeenSet; }
134 template <typename NegativeValueConfigurationT = NegativeValueConfiguration>
135 void SetNegativeValueConfiguration(NegativeValueConfigurationT&& value) {
136 m_negativeValueConfigurationHasBeenSet = true;
137 m_negativeValueConfiguration = std::forward<NegativeValueConfigurationT>(value);
138 }
139 template <typename NegativeValueConfigurationT = NegativeValueConfiguration>
141 SetNegativeValueConfiguration(std::forward<NegativeValueConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline const NullValueFormatConfiguration& GetNullValueFormatConfiguration() const { return m_nullValueFormatConfiguration; }
151 inline bool NullValueFormatConfigurationHasBeenSet() const { return m_nullValueFormatConfigurationHasBeenSet; }
152 template <typename NullValueFormatConfigurationT = NullValueFormatConfiguration>
153 void SetNullValueFormatConfiguration(NullValueFormatConfigurationT&& value) {
154 m_nullValueFormatConfigurationHasBeenSet = true;
155 m_nullValueFormatConfiguration = std::forward<NullValueFormatConfigurationT>(value);
156 }
157 template <typename NullValueFormatConfigurationT = NullValueFormatConfiguration>
159 SetNullValueFormatConfiguration(std::forward<NullValueFormatConfigurationT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_prefix;
165
166 Aws::String m_suffix;
167
168 NumericSeparatorConfiguration m_separatorConfiguration;
169
170 DecimalPlacesConfiguration m_decimalPlacesConfiguration;
171
172 NumberScale m_numberScale{NumberScale::NOT_SET};
173
174 NegativeValueConfiguration m_negativeValueConfiguration;
175
176 NullValueFormatConfiguration m_nullValueFormatConfiguration;
177 bool m_prefixHasBeenSet = false;
178 bool m_suffixHasBeenSet = false;
179 bool m_separatorConfigurationHasBeenSet = false;
180 bool m_decimalPlacesConfigurationHasBeenSet = false;
181 bool m_numberScaleHasBeenSet = false;
182 bool m_negativeValueConfigurationHasBeenSet = false;
183 bool m_nullValueFormatConfigurationHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace QuickSight
188} // namespace Aws
const NumericSeparatorConfiguration & GetSeparatorConfiguration() const
const DecimalPlacesConfiguration & GetDecimalPlacesConfiguration() const
NumberDisplayFormatConfiguration & WithPrefix(PrefixT &&value)
const NullValueFormatConfiguration & GetNullValueFormatConfiguration() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
NumberDisplayFormatConfiguration & WithSuffix(SuffixT &&value)
NumberDisplayFormatConfiguration & WithDecimalPlacesConfiguration(DecimalPlacesConfigurationT &&value)
AWS_QUICKSIGHT_API NumberDisplayFormatConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API NumberDisplayFormatConfiguration(Aws::Utils::Json::JsonView jsonValue)
NumberDisplayFormatConfiguration & WithSeparatorConfiguration(SeparatorConfigurationT &&value)
NumberDisplayFormatConfiguration & WithNumberScale(NumberScale value)
NumberDisplayFormatConfiguration & WithNegativeValueConfiguration(NegativeValueConfigurationT &&value)
void SetNullValueFormatConfiguration(NullValueFormatConfigurationT &&value)
AWS_QUICKSIGHT_API NumberDisplayFormatConfiguration()=default
NumberDisplayFormatConfiguration & WithNullValueFormatConfiguration(NullValueFormatConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue