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

commonMain.aws.sdk.kotlin.services.datazone.model.AssetRevision.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.datazone.model

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

/**
 * The revision of an inventory asset.
 */
public class AssetRevision private constructor(builder: Builder) {
    /**
     * The timestamp of when an inventory asset revison was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The Amazon DataZone user who created the asset revision.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The Amazon DataZone user who created the inventory asset.
     */
    public val domainId: kotlin.String? = builder.domainId
    /**
     * The identifier of the inventory asset revision.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The revision details of the inventory asset.
     */
    public val revision: kotlin.String? = builder.revision

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

    override fun toString(): kotlin.String = buildString {
        append("AssetRevision(")
        append("createdAt=$createdAt,")
        append("createdBy=$createdBy,")
        append("domainId=$domainId,")
        append("id=$id,")
        append("revision=$revision")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (createdBy?.hashCode() ?: 0)
        result = 31 * result + (domainId?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (revision?.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 AssetRevision

        if (createdAt != other.createdAt) return false
        if (createdBy != other.createdBy) return false
        if (domainId != other.domainId) return false
        if (id != other.id) return false
        if (revision != other.revision) return false

        return true
    }

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

    public class Builder {
        /**
         * The timestamp of when an inventory asset revison was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon DataZone user who created the asset revision.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The Amazon DataZone user who created the inventory asset.
         */
        public var domainId: kotlin.String? = null
        /**
         * The identifier of the inventory asset revision.
         */
        public var id: kotlin.String? = null
        /**
         * The revision details of the inventory asset.
         */
        public var revision: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.AssetRevision) : this() {
            this.createdAt = x.createdAt
            this.createdBy = x.createdBy
            this.domainId = x.domainId
            this.id = x.id
            this.revision = x.revision
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy