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

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

There is a newer version: 1.3.36
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

/**
 * A summary of schema details.
 */
public class SchemaSummary private constructor(builder: Builder) {
    /**
     * 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
    /**
     * Tags associated with the schema.
     */
    public val tags: Map? = builder.tags
    /**
     * The number of versions available for the schema.
     */
    public val versionCount: kotlin.Long? = builder.versionCount

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

    override fun toString(): kotlin.String = buildString {
        append("SchemaSummary(")
        append("lastModified=$lastModified,")
        append("schemaArn=$schemaArn,")
        append("schemaName=$schemaName,")
        append("tags=$tags,")
        append("versionCount=$versionCount")
        append(")")
    }

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

        if (lastModified != other.lastModified) return false
        if (schemaArn != other.schemaArn) return false
        if (schemaName != other.schemaName) return false
        if (tags != other.tags) return false
        if (versionCount != other.versionCount) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * 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
        /**
         * Tags associated with the schema.
         */
        public var tags: Map? = null
        /**
         * The number of versions available for the schema.
         */
        public var versionCount: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.schemas.model.SchemaSummary) : this() {
            this.lastModified = x.lastModified
            this.schemaArn = x.schemaArn
            this.schemaName = x.schemaName
            this.tags = x.tags
            this.versionCount = x.versionCount
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy