/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glue { namespace Model { class GetSchemaResult { public: AWS_GLUE_API GetSchemaResult(); AWS_GLUE_API GetSchemaResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API GetSchemaResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the registry.

*/ inline const Aws::String& GetRegistryName() const{ return m_registryName; } /** *

The name of the registry.

*/ inline void SetRegistryName(const Aws::String& value) { m_registryName = value; } /** *

The name of the registry.

*/ inline void SetRegistryName(Aws::String&& value) { m_registryName = std::move(value); } /** *

The name of the registry.

*/ inline void SetRegistryName(const char* value) { m_registryName.assign(value); } /** *

The name of the registry.

*/ inline GetSchemaResult& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;} /** *

The name of the registry.

*/ inline GetSchemaResult& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;} /** *

The name of the registry.

*/ inline GetSchemaResult& WithRegistryName(const char* value) { SetRegistryName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline const Aws::String& GetRegistryArn() const{ return m_registryArn; } /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline void SetRegistryArn(const Aws::String& value) { m_registryArn = value; } /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline void SetRegistryArn(Aws::String&& value) { m_registryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline void SetRegistryArn(const char* value) { m_registryArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline GetSchemaResult& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline GetSchemaResult& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the registry.

*/ inline GetSchemaResult& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;} /** *

The name of the schema.

*/ inline const Aws::String& GetSchemaName() const{ return m_schemaName; } /** *

The name of the schema.

*/ inline void SetSchemaName(const Aws::String& value) { m_schemaName = value; } /** *

The name of the schema.

*/ inline void SetSchemaName(Aws::String&& value) { m_schemaName = std::move(value); } /** *

The name of the schema.

*/ inline void SetSchemaName(const char* value) { m_schemaName.assign(value); } /** *

The name of the schema.

*/ inline GetSchemaResult& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;} /** *

The name of the schema.

*/ inline GetSchemaResult& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;} /** *

The name of the schema.

*/ inline GetSchemaResult& WithSchemaName(const char* value) { SetSchemaName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; } /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline void SetSchemaArn(const Aws::String& value) { m_schemaArn = value; } /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline void SetSchemaArn(Aws::String&& value) { m_schemaArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline void SetSchemaArn(const char* value) { m_schemaArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline GetSchemaResult& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline GetSchemaResult& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the schema.

*/ inline GetSchemaResult& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;} /** *

A description of schema if specified when created

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of schema if specified when created

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

A description of schema if specified when created

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

A description of schema if specified when created

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

A description of schema if specified when created

*/ inline GetSchemaResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of schema if specified when created

*/ inline GetSchemaResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of schema if specified when created

*/ inline GetSchemaResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline const DataFormat& GetDataFormat() const{ return m_dataFormat; } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline void SetDataFormat(const DataFormat& value) { m_dataFormat = value; } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline void SetDataFormat(DataFormat&& value) { m_dataFormat = std::move(value); } /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline GetSchemaResult& WithDataFormat(const DataFormat& value) { SetDataFormat(value); return *this;} /** *

The data format of the schema definition. Currently AVRO, * JSON and PROTOBUF are supported.

*/ inline GetSchemaResult& WithDataFormat(DataFormat&& value) { SetDataFormat(std::move(value)); return *this;} /** *

The compatibility mode of the schema.

*/ inline const Compatibility& GetCompatibility() const{ return m_compatibility; } /** *

The compatibility mode of the schema.

*/ inline void SetCompatibility(const Compatibility& value) { m_compatibility = value; } /** *

The compatibility mode of the schema.

*/ inline void SetCompatibility(Compatibility&& value) { m_compatibility = std::move(value); } /** *

The compatibility mode of the schema.

*/ inline GetSchemaResult& WithCompatibility(const Compatibility& value) { SetCompatibility(value); return *this;} /** *

The compatibility mode of the schema.

*/ inline GetSchemaResult& WithCompatibility(Compatibility&& value) { SetCompatibility(std::move(value)); return *this;} /** *

The version number of the checkpoint (the last time the compatibility mode * was changed).

*/ inline long long GetSchemaCheckpoint() const{ return m_schemaCheckpoint; } /** *

The version number of the checkpoint (the last time the compatibility mode * was changed).

*/ inline void SetSchemaCheckpoint(long long value) { m_schemaCheckpoint = value; } /** *

The version number of the checkpoint (the last time the compatibility mode * was changed).

*/ inline GetSchemaResult& WithSchemaCheckpoint(long long value) { SetSchemaCheckpoint(value); return *this;} /** *

The latest version of the schema associated with the returned schema * definition.

*/ inline long long GetLatestSchemaVersion() const{ return m_latestSchemaVersion; } /** *

The latest version of the schema associated with the returned schema * definition.

*/ inline void SetLatestSchemaVersion(long long value) { m_latestSchemaVersion = value; } /** *

The latest version of the schema associated with the returned schema * definition.

*/ inline GetSchemaResult& WithLatestSchemaVersion(long long value) { SetLatestSchemaVersion(value); return *this;} /** *

The next version of the schema associated with the returned schema * definition.

*/ inline long long GetNextSchemaVersion() const{ return m_nextSchemaVersion; } /** *

The next version of the schema associated with the returned schema * definition.

*/ inline void SetNextSchemaVersion(long long value) { m_nextSchemaVersion = value; } /** *

The next version of the schema associated with the returned schema * definition.

*/ inline GetSchemaResult& WithNextSchemaVersion(long long value) { SetNextSchemaVersion(value); return *this;} /** *

The status of the schema.

*/ inline const SchemaStatus& GetSchemaStatus() const{ return m_schemaStatus; } /** *

The status of the schema.

*/ inline void SetSchemaStatus(const SchemaStatus& value) { m_schemaStatus = value; } /** *

The status of the schema.

*/ inline void SetSchemaStatus(SchemaStatus&& value) { m_schemaStatus = std::move(value); } /** *

The status of the schema.

*/ inline GetSchemaResult& WithSchemaStatus(const SchemaStatus& value) { SetSchemaStatus(value); return *this;} /** *

The status of the schema.

*/ inline GetSchemaResult& WithSchemaStatus(SchemaStatus&& value) { SetSchemaStatus(std::move(value)); return *this;} /** *

The date and time the schema was created.

*/ inline const Aws::String& GetCreatedTime() const{ return m_createdTime; } /** *

The date and time the schema was created.

*/ inline void SetCreatedTime(const Aws::String& value) { m_createdTime = value; } /** *

The date and time the schema was created.

*/ inline void SetCreatedTime(Aws::String&& value) { m_createdTime = std::move(value); } /** *

The date and time the schema was created.

*/ inline void SetCreatedTime(const char* value) { m_createdTime.assign(value); } /** *

The date and time the schema was created.

*/ inline GetSchemaResult& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;} /** *

The date and time the schema was created.

*/ inline GetSchemaResult& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The date and time the schema was created.

*/ inline GetSchemaResult& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;} /** *

The date and time the schema was updated.

*/ inline const Aws::String& GetUpdatedTime() const{ return m_updatedTime; } /** *

The date and time the schema was updated.

*/ inline void SetUpdatedTime(const Aws::String& value) { m_updatedTime = value; } /** *

The date and time the schema was updated.

*/ inline void SetUpdatedTime(Aws::String&& value) { m_updatedTime = std::move(value); } /** *

The date and time the schema was updated.

*/ inline void SetUpdatedTime(const char* value) { m_updatedTime.assign(value); } /** *

The date and time the schema was updated.

*/ inline GetSchemaResult& WithUpdatedTime(const Aws::String& value) { SetUpdatedTime(value); return *this;} /** *

The date and time the schema was updated.

*/ inline GetSchemaResult& WithUpdatedTime(Aws::String&& value) { SetUpdatedTime(std::move(value)); return *this;} /** *

The date and time the schema was updated.

*/ inline GetSchemaResult& WithUpdatedTime(const char* value) { SetUpdatedTime(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSchemaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSchemaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSchemaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_registryName; Aws::String m_registryArn; Aws::String m_schemaName; Aws::String m_schemaArn; Aws::String m_description; DataFormat m_dataFormat; Compatibility m_compatibility; long long m_schemaCheckpoint; long long m_latestSchemaVersion; long long m_nextSchemaVersion; SchemaStatus m_schemaStatus; Aws::String m_createdTime; Aws::String m_updatedTime; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws