AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NumberDisplayFormatConfiguration.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/NumericSeparatorConfiguration.h>
10#include <aws/quicksight/model/DecimalPlacesConfiguration.h>
11#include <aws/quicksight/model/NumberScale.h>
12#include <aws/quicksight/model/NegativeValueConfiguration.h>
13#include <aws/quicksight/model/NullValueFormatConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_QUICKSIGHT_API NumberDisplayFormatConfiguration() = default;
43 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetPrefix() const { return m_prefix; }
51 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
52 template<typename PrefixT = Aws::String>
53 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
54 template<typename PrefixT = Aws::String>
55 NumberDisplayFormatConfiguration& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
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) { m_suffixHasBeenSet = true; m_suffix = std::forward<SuffixT>(value); }
66 template<typename SuffixT = Aws::String>
67 NumberDisplayFormatConfiguration& WithSuffix(SuffixT&& value) { SetSuffix(std::forward<SuffixT>(value)); return *this;}
69
71
74 inline const NumericSeparatorConfiguration& GetSeparatorConfiguration() const { return m_separatorConfiguration; }
75 inline bool SeparatorConfigurationHasBeenSet() const { return m_separatorConfigurationHasBeenSet; }
76 template<typename SeparatorConfigurationT = NumericSeparatorConfiguration>
77 void SetSeparatorConfiguration(SeparatorConfigurationT&& value) { m_separatorConfigurationHasBeenSet = true; m_separatorConfiguration = std::forward<SeparatorConfigurationT>(value); }
78 template<typename SeparatorConfigurationT = NumericSeparatorConfiguration>
79 NumberDisplayFormatConfiguration& WithSeparatorConfiguration(SeparatorConfigurationT&& value) { SetSeparatorConfiguration(std::forward<SeparatorConfigurationT>(value)); return *this;}
81
83
86 inline const DecimalPlacesConfiguration& GetDecimalPlacesConfiguration() const { return m_decimalPlacesConfiguration; }
87 inline bool DecimalPlacesConfigurationHasBeenSet() const { return m_decimalPlacesConfigurationHasBeenSet; }
88 template<typename DecimalPlacesConfigurationT = DecimalPlacesConfiguration>
89 void SetDecimalPlacesConfiguration(DecimalPlacesConfigurationT&& value) { m_decimalPlacesConfigurationHasBeenSet = true; m_decimalPlacesConfiguration = std::forward<DecimalPlacesConfigurationT>(value); }
90 template<typename DecimalPlacesConfigurationT = DecimalPlacesConfiguration>
91 NumberDisplayFormatConfiguration& WithDecimalPlacesConfiguration(DecimalPlacesConfigurationT&& value) { SetDecimalPlacesConfiguration(std::forward<DecimalPlacesConfigurationT>(value)); return *this;}
93
95
98 inline NumberScale GetNumberScale() const { return m_numberScale; }
99 inline bool NumberScaleHasBeenSet() const { return m_numberScaleHasBeenSet; }
100 inline void SetNumberScale(NumberScale value) { m_numberScaleHasBeenSet = true; m_numberScale = value; }
103
105
108 inline const NegativeValueConfiguration& GetNegativeValueConfiguration() const { return m_negativeValueConfiguration; }
109 inline bool NegativeValueConfigurationHasBeenSet() const { return m_negativeValueConfigurationHasBeenSet; }
110 template<typename NegativeValueConfigurationT = NegativeValueConfiguration>
111 void SetNegativeValueConfiguration(NegativeValueConfigurationT&& value) { m_negativeValueConfigurationHasBeenSet = true; m_negativeValueConfiguration = std::forward<NegativeValueConfigurationT>(value); }
112 template<typename NegativeValueConfigurationT = NegativeValueConfiguration>
113 NumberDisplayFormatConfiguration& WithNegativeValueConfiguration(NegativeValueConfigurationT&& value) { SetNegativeValueConfiguration(std::forward<NegativeValueConfigurationT>(value)); return *this;}
115
117
120 inline const NullValueFormatConfiguration& GetNullValueFormatConfiguration() const { return m_nullValueFormatConfiguration; }
121 inline bool NullValueFormatConfigurationHasBeenSet() const { return m_nullValueFormatConfigurationHasBeenSet; }
122 template<typename NullValueFormatConfigurationT = NullValueFormatConfiguration>
123 void SetNullValueFormatConfiguration(NullValueFormatConfigurationT&& value) { m_nullValueFormatConfigurationHasBeenSet = true; m_nullValueFormatConfiguration = std::forward<NullValueFormatConfigurationT>(value); }
124 template<typename NullValueFormatConfigurationT = NullValueFormatConfiguration>
125 NumberDisplayFormatConfiguration& WithNullValueFormatConfiguration(NullValueFormatConfigurationT&& value) { SetNullValueFormatConfiguration(std::forward<NullValueFormatConfigurationT>(value)); return *this;}
127 private:
128
129 Aws::String m_prefix;
130 bool m_prefixHasBeenSet = false;
131
132 Aws::String m_suffix;
133 bool m_suffixHasBeenSet = false;
134
135 NumericSeparatorConfiguration m_separatorConfiguration;
136 bool m_separatorConfigurationHasBeenSet = false;
137
138 DecimalPlacesConfiguration m_decimalPlacesConfiguration;
139 bool m_decimalPlacesConfigurationHasBeenSet = false;
140
141 NumberScale m_numberScale{NumberScale::NOT_SET};
142 bool m_numberScaleHasBeenSet = false;
143
144 NegativeValueConfiguration m_negativeValueConfiguration;
145 bool m_negativeValueConfigurationHasBeenSet = false;
146
147 NullValueFormatConfiguration m_nullValueFormatConfiguration;
148 bool m_nullValueFormatConfigurationHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace QuickSight
153} // 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