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

commonMain.aws.sdk.kotlin.services.glue.model.GetRegistryResponse.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 GetRegistryResponse private constructor(builder: Builder) {
    /**
     * The date and time the registry was created.
     */
    public val createdTime: kotlin.String? = builder.createdTime
    /**
     * A description of the registry.
     */
    public val description: kotlin.String? = builder.description
    /**
     * 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 status of the registry.
     */
    public val status: aws.sdk.kotlin.services.glue.model.RegistryStatus? = builder.status
    /**
     * The date and time the registry 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.GetRegistryResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetRegistryResponse(")
        append("createdTime=$createdTime,")
        append("description=$description,")
        append("registryArn=$registryArn,")
        append("registryName=$registryName,")
        append("status=$status,")
        append("updatedTime=$updatedTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdTime?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (registryArn?.hashCode() ?: 0)
        result = 31 * result + (registryName?.hashCode() ?: 0)
        result = 31 * result + (status?.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 GetRegistryResponse

        if (createdTime != other.createdTime) return false
        if (description != other.description) return false
        if (registryArn != other.registryArn) return false
        if (registryName != other.registryName) return false
        if (status != other.status) return false
        if (updatedTime != other.updatedTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The date and time the registry was created.
         */
        public var createdTime: kotlin.String? = null
        /**
         * A description of the registry.
         */
        public var description: kotlin.String? = 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 status of the registry.
         */
        public var status: aws.sdk.kotlin.services.glue.model.RegistryStatus? = null
        /**
         * The date and time the registry was updated.
         */
        public var updatedTime: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.GetRegistryResponse) : this() {
            this.createdTime = x.createdTime
            this.description = x.description
            this.registryArn = x.registryArn
            this.registryName = x.registryName
            this.status = x.status
            this.updatedTime = x.updatedTime
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy