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

commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.PackageVersionHistory.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.elasticsearchservice.model

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

/**
 * Details of a package version.
 */
public class PackageVersionHistory private constructor(builder: Builder) {
    /**
     * A message associated with the version.
     */
    public val commitMessage: kotlin.String? = builder.commitMessage
    /**
     * Timestamp which tells creation time of the package version.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * Version of the package.
     */
    public val packageVersion: kotlin.String? = builder.packageVersion

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

    override fun toString(): kotlin.String = buildString {
        append("PackageVersionHistory(")
        append("commitMessage=$commitMessage,")
        append("createdAt=$createdAt,")
        append("packageVersion=$packageVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = commitMessage?.hashCode() ?: 0
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (packageVersion?.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 PackageVersionHistory

        if (commitMessage != other.commitMessage) return false
        if (createdAt != other.createdAt) return false
        if (packageVersion != other.packageVersion) return false

        return true
    }

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

    public class Builder {
        /**
         * A message associated with the version.
         */
        public var commitMessage: kotlin.String? = null
        /**
         * Timestamp which tells creation time of the package version.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Version of the package.
         */
        public var packageVersion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticsearchservice.model.PackageVersionHistory) : this() {
            this.commitMessage = x.commitMessage
            this.createdAt = x.createdAt
            this.packageVersion = x.packageVersion
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.elasticsearchservice.model.PackageVersionHistory = PackageVersionHistory(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy