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

An object that contains the error details for an operation on a schema * version.

See Also:

AWS * API Reference

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

The version number of the schema.

*/ inline long long GetVersionNumber() const{ return m_versionNumber; } /** *

The version number of the schema.

*/ inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } /** *

The version number of the schema.

*/ inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } /** *

The version number of the schema.

*/ inline SchemaVersionErrorItem& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} /** *

The details of the error for the schema version.

*/ inline const ErrorDetails& GetErrorDetails() const{ return m_errorDetails; } /** *

The details of the error for the schema version.

*/ inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; } /** *

The details of the error for the schema version.

*/ inline void SetErrorDetails(const ErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; } /** *

The details of the error for the schema version.

*/ inline void SetErrorDetails(ErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); } /** *

The details of the error for the schema version.

*/ inline SchemaVersionErrorItem& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;} /** *

The details of the error for the schema version.

*/ inline SchemaVersionErrorItem& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;} private: long long m_versionNumber; bool m_versionNumberHasBeenSet = false; ErrorDetails m_errorDetails; bool m_errorDetailsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws