commonMain.aws.sdk.kotlin.services.glue.model.GetSchemaResponse.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
The 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 GetSchemaResponse private constructor(builder: Builder) {
/**
* The compatibility mode of the schema.
*/
public val compatibility: aws.sdk.kotlin.services.glue.model.Compatibility? = builder.compatibility
/**
* 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
/**
* A description of schema if specified when created
*/
public val description: kotlin.String? = builder.description
/**
* The latest version of the schema associated with the returned schema definition.
*/
public val latestSchemaVersion: kotlin.Long? = builder.latestSchemaVersion
/**
* The next version of the schema associated with the returned schema definition.
*/
public val nextSchemaVersion: kotlin.Long? = builder.nextSchemaVersion
/**
* The Amazon Resource Name (ARN) of the registry.
*/
public val registryArn: kotlin.String? = builder.registryArn
/**
* The name of the registry.
*/
public val registryName: kotlin.String? = builder.registryName
/**
* The Amazon Resource Name (ARN) of the schema.
*/
public val schemaArn: kotlin.String? = builder.schemaArn
/**
* The version number of the checkpoint (the last time the compatibility mode was changed).
*/
public val schemaCheckpoint: kotlin.Long? = builder.schemaCheckpoint
/**
* The name of the schema.
*/
public val schemaName: kotlin.String? = builder.schemaName
/**
* The status of the schema.
*/
public val schemaStatus: aws.sdk.kotlin.services.glue.model.SchemaStatus? = builder.schemaStatus
/**
* The date and time the schema was updated.
*/
public val updatedTime: kotlin.String? = builder.updatedTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetSchemaResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSchemaResponse(")
append("compatibility=$compatibility,")
append("createdTime=$createdTime,")
append("dataFormat=$dataFormat,")
append("description=$description,")
append("latestSchemaVersion=$latestSchemaVersion,")
append("nextSchemaVersion=$nextSchemaVersion,")
append("registryArn=$registryArn,")
append("registryName=$registryName,")
append("schemaArn=$schemaArn,")
append("schemaCheckpoint=$schemaCheckpoint,")
append("schemaName=$schemaName,")
append("schemaStatus=$schemaStatus,")
append("updatedTime=$updatedTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = compatibility?.hashCode() ?: 0
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (dataFormat?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (latestSchemaVersion?.hashCode() ?: 0)
result = 31 * result + (nextSchemaVersion?.hashCode() ?: 0)
result = 31 * result + (registryArn?.hashCode() ?: 0)
result = 31 * result + (registryName?.hashCode() ?: 0)
result = 31 * result + (schemaArn?.hashCode() ?: 0)
result = 31 * result + (schemaCheckpoint?.hashCode() ?: 0)
result = 31 * result + (schemaName?.hashCode() ?: 0)
result = 31 * result + (schemaStatus?.hashCode() ?: 0)
result = 31 * result + (updatedTime?.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 GetSchemaResponse
if (compatibility != other.compatibility) return false
if (createdTime != other.createdTime) return false
if (dataFormat != other.dataFormat) return false
if (description != other.description) return false
if (latestSchemaVersion != other.latestSchemaVersion) return false
if (nextSchemaVersion != other.nextSchemaVersion) return false
if (registryArn != other.registryArn) return false
if (registryName != other.registryName) return false
if (schemaArn != other.schemaArn) return false
if (schemaCheckpoint != other.schemaCheckpoint) return false
if (schemaName != other.schemaName) return false
if (schemaStatus != other.schemaStatus) return false
if (updatedTime != other.updatedTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetSchemaResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The compatibility mode of the schema.
*/
public var compatibility: aws.sdk.kotlin.services.glue.model.Compatibility? = null
/**
* 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
/**
* A description of schema if specified when created
*/
public var description: kotlin.String? = null
/**
* The latest version of the schema associated with the returned schema definition.
*/
public var latestSchemaVersion: kotlin.Long? = null
/**
* The next version of the schema associated with the returned schema definition.
*/
public var nextSchemaVersion: kotlin.Long? = null
/**
* The Amazon Resource Name (ARN) of the registry.
*/
public var registryArn: kotlin.String? = null
/**
* The name of the registry.
*/
public var registryName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the schema.
*/
public var schemaArn: kotlin.String? = null
/**
* The version number of the checkpoint (the last time the compatibility mode was changed).
*/
public var schemaCheckpoint: kotlin.Long? = null
/**
* The name of the schema.
*/
public var schemaName: kotlin.String? = null
/**
* The status of the schema.
*/
public var schemaStatus: aws.sdk.kotlin.services.glue.model.SchemaStatus? = null
/**
* The date and time the schema was updated.
*/
public var updatedTime: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetSchemaResponse) : this() {
this.compatibility = x.compatibility
this.createdTime = x.createdTime
this.dataFormat = x.dataFormat
this.description = x.description
this.latestSchemaVersion = x.latestSchemaVersion
this.nextSchemaVersion = x.nextSchemaVersion
this.registryArn = x.registryArn
this.registryName = x.registryName
this.schemaArn = x.schemaArn
this.schemaCheckpoint = x.schemaCheckpoint
this.schemaName = x.schemaName
this.schemaStatus = x.schemaStatus
this.updatedTime = x.updatedTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetSchemaResponse = GetSchemaResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}