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

Specifies a user-defined schema when a schema cannot be determined by * Glue.

See Also:

AWS API * Reference

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

Specifies the column definitions that make up a Glue schema.

*/ inline const Aws::Vector& GetColumns() const{ return m_columns; } /** *

Specifies the column definitions that make up a Glue schema.

*/ inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; } /** *

Specifies the column definitions that make up a Glue schema.

*/ inline void SetColumns(const Aws::Vector& value) { m_columnsHasBeenSet = true; m_columns = value; } /** *

Specifies the column definitions that make up a Glue schema.

*/ inline void SetColumns(Aws::Vector&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); } /** *

Specifies the column definitions that make up a Glue schema.

*/ inline GlueSchema& WithColumns(const Aws::Vector& value) { SetColumns(value); return *this;} /** *

Specifies the column definitions that make up a Glue schema.

*/ inline GlueSchema& WithColumns(Aws::Vector&& value) { SetColumns(std::move(value)); return *this;} /** *

Specifies the column definitions that make up a Glue schema.

*/ inline GlueSchema& AddColumns(const GlueStudioSchemaColumn& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; } /** *

Specifies the column definitions that make up a Glue schema.

*/ inline GlueSchema& AddColumns(GlueStudioSchemaColumn&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; } private: Aws::Vector m_columns; bool m_columnsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws