/** * 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 Glue { namespace Model { /** *

Represents a custom null value such as a zeros or other value being used as a * null placeholder unique to the dataset.

See Also:

AWS * API Reference

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

The value of the null placeholder.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the null placeholder.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the null placeholder.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the null placeholder.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the null placeholder.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the null placeholder.

*/ inline NullValueField& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the null placeholder.

*/ inline NullValueField& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the null placeholder.

*/ inline NullValueField& WithValue(const char* value) { SetValue(value); return *this;} /** *

The datatype of the value.

*/ inline const Datatype& GetDatatype() const{ return m_datatype; } /** *

The datatype of the value.

*/ inline bool DatatypeHasBeenSet() const { return m_datatypeHasBeenSet; } /** *

The datatype of the value.

*/ inline void SetDatatype(const Datatype& value) { m_datatypeHasBeenSet = true; m_datatype = value; } /** *

The datatype of the value.

*/ inline void SetDatatype(Datatype&& value) { m_datatypeHasBeenSet = true; m_datatype = std::move(value); } /** *

The datatype of the value.

*/ inline NullValueField& WithDatatype(const Datatype& value) { SetDatatype(value); return *this;} /** *

The datatype of the value.

*/ inline NullValueField& WithDatatype(Datatype&& value) { SetDatatype(std::move(value)); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; Datatype m_datatype; bool m_datatypeHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws