/** * 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 structure that defines an Apache Iceberg metadata table to create in the * catalog.

See Also:

AWS * API Reference

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

A required metadata operation. Can only be set to CREATE.

*/ inline const MetadataOperation& GetMetadataOperation() const{ return m_metadataOperation; } /** *

A required metadata operation. Can only be set to CREATE.

*/ inline bool MetadataOperationHasBeenSet() const { return m_metadataOperationHasBeenSet; } /** *

A required metadata operation. Can only be set to CREATE.

*/ inline void SetMetadataOperation(const MetadataOperation& value) { m_metadataOperationHasBeenSet = true; m_metadataOperation = value; } /** *

A required metadata operation. Can only be set to CREATE.

*/ inline void SetMetadataOperation(MetadataOperation&& value) { m_metadataOperationHasBeenSet = true; m_metadataOperation = std::move(value); } /** *

A required metadata operation. Can only be set to CREATE.

*/ inline IcebergInput& WithMetadataOperation(const MetadataOperation& value) { SetMetadataOperation(value); return *this;} /** *

A required metadata operation. Can only be set to CREATE.

*/ inline IcebergInput& WithMetadataOperation(MetadataOperation&& value) { SetMetadataOperation(std::move(value)); return *this;} /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline IcebergInput& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline IcebergInput& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The table version for the Iceberg table. Defaults to 2.

*/ inline IcebergInput& WithVersion(const char* value) { SetVersion(value); return *this;} private: MetadataOperation m_metadataOperation; bool m_metadataOperationHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws