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

Specifies a transform that removes columns from the dataset if all values in * the column are 'null'. By default, Glue Studio will recognize null objects, but * some values such as empty strings, strings that are "null", -1 integers or other * placeholders such as zeros, are not automatically recognized as * nulls.

See Also:

AWS * API Reference

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

The name of the transform node.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the transform node.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the transform node.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the transform node.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the transform node.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the transform node.

*/ inline DropNullFields& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the transform node.

*/ inline DropNullFields& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the transform node.

*/ inline DropNullFields& WithName(const char* value) { SetName(value); return *this;} /** *

The data inputs identified by their node names.

*/ inline const Aws::Vector& GetInputs() const{ return m_inputs; } /** *

The data inputs identified by their node names.

*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *

The data inputs identified by their node names.

*/ inline void SetInputs(const Aws::Vector& value) { m_inputsHasBeenSet = true; m_inputs = value; } /** *

The data inputs identified by their node names.

*/ inline void SetInputs(Aws::Vector&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); } /** *

The data inputs identified by their node names.

*/ inline DropNullFields& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;} /** *

The data inputs identified by their node names.

*/ inline DropNullFields& WithInputs(Aws::Vector&& value) { SetInputs(std::move(value)); return *this;} /** *

The data inputs identified by their node names.

*/ inline DropNullFields& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The data inputs identified by their node names.

*/ inline DropNullFields& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; } /** *

The data inputs identified by their node names.

*/ inline DropNullFields& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

A structure that represents whether certain values are recognized as null * values for removal.

*/ inline const NullCheckBoxList& GetNullCheckBoxList() const{ return m_nullCheckBoxList; } /** *

A structure that represents whether certain values are recognized as null * values for removal.

*/ inline bool NullCheckBoxListHasBeenSet() const { return m_nullCheckBoxListHasBeenSet; } /** *

A structure that represents whether certain values are recognized as null * values for removal.

*/ inline void SetNullCheckBoxList(const NullCheckBoxList& value) { m_nullCheckBoxListHasBeenSet = true; m_nullCheckBoxList = value; } /** *

A structure that represents whether certain values are recognized as null * values for removal.

*/ inline void SetNullCheckBoxList(NullCheckBoxList&& value) { m_nullCheckBoxListHasBeenSet = true; m_nullCheckBoxList = std::move(value); } /** *

A structure that represents whether certain values are recognized as null * values for removal.

*/ inline DropNullFields& WithNullCheckBoxList(const NullCheckBoxList& value) { SetNullCheckBoxList(value); return *this;} /** *

A structure that represents whether certain values are recognized as null * values for removal.

*/ inline DropNullFields& WithNullCheckBoxList(NullCheckBoxList&& value) { SetNullCheckBoxList(std::move(value)); return *this;} /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline const Aws::Vector& GetNullTextList() const{ return m_nullTextList; } /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline bool NullTextListHasBeenSet() const { return m_nullTextListHasBeenSet; } /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline void SetNullTextList(const Aws::Vector& value) { m_nullTextListHasBeenSet = true; m_nullTextList = value; } /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline void SetNullTextList(Aws::Vector&& value) { m_nullTextListHasBeenSet = true; m_nullTextList = std::move(value); } /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline DropNullFields& WithNullTextList(const Aws::Vector& value) { SetNullTextList(value); return *this;} /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline DropNullFields& WithNullTextList(Aws::Vector&& value) { SetNullTextList(std::move(value)); return *this;} /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline DropNullFields& AddNullTextList(const NullValueField& value) { m_nullTextListHasBeenSet = true; m_nullTextList.push_back(value); return *this; } /** *

A structure that specifies a list of NullValueField structures that represent * a custom null value such as zero or other value being used as a null placeholder * unique to the dataset.

The DropNullFields transform removes * custom null values only if both the value of the null placeholder and the * datatype match the data.

*/ inline DropNullFields& AddNullTextList(NullValueField&& value) { m_nullTextListHasBeenSet = true; m_nullTextList.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; NullCheckBoxList m_nullCheckBoxList; bool m_nullCheckBoxListHasBeenSet = false; Aws::Vector m_nullTextList; bool m_nullTextListHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws