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

commonMain.aws.sdk.kotlin.services.proton.model.RepositorySyncEvent.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.proton.model

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

/**
 * Repository sync event detail data for a sync attempt.
 */
public class RepositorySyncEvent private constructor(builder: Builder) {
    /**
     * Event detail for a repository sync attempt.
     */
    public val event: kotlin.String? = builder.event
    /**
     * The external ID of the sync event.
     */
    public val externalId: kotlin.String? = builder.externalId
    /**
     * The time that the sync event occurred.
     */
    public val time: aws.smithy.kotlin.runtime.time.Instant? = builder.time
    /**
     * The type of event.
     */
    public val type: kotlin.String? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("RepositorySyncEvent(")
        append("event=$event,")
        append("externalId=$externalId,")
        append("time=$time,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = event?.hashCode() ?: 0
        result = 31 * result + (externalId?.hashCode() ?: 0)
        result = 31 * result + (time?.hashCode() ?: 0)
        result = 31 * result + (type?.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 RepositorySyncEvent

        if (event != other.event) return false
        if (externalId != other.externalId) return false
        if (time != other.time) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * Event detail for a repository sync attempt.
         */
        public var event: kotlin.String? = null
        /**
         * The external ID of the sync event.
         */
        public var externalId: kotlin.String? = null
        /**
         * The time that the sync event occurred.
         */
        public var time: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The type of event.
         */
        public var type: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.RepositorySyncEvent) : this() {
            this.event = x.event
            this.externalId = x.externalId
            this.time = x.time
            this.type = x.type
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy