AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CustomParameterValues.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
32 public:
33 AWS_QUICKSIGHT_API CustomParameterValues() = default;
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetStringValues() const { return m_stringValues; }
43 inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; }
44 template <typename StringValuesT = Aws::Vector<Aws::String>>
45 void SetStringValues(StringValuesT&& value) {
46 m_stringValuesHasBeenSet = true;
47 m_stringValues = std::forward<StringValuesT>(value);
48 }
49 template <typename StringValuesT = Aws::Vector<Aws::String>>
50 CustomParameterValues& WithStringValues(StringValuesT&& value) {
51 SetStringValues(std::forward<StringValuesT>(value));
52 return *this;
53 }
54 template <typename StringValuesT = Aws::String>
55 CustomParameterValues& AddStringValues(StringValuesT&& value) {
56 m_stringValuesHasBeenSet = true;
57 m_stringValues.emplace_back(std::forward<StringValuesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<long long>& GetIntegerValues() const { return m_integerValues; }
67 inline bool IntegerValuesHasBeenSet() const { return m_integerValuesHasBeenSet; }
68 template <typename IntegerValuesT = Aws::Vector<long long>>
69 void SetIntegerValues(IntegerValuesT&& value) {
70 m_integerValuesHasBeenSet = true;
71 m_integerValues = std::forward<IntegerValuesT>(value);
72 }
73 template <typename IntegerValuesT = Aws::Vector<long long>>
74 CustomParameterValues& WithIntegerValues(IntegerValuesT&& value) {
75 SetIntegerValues(std::forward<IntegerValuesT>(value));
76 return *this;
77 }
78 inline CustomParameterValues& AddIntegerValues(long long value) {
79 m_integerValuesHasBeenSet = true;
80 m_integerValues.push_back(value);
81 return *this;
82 }
84
86
89 inline const Aws::Vector<double>& GetDecimalValues() const { return m_decimalValues; }
90 inline bool DecimalValuesHasBeenSet() const { return m_decimalValuesHasBeenSet; }
91 template <typename DecimalValuesT = Aws::Vector<double>>
92 void SetDecimalValues(DecimalValuesT&& value) {
93 m_decimalValuesHasBeenSet = true;
94 m_decimalValues = std::forward<DecimalValuesT>(value);
95 }
96 template <typename DecimalValuesT = Aws::Vector<double>>
97 CustomParameterValues& WithDecimalValues(DecimalValuesT&& value) {
98 SetDecimalValues(std::forward<DecimalValuesT>(value));
99 return *this;
100 }
102 m_decimalValuesHasBeenSet = true;
103 m_decimalValues.push_back(value);
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Aws::Utils::DateTime>& GetDateTimeValues() const { return m_dateTimeValues; }
113 inline bool DateTimeValuesHasBeenSet() const { return m_dateTimeValuesHasBeenSet; }
114 template <typename DateTimeValuesT = Aws::Vector<Aws::Utils::DateTime>>
115 void SetDateTimeValues(DateTimeValuesT&& value) {
116 m_dateTimeValuesHasBeenSet = true;
117 m_dateTimeValues = std::forward<DateTimeValuesT>(value);
118 }
119 template <typename DateTimeValuesT = Aws::Vector<Aws::Utils::DateTime>>
120 CustomParameterValues& WithDateTimeValues(DateTimeValuesT&& value) {
121 SetDateTimeValues(std::forward<DateTimeValuesT>(value));
122 return *this;
123 }
124 template <typename DateTimeValuesT = Aws::Utils::DateTime>
125 CustomParameterValues& AddDateTimeValues(DateTimeValuesT&& value) {
126 m_dateTimeValuesHasBeenSet = true;
127 m_dateTimeValues.emplace_back(std::forward<DateTimeValuesT>(value));
128 return *this;
129 }
131 private:
132 Aws::Vector<Aws::String> m_stringValues;
133
134 Aws::Vector<long long> m_integerValues;
135
136 Aws::Vector<double> m_decimalValues;
137
138 Aws::Vector<Aws::Utils::DateTime> m_dateTimeValues;
139 bool m_stringValuesHasBeenSet = false;
140 bool m_integerValuesHasBeenSet = false;
141 bool m_decimalValuesHasBeenSet = false;
142 bool m_dateTimeValuesHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace QuickSight
147} // namespace Aws
AWS_QUICKSIGHT_API CustomParameterValues(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetDecimalValues() const
const Aws::Vector< long long > & GetIntegerValues() const
CustomParameterValues & AddDecimalValues(double value)
AWS_QUICKSIGHT_API CustomParameterValues()=default
CustomParameterValues & AddIntegerValues(long long value)
CustomParameterValues & AddDateTimeValues(DateTimeValuesT &&value)
CustomParameterValues & WithIntegerValues(IntegerValuesT &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetDateTimeValues() const
AWS_QUICKSIGHT_API CustomParameterValues & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomParameterValues & AddStringValues(StringValuesT &&value)
CustomParameterValues & WithDateTimeValues(DateTimeValuesT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
CustomParameterValues & WithDecimalValues(DecimalValuesT &&value)
const Aws::Vector< Aws::String > & GetStringValues() const
CustomParameterValues & WithStringValues(StringValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue