/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetSchemaVersionResult { public: AWS_GLUE_API GetSchemaVersionResult(); AWS_GLUE_API GetSchemaVersionResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API GetSchemaVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The SchemaVersionId of the schema version.

*/ inline const Aws::String& GetSchemaVersionId() const{ return m_schemaVersionId; } /** *

The SchemaVersionId of the schema version.

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

The SchemaVersionId of the schema version.

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

The SchemaVersionId of the schema version.

*/ inline void SetSchemaVersionId(const char* value) { m_schemaVersionId.assign(value); } /** *

The SchemaVersionId of the schema version.

*/ inline GetSchemaVersionResult& WithSchemaVersionId(const Aws::String& value) { SetSchemaVersionId(value); return *this;} /** *

The SchemaVersionId of the schema version.

*/ inline GetSchemaVersionResult& WithSchemaVersionId(Aws::String&& value) { SetSchemaVersionId(std::move(value)); return *this;} /** *

The SchemaVersionId of the schema version.

*/ inline GetSchemaVersionResult& WithSchemaVersionId(const char* value) { SetSchemaVersionId(value); return *this;} /** *

The schema definition for the schema ID.

*/ inline const Aws::String& GetSchemaDefinition() const{ return m_schemaDefinition; } /** *

The schema definition for the schema ID.

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

The schema definition for the schema ID.

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

The schema definition for the schema ID.

*/ inline void SetSchemaDefinition(const char* value) { m_schemaDefinition.assign(value); } /** *

The schema definition for the schema ID.

*/ inline GetSchemaVersionResult& WithSchemaDefinition(const Aws::String& value) { SetSchemaDefinition(value); return *this;} /** *

The schema definition for the schema ID.

*/ inline GetSchemaVersionResult& WithSchemaDefinition(Aws::String&& value) { SetSchemaDefinition(std::move(value)); return *this;} /** *

The schema definition for the schema ID.

*/ inline GetSchemaVersionResult& WithSchemaDefinition(const char* value) { SetSchemaDefinition(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 GetSchemaVersionResult& WithDataFormat(const DataFormat& value) { SetDataFormat(value); return *this;} /** *

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

*/ inline GetSchemaVersionResult& WithDataFormat(DataFormat&& value) { SetDataFormat(std::move(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 GetSchemaVersionResult& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the schema.

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

The Amazon Resource Name (ARN) of the schema.

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

The version number of the schema.

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

The version number of the schema.

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

The version number of the schema.

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

The status of the schema version.

*/ inline const SchemaVersionStatus& GetStatus() const{ return m_status; } /** *

The status of the schema version.

*/ inline void SetStatus(const SchemaVersionStatus& value) { m_status = value; } /** *

The status of the schema version.

*/ inline void SetStatus(SchemaVersionStatus&& value) { m_status = std::move(value); } /** *

The status of the schema version.

*/ inline GetSchemaVersionResult& WithStatus(const SchemaVersionStatus& value) { SetStatus(value); return *this;} /** *

The status of the schema version.

*/ inline GetSchemaVersionResult& WithStatus(SchemaVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date and time the schema version was created.

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

The date and time the schema version was created.

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

The date and time the schema version was created.

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

The date and time the schema version was created.

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

The date and time the schema version was created.

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

The date and time the schema version was created.

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

The date and time the schema version was created.

*/ inline GetSchemaVersionResult& WithCreatedTime(const char* value) { SetCreatedTime(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 GetSchemaVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSchemaVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSchemaVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_schemaVersionId; Aws::String m_schemaDefinition; DataFormat m_dataFormat; Aws::String m_schemaArn; long long m_versionNumber; SchemaVersionStatus m_status; Aws::String m_createdTime; Aws::String m_requestId; }; } // namespace Model } // namespace Glue } // namespace Aws