/** * 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 GetSchemaByDefinitionResult { public: AWS_GLUE_API GetSchemaByDefinitionResult(); AWS_GLUE_API GetSchemaByDefinitionResult(const Aws::AmazonWebServiceResult& result); AWS_GLUE_API GetSchemaByDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The schema ID of the schema version.

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

The schema ID of the schema version.

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

The schema ID of the schema version.

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

The schema ID of the schema version.

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

The schema ID of the schema version.

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

The schema ID of the schema version.

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

The schema ID of the schema version.

*/ inline GetSchemaByDefinitionResult& WithSchemaVersionId(const char* value) { SetSchemaVersionId(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 GetSchemaByDefinitionResult& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the schema.

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

The Amazon Resource Name (ARN) of the schema.

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

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

*/ inline GetSchemaByDefinitionResult& WithDataFormat(DataFormat&& value) { SetDataFormat(std::move(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 GetSchemaByDefinitionResult& WithStatus(const SchemaVersionStatus& value) { SetStatus(value); return *this;} /** *

The status of the schema version.

*/ inline GetSchemaByDefinitionResult& WithStatus(SchemaVersionStatus&& value) { SetStatus(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 GetSchemaByDefinitionResult& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;} /** *

The date and time the schema was created.

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

The date and time the schema was created.

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