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

Contains the value of a column.

 <important>
   * <p>This data type is deprecated.</p> </important>
   * 

See Also:

AWS API * Reference

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

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 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 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 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;} /** *

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 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 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 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 STRUCT data type.

*/ inline const StructValue& GetStructValue() const{ return m_structValue; } /** *

A value for a column of STRUCT data type.

*/ inline bool StructValueHasBeenSet() const { return m_structValueHasBeenSet; } /** *

A value for a column of STRUCT data type.

*/ inline void SetStructValue(const StructValue& value) { m_structValueHasBeenSet = true; m_structValue = value; } /** *

A value for a column of STRUCT data type.

*/ inline void SetStructValue(StructValue&& value) { m_structValueHasBeenSet = true; m_structValue = std::move(value); } /** *

A value for a column of STRUCT data type.

*/ inline Value& WithStructValue(const StructValue& value) { SetStructValue(value); return *this;} /** *

A value for a column of STRUCT data type.

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