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

Represents a single entry in the list of values for SqlAliases. *

See Also:

AWS API * Reference

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

A table, or a column in a table.

*/ inline const Aws::String& GetFrom() const{ return m_from; } /** *

A table, or a column in a table.

*/ inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } /** *

A table, or a column in a table.

*/ inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; } /** *

A table, or a column in a table.

*/ inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); } /** *

A table, or a column in a table.

*/ inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); } /** *

A table, or a column in a table.

*/ inline SqlAlias& WithFrom(const Aws::String& value) { SetFrom(value); return *this;} /** *

A table, or a column in a table.

*/ inline SqlAlias& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;} /** *

A table, or a column in a table.

*/ inline SqlAlias& WithFrom(const char* value) { SetFrom(value); return *this;} /** *

A temporary name given to a table, or a column in a table.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

A temporary name given to a table, or a column in a table.

*/ inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } /** *

A temporary name given to a table, or a column in a table.

*/ inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } /** *

A temporary name given to a table, or a column in a table.

*/ inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } /** *

A temporary name given to a table, or a column in a table.

*/ inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } /** *

A temporary name given to a table, or a column in a table.

*/ inline SqlAlias& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} /** *

A temporary name given to a table, or a column in a table.

*/ inline SqlAlias& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} /** *

A temporary name given to a table, or a column in a table.

*/ inline SqlAlias& WithAlias(const char* value) { SetAlias(value); return *this;} private: Aws::String m_from; bool m_fromHasBeenSet = false; Aws::String m_alias; bool m_aliasHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws