/** * 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 { /** *

A column in a Table.

See Also:

AWS API * Reference

*/ class Column { public: AWS_GLUE_API Column(); AWS_GLUE_API Column(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Column& 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 Column& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the Column.

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

The name of the Column.

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

The data type of the Column.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The data type of the Column.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The data type of the Column.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The data type of the Column.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The data type of the Column.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The data type of the Column.

*/ inline Column& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The data type of the Column.

*/ inline Column& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The data type of the Column.

*/ inline Column& WithType(const char* value) { SetType(value); return *this;} /** *

A free-form text comment.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

A free-form text comment.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A free-form text comment.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A free-form text comment.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A free-form text comment.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

A free-form text comment.

*/ inline Column& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

A free-form text comment.

*/ inline Column& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

A free-form text comment.

*/ inline Column& WithComment(const char* value) { SetComment(value); return *this;} /** *

These key-value pairs define properties associated with the column.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

These key-value pairs define properties associated with the column.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

These key-value pairs define properties associated with the column.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

These key-value pairs define properties associated with the column.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

These key-value pairs define properties associated with the column.

*/ inline Column& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

These key-value pairs define properties associated with the column.

*/ inline Column& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws