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

commonMain.aws.sdk.kotlin.services.schemas.model.UpdateSchemaResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.schemas.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class UpdateSchemaResponse private constructor(builder: Builder) {
    /**
     * The description of the schema.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The date and time that schema was modified.
     */
    public val lastModified: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModified
    /**
     * The ARN of the schema.
     */
    public val schemaArn: kotlin.String? = builder.schemaArn
    /**
     * The name of the schema.
     */
    public val schemaName: kotlin.String? = builder.schemaName
    /**
     * The version number of the schema
     */
    public val schemaVersion: kotlin.String? = builder.schemaVersion
    /**
     * Key-value pairs associated with a resource.
     */
    public val tags: Map? = builder.tags
    /**
     * The type of the schema.
     */
    public val type: kotlin.String? = builder.type
    /**
     * The date the schema version was created.
     */
    public val versionCreatedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.versionCreatedDate

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateSchemaResponse(")
        append("description=$description,")
        append("lastModified=$lastModified,")
        append("schemaArn=$schemaArn,")
        append("schemaName=$schemaName,")
        append("schemaVersion=$schemaVersion,")
        append("tags=$tags,")
        append("type=$type,")
        append("versionCreatedDate=$versionCreatedDate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (lastModified?.hashCode() ?: 0)
        result = 31 * result + (schemaArn?.hashCode() ?: 0)
        result = 31 * result + (schemaName?.hashCode() ?: 0)
        result = 31 * result + (schemaVersion?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (type?.hashCode() ?: 0)
        result = 31 * result + (versionCreatedDate?.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 UpdateSchemaResponse

        if (description != other.description) return false
        if (lastModified != other.lastModified) return false
        if (schemaArn != other.schemaArn) return false
        if (schemaName != other.schemaName) return false
        if (schemaVersion != other.schemaVersion) return false
        if (tags != other.tags) return false
        if (type != other.type) return false
        if (versionCreatedDate != other.versionCreatedDate) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The description of the schema.
         */
        public var description: kotlin.String? = null
        /**
         * The date and time that schema was modified.
         */
        public var lastModified: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN of the schema.
         */
        public var schemaArn: kotlin.String? = null
        /**
         * The name of the schema.
         */
        public var schemaName: kotlin.String? = null
        /**
         * The version number of the schema
         */
        public var schemaVersion: kotlin.String? = null
        /**
         * Key-value pairs associated with a resource.
         */
        public var tags: Map? = null
        /**
         * The type of the schema.
         */
        public var type: kotlin.String? = null
        /**
         * The date the schema version was created.
         */
        public var versionCreatedDate: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.schemas.model.UpdateSchemaResponse) : this() {
            this.description = x.description
            this.lastModified = x.lastModified
            this.schemaArn = x.schemaArn
            this.schemaName = x.schemaName
            this.schemaVersion = x.schemaVersion
            this.tags = x.tags
            this.type = x.type
            this.versionCreatedDate = x.versionCreatedDate
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy