/** * 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 version of a table.

See Also:

AWS * API Reference

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

The table in question.

*/ inline const Table& GetTable() const{ return m_table; } /** *

The table in question.

*/ inline bool TableHasBeenSet() const { return m_tableHasBeenSet; } /** *

The table in question.

*/ inline void SetTable(const Table& value) { m_tableHasBeenSet = true; m_table = value; } /** *

The table in question.

*/ inline void SetTable(Table&& value) { m_tableHasBeenSet = true; m_table = std::move(value); } /** *

The table in question.

*/ inline TableVersion& WithTable(const Table& value) { SetTable(value); return *this;} /** *

The table in question.

*/ inline TableVersion& WithTable(Table&& value) { SetTable(std::move(value)); return *this;} /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline TableVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline TableVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

The ID value that identifies this table version. A VersionId is * a string representation of an integer. Each version is incremented by 1.

*/ inline TableVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;} private: Table m_table; bool m_tableHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws