All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.GetSchemaVersionResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetSchemaVersionResponse private constructor(builder: Builder) {
    /**
     * The date and time the schema version was created.
     */
    public val createdTime: kotlin.String? = builder.createdTime
    /**
     * The data format of the schema definition. Currently `AVRO`, `JSON` and `PROTOBUF` are supported.
     */
    public val dataFormat: aws.sdk.kotlin.services.glue.model.DataFormat? = builder.dataFormat
    /**
     * The Amazon Resource Name (ARN) of the schema.
     */
    public val schemaArn: kotlin.String? = builder.schemaArn
    /**
     * The schema definition for the schema ID.
     */
    public val schemaDefinition: kotlin.String? = builder.schemaDefinition
    /**
     * The `SchemaVersionId` of the schema version.
     */
    public val schemaVersionId: kotlin.String? = builder.schemaVersionId
    /**
     * The status of the schema version.
     */
    public val status: aws.sdk.kotlin.services.glue.model.SchemaVersionStatus? = builder.status
    /**
     * The version number of the schema.
     */
    public val versionNumber: kotlin.Long? = builder.versionNumber

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetSchemaVersionResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetSchemaVersionResponse(")
        append("createdTime=$createdTime,")
        append("dataFormat=$dataFormat,")
        append("schemaArn=$schemaArn,")
        append("schemaDefinition=$schemaDefinition,")
        append("schemaVersionId=$schemaVersionId,")
        append("status=$status,")
        append("versionNumber=$versionNumber")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdTime?.hashCode() ?: 0
        result = 31 * result + (dataFormat?.hashCode() ?: 0)
        result = 31 * result + (schemaArn?.hashCode() ?: 0)
        result = 31 * result + (schemaDefinition?.hashCode() ?: 0)
        result = 31 * result + (schemaVersionId?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (versionNumber?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as GetSchemaVersionResponse

        if (createdTime != other.createdTime) return false
        if (dataFormat != other.dataFormat) return false
        if (schemaArn != other.schemaArn) return false
        if (schemaDefinition != other.schemaDefinition) return false
        if (schemaVersionId != other.schemaVersionId) return false
        if (status != other.status) return false
        if (versionNumber != other.versionNumber) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetSchemaVersionResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The date and time the schema version was created.
         */
        public var createdTime: kotlin.String? = null
        /**
         * The data format of the schema definition. Currently `AVRO`, `JSON` and `PROTOBUF` are supported.
         */
        public var dataFormat: aws.sdk.kotlin.services.glue.model.DataFormat? = null
        /**
         * The Amazon Resource Name (ARN) of the schema.
         */
        public var schemaArn: kotlin.String? = null
        /**
         * The schema definition for the schema ID.
         */
        public var schemaDefinition: kotlin.String? = null
        /**
         * The `SchemaVersionId` of the schema version.
         */
        public var schemaVersionId: kotlin.String? = null
        /**
         * The status of the schema version.
         */
        public var status: aws.sdk.kotlin.services.glue.model.SchemaVersionStatus? = null
        /**
         * The version number of the schema.
         */
        public var versionNumber: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.GetSchemaVersionResponse) : this() {
            this.createdTime = x.createdTime
            this.dataFormat = x.dataFormat
            this.schemaArn = x.schemaArn
            this.schemaDefinition = x.schemaDefinition
            this.schemaVersionId = x.schemaVersionId
            this.status = x.status
            this.versionNumber = x.versionNumber
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.GetSchemaVersionResponse = GetSchemaVersionResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy