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

A data value in a column.

See Also:

AWS * API Reference

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

A value of the BLOB data type.

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

A value of the BLOB data type.

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

A value of the BLOB data type.

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

A value of the BLOB data type.

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

A value of the BLOB data type.

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

A value of the BLOB data type.

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

A value of the Boolean data type.

*/ inline bool GetBooleanValue() const{ return m_booleanValue; } /** *

A value of the Boolean data type.

*/ inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; } /** *

A value of the Boolean data type.

*/ inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; } /** *

A value of the Boolean data type.

*/ inline Field& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;} /** *

A value of the double data type.

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

A value of the double data type.

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

A value of the double data type.

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

A value of the double data type.

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

A value that indicates whether the data is NULL.

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

A value that indicates whether the data is NULL.

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

A value that indicates whether the data is NULL.

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

A value that indicates whether the data is NULL.

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

A value of the long data type.

*/ inline long long GetLongValue() const{ return m_longValue; } /** *

A value of the long data type.

*/ inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; } /** *

A value of the long data type.

*/ inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; } /** *

A value of the long data type.

*/ inline Field& WithLongValue(long long value) { SetLongValue(value); return *this;} /** *

A value of the string data type.

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

A value of the string data type.

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

A value of the string data type.

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

A value of the string data type.

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

A value of the string data type.

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

A value of the string data type.

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

A value of the string data type.

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

A value of the string data type.

*/ inline Field& WithStringValue(const char* value) { SetStringValue(value); return *this;} private: Aws::Utils::ByteBuffer m_blobValue; bool m_blobValueHasBeenSet = false; bool m_booleanValue; bool m_booleanValueHasBeenSet = false; double m_doubleValue; bool m_doubleValueHasBeenSet = false; bool m_isNull; bool m_isNullHasBeenSet = false; long long m_longValue; bool m_longValueHasBeenSet = false; Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws