commonMain.aws.sdk.kotlin.services.glue.model.GetSchemaByDefinitionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetSchemaByDefinitionResponse private constructor(builder: Builder) {
/**
* The date and time the schema 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 ID 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetSchemaByDefinitionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSchemaByDefinitionResponse(")
append("createdTime=$createdTime,")
append("dataFormat=$dataFormat,")
append("schemaArn=$schemaArn,")
append("schemaVersionId=$schemaVersionId,")
append("status=$status")
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 + (schemaVersionId?.hashCode() ?: 0)
result = 31 * result + (status?.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 GetSchemaByDefinitionResponse
if (createdTime != other.createdTime) return false
if (dataFormat != other.dataFormat) return false
if (schemaArn != other.schemaArn) return false
if (schemaVersionId != other.schemaVersionId) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetSchemaByDefinitionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time the schema 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 ID 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetSchemaByDefinitionResponse) : this() {
this.createdTime = x.createdTime
this.dataFormat = x.dataFormat
this.schemaArn = x.schemaArn
this.schemaVersionId = x.schemaVersionId
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetSchemaByDefinitionResponse = GetSchemaByDefinitionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}