/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RDSDataService { namespace Model { class StructValue; /** *

Contains the value of a column.

 <note> <p>This
   * data structure is only used with the deprecated
   * <code>ExecuteSql</code> operation. Use the
   * <code>BatchExecuteStatement</code> or
   * <code>ExecuteStatement</code> operation instead.</p>
   * </note> 

See Also:

AWS API * Reference

*/ class Value { public: AWS_RDSDATASERVICE_API Value(); AWS_RDSDATASERVICE_API Value(Aws::Utils::Json::JsonView jsonValue); AWS_RDSDATASERVICE_API Value& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A NULL value.

*/ inline bool GetIsNull() const{ return m_isNull; } /** *

A NULL value.

*/ inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; } /** *

A NULL value.

*/ inline void SetIsNull(bool value) { m_isNullHasBeenSet = true; m_isNull = value; } /** *

A NULL value.

*/ inline Value& WithIsNull(bool value) { SetIsNull(value); return *this;} /** *

A value for a column of BIT data type.

*/ inline bool GetBitValue() const{ return m_bitValue; } /** *

A value for a column of BIT data type.

*/ inline bool BitValueHasBeenSet() const { return m_bitValueHasBeenSet; } /** *

A value for a column of BIT data type.

*/ inline void SetBitValue(bool value) { m_bitValueHasBeenSet = true; m_bitValue = value; } /** *

A value for a column of BIT data type.

*/ inline Value& WithBitValue(bool value) { SetBitValue(value); return *this;} /** *

A value for a column of big integer data type.

*/ inline long long GetBigIntValue() const{ return m_bigIntValue; } /** *

A value for a column of big integer data type.

*/ inline bool BigIntValueHasBeenSet() const { return m_bigIntValueHasBeenSet; } /** *

A value for a column of big integer data type.

*/ inline void SetBigIntValue(long long value) { m_bigIntValueHasBeenSet = true; m_bigIntValue = value; } /** *

A value for a column of big integer data type.

*/ inline Value& WithBigIntValue(long long value) { SetBigIntValue(value); return *this;} /** *

A value for a column of integer data type.

*/ inline int GetIntValue() const{ return m_intValue; } /** *

A value for a column of integer data type.

*/ inline bool IntValueHasBeenSet() const { return m_intValueHasBeenSet; } /** *

A value for a column of integer data type.

*/ inline void SetIntValue(int value) { m_intValueHasBeenSet = true; m_intValue = value; } /** *

A value for a column of integer data type.

*/ inline Value& WithIntValue(int value) { SetIntValue(value); return *this;} /** *

A value for a column of double data type.

*/ inline double GetDoubleValue() const{ return m_doubleValue; } /** *

A value for a column of double data type.

*/ inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; } /** *

A value for a column of double data type.

*/ inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; } /** *

A value for a column of double data type.

*/ inline Value& WithDoubleValue(double value) { SetDoubleValue(value); return *this;} /** *

A value for a column of real data type.

*/ inline double GetRealValue() const{ return m_realValue; } /** *

A value for a column of real data type.

*/ inline bool RealValueHasBeenSet() const { return m_realValueHasBeenSet; } /** *

A value for a column of real data type.

*/ inline void SetRealValue(double value) { m_realValueHasBeenSet = true; m_realValue = value; } /** *

A value for a column of real data type.

*/ inline Value& WithRealValue(double value) { SetRealValue(value); return *this;} /** *

A value for a column of string data type.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

A value for a column of string data type.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

A value for a column of string data type.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

A value for a column of string data type.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

A value for a column of string data type.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

A value for a column of string data type.

*/ inline Value& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

A value for a column of string data type.

*/ inline Value& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

A value for a column of string data type.

*/ inline Value& WithStringValue(const char* value) { SetStringValue(value); return *this;} /** *

A value for a column of BLOB data type.

*/ inline const Aws::Utils::ByteBuffer& GetBlobValue() const{ return m_blobValue; } /** *

A value for a column of BLOB data type.

*/ inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; } /** *

A value for a column of BLOB data type.

*/ inline void SetBlobValue(const Aws::Utils::ByteBuffer& value) { m_blobValueHasBeenSet = true; m_blobValue = value; } /** *

A value for a column of BLOB data type.

*/ inline void SetBlobValue(Aws::Utils::ByteBuffer&& value) { m_blobValueHasBeenSet = true; m_blobValue = std::move(value); } /** *

A value for a column of BLOB data type.

*/ inline Value& WithBlobValue(const Aws::Utils::ByteBuffer& value) { SetBlobValue(value); return *this;} /** *

A value for a column of BLOB data type.

*/ inline Value& WithBlobValue(Aws::Utils::ByteBuffer&& value) { SetBlobValue(std::move(value)); return *this;} /** *

An array of column values.

*/ inline const Aws::Vector& GetArrayValues() const{ return m_arrayValues; } /** *

An array of column values.

*/ inline bool ArrayValuesHasBeenSet() const { return m_arrayValuesHasBeenSet; } /** *

An array of column values.

*/ inline void SetArrayValues(const Aws::Vector& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = value; } /** *

An array of column values.

*/ inline void SetArrayValues(Aws::Vector&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = std::move(value); } /** *

An array of column values.

*/ inline Value& WithArrayValues(const Aws::Vector& value) { SetArrayValues(value); return *this;} /** *

An array of column values.

*/ inline Value& WithArrayValues(Aws::Vector&& value) { SetArrayValues(std::move(value)); return *this;} /** *

An array of column values.

*/ inline Value& AddArrayValues(const Value& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(value); return *this; } /** *

An array of column values.

*/ inline Value& AddArrayValues(Value&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(std::move(value)); return *this; } /** *

A value for a column of STRUCT data type.

*/ AWS_RDSDATASERVICE_API const StructValue& GetStructValue() const; /** *

A value for a column of STRUCT data type.

*/ AWS_RDSDATASERVICE_API bool StructValueHasBeenSet() const; /** *

A value for a column of STRUCT data type.

*/ AWS_RDSDATASERVICE_API void SetStructValue(const StructValue& value); /** *

A value for a column of STRUCT data type.

*/ AWS_RDSDATASERVICE_API void SetStructValue(StructValue&& value); /** *

A value for a column of STRUCT data type.

*/ AWS_RDSDATASERVICE_API Value& WithStructValue(const StructValue& value); /** *

A value for a column of STRUCT data type.

*/ AWS_RDSDATASERVICE_API Value& WithStructValue(StructValue&& value); private: bool m_isNull; bool m_isNullHasBeenSet = false; bool m_bitValue; bool m_bitValueHasBeenSet = false; long long m_bigIntValue; bool m_bigIntValueHasBeenSet = false; int m_intValue; bool m_intValueHasBeenSet = false; double m_doubleValue; bool m_doubleValueHasBeenSet = false; double m_realValue; bool m_realValueHasBeenSet = false; Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; Aws::Utils::ByteBuffer m_blobValue; bool m_blobValueHasBeenSet = false; Aws::Vector m_arrayValues; bool m_arrayValuesHasBeenSet = false; std::shared_ptr m_structValue; bool m_structValueHasBeenSet = false; }; } // namespace Model } // namespace RDSDataService } // namespace Aws