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

commonMain.aws.sdk.kotlin.services.wafv2.model.ReleaseSummary.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.wafv2.model

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

/**
 * High level information for an SDK release.
 */
public class ReleaseSummary private constructor(builder: Builder) {
    /**
     * The release version.
     */
    public val releaseVersion: kotlin.String? = builder.releaseVersion
    /**
     * The timestamp of the release.
     */
    public val timestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.timestamp

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

    override fun toString(): kotlin.String = buildString {
        append("ReleaseSummary(")
        append("releaseVersion=$releaseVersion,")
        append("timestamp=$timestamp")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = releaseVersion?.hashCode() ?: 0
        result = 31 * result + (timestamp?.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 ReleaseSummary

        if (releaseVersion != other.releaseVersion) return false
        if (timestamp != other.timestamp) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The release version.
         */
        public var releaseVersion: kotlin.String? = null
        /**
         * The timestamp of the release.
         */
        public var timestamp: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wafv2.model.ReleaseSummary) : this() {
            this.releaseVersion = x.releaseVersion
            this.timestamp = x.timestamp
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy