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

A key-value pair representing a column and data type that this transform can * run against. The Schema parameter of the MLTransform * may contain up to 100 of these structures.

See Also:

AWS * API Reference

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

The name of the column.

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

The name of the column.

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

The name of the column.

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

The name of the column.

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

The name of the column.

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

The name of the column.

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

The name of the column.

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

The name of the column.

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

The type of data in the column.

*/ inline const Aws::String& GetDataType() const{ return m_dataType; } /** *

The type of data in the column.

*/ inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; } /** *

The type of data in the column.

*/ inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } /** *

The type of data in the column.

*/ inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); } /** *

The type of data in the column.

*/ inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); } /** *

The type of data in the column.

*/ inline SchemaColumn& WithDataType(const Aws::String& value) { SetDataType(value); return *this;} /** *

The type of data in the column.

*/ inline SchemaColumn& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;} /** *

The type of data in the column.

*/ inline SchemaColumn& WithDataType(const char* value) { SetDataType(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_dataType; bool m_dataTypeHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws