7#include <aws/context/Context_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
33 AWS_CONTEXT_API
AnyValue(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API
AnyValue&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
43 template <
typename StringValueT = Aws::String>
45 m_stringValueHasBeenSet =
true;
46 m_stringValue = std::forward<StringValueT>(value);
48 template <
typename StringValueT = Aws::String>
62 m_intValueHasBeenSet =
true;
78 m_longValueHasBeenSet =
true;
94 m_boolValueHasBeenSet =
true;
110 m_floatValueHasBeenSet =
true;
111 m_floatValue = value;
126 m_doubleValueHasBeenSet =
true;
127 m_doubleValue = value;
141 template <
typename StringListValueT = Aws::Vector<Aws::String>>
143 m_stringListValueHasBeenSet =
true;
144 m_stringListValue = std::forward<StringListValueT>(value);
146 template <
typename StringListValueT = Aws::Vector<Aws::String>>
151 template <
typename StringListValueT = Aws::String>
153 m_stringListValueHasBeenSet =
true;
154 m_stringListValue.emplace_back(std::forward<StringListValueT>(value));
165 template <
typename IntListValueT = Aws::Vector<
int64_t>>
167 m_intListValueHasBeenSet =
true;
168 m_intListValue = std::forward<IntListValueT>(value);
170 template <
typename IntListValueT = Aws::Vector<
int64_t>>
176 m_intListValueHasBeenSet =
true;
177 m_intListValue.push_back(value);
188 template <
typename LongListValueT = Aws::Vector<
long long>>
190 m_longListValueHasBeenSet =
true;
191 m_longListValue = std::forward<LongListValueT>(value);
193 template <
typename LongListValueT = Aws::Vector<
long long>>
199 m_longListValueHasBeenSet =
true;
200 m_longListValue.push_back(value);
211 template <
typename FloatListValueT = Aws::Vector<
double>>
213 m_floatListValueHasBeenSet =
true;
214 m_floatListValue = std::forward<FloatListValueT>(value);
216 template <
typename FloatListValueT = Aws::Vector<
double>>
222 m_floatListValueHasBeenSet =
true;
223 m_floatListValue.push_back(value);
234 template <
typename DoubleListValueT = Aws::Vector<
double>>
236 m_doubleListValueHasBeenSet =
true;
237 m_doubleListValue = std::forward<DoubleListValueT>(value);
239 template <
typename DoubleListValueT = Aws::Vector<
double>>
245 m_doubleListValueHasBeenSet =
true;
246 m_doubleListValue.push_back(value);
257 template <
typename BoolListValueT = Aws::Vector<
bool>>
259 m_boolListValueHasBeenSet =
true;
260 m_boolListValue = std::forward<BoolListValueT>(value);
262 template <
typename BoolListValueT = Aws::Vector<
bool>>
268 m_boolListValueHasBeenSet =
true;
269 m_boolListValue.push_back(value);
276 int64_t m_intValue{0};
278 long long m_longValue{0};
280 bool m_boolValue{
false};
282 double m_floatValue{0.0};
284 double m_doubleValue{0.0};
297 bool m_stringValueHasBeenSet =
false;
298 bool m_intValueHasBeenSet =
false;
299 bool m_longValueHasBeenSet =
false;
300 bool m_boolValueHasBeenSet =
false;
301 bool m_floatValueHasBeenSet =
false;
302 bool m_doubleValueHasBeenSet =
false;
303 bool m_stringListValueHasBeenSet =
false;
304 bool m_intListValueHasBeenSet =
false;
305 bool m_longListValueHasBeenSet =
false;
306 bool m_floatListValueHasBeenSet =
false;
307 bool m_doubleListValueHasBeenSet =
false;
308 bool m_boolListValueHasBeenSet =
false;
bool LongValueHasBeenSet() const
const Aws::String & GetStringValue() const
AnyValue & AddIntListValue(int64_t value)
AnyValue & WithFloatValue(double value)
AnyValue & AddLongListValue(long long value)
AnyValue & AddBoolListValue(bool value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetFloatListValue(FloatListValueT &&value)
void SetLongListValue(LongListValueT &&value)
AnyValue & WithFloatListValue(FloatListValueT &&value)
bool FloatValueHasBeenSet() const
AnyValue & WithDoubleListValue(DoubleListValueT &&value)
AnyValue & WithBoolListValue(BoolListValueT &&value)
AnyValue & WithLongValue(long long value)
double GetFloatValue() const
bool DoubleListValueHasBeenSet() const
AWS_CONTEXT_API AnyValue(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool BoolValueHasBeenSet() const
AnyValue & WithIntListValue(IntListValueT &&value)
void SetIntValue(int64_t value)
AnyValue & WithLongListValue(LongListValueT &&value)
AnyValue & AddFloatListValue(double value)
bool IntValueHasBeenSet() const
bool FloatListValueHasBeenSet() const
const Aws::Vector< bool > & GetBoolListValue() const
AnyValue & WithDoubleValue(double value)
double GetDoubleValue() const
AnyValue & AddStringListValue(StringListValueT &&value)
void SetIntListValue(IntListValueT &&value)
void SetLongValue(long long value)
void SetStringListValue(StringListValueT &&value)
AWS_CONTEXT_API AnyValue & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool StringListValueHasBeenSet() const
const Aws::Vector< double > & GetFloatListValue() const
const Aws::Vector< Aws::String > & GetStringListValue() const
const Aws::Vector< long long > & GetLongListValue() const
bool IntListValueHasBeenSet() const
AnyValue & WithIntValue(int64_t value)
void SetStringValue(StringValueT &&value)
AnyValue & WithStringValue(StringValueT &&value)
AnyValue & AddDoubleListValue(double value)
void SetDoubleListValue(DoubleListValueT &&value)
int64_t GetIntValue() const
void SetFloatValue(double value)
long long GetLongValue() const
void SetBoolValue(bool value)
void SetDoubleValue(double value)
const Aws::Vector< int64_t > & GetIntListValue() const
bool DoubleValueHasBeenSet() const
bool LongListValueHasBeenSet() const
const Aws::Vector< double > & GetDoubleListValue() const
AnyValue & WithBoolValue(bool value)
void SetBoolListValue(BoolListValueT &&value)
bool GetBoolValue() const
bool StringValueHasBeenSet() const
bool BoolListValueHasBeenSet() const
AWS_CONTEXT_API AnyValue()=default
AnyValue & WithStringListValue(StringListValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector