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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

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

/**
 * Detailed data of the sync blocker.
 */
public class SyncBlocker private constructor(builder: Builder) {
    /**
     * The contexts for the sync blocker.
     */
    public val contexts: List? = builder.contexts
    /**
     * The time when the sync blocker was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The reason why the sync blocker was created.
     */
    public val createdReason: kotlin.String? = builder.createdReason
    /**
     * The ID of the sync blocker.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The time the sync blocker was resolved.
     */
    public val resolvedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.resolvedAt
    /**
     * The reason the sync blocker was resolved.
     */
    public val resolvedReason: kotlin.String? = builder.resolvedReason
    /**
     * The status of the sync blocker.
     */
    public val status: aws.sdk.kotlin.services.proton.model.BlockerStatus? = builder.status
    /**
     * The type of the sync blocker.
     */
    public val type: aws.sdk.kotlin.services.proton.model.BlockerType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("SyncBlocker(")
        append("contexts=$contexts,")
        append("createdAt=$createdAt,")
        append("createdReason=$createdReason,")
        append("id=$id,")
        append("resolvedAt=$resolvedAt,")
        append("resolvedReason=$resolvedReason,")
        append("status=$status,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contexts?.hashCode() ?: 0
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (createdReason?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (resolvedAt?.hashCode() ?: 0)
        result = 31 * result + (resolvedReason?.hashCode() ?: 0)
        result = 31 * result + (status?.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 SyncBlocker

        if (contexts != other.contexts) return false
        if (createdAt != other.createdAt) return false
        if (createdReason != other.createdReason) return false
        if (id != other.id) return false
        if (resolvedAt != other.resolvedAt) return false
        if (resolvedReason != other.resolvedReason) return false
        if (status != other.status) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The contexts for the sync blocker.
         */
        public var contexts: List? = null
        /**
         * The time when the sync blocker was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The reason why the sync blocker was created.
         */
        public var createdReason: kotlin.String? = null
        /**
         * The ID of the sync blocker.
         */
        public var id: kotlin.String? = null
        /**
         * The time the sync blocker was resolved.
         */
        public var resolvedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The reason the sync blocker was resolved.
         */
        public var resolvedReason: kotlin.String? = null
        /**
         * The status of the sync blocker.
         */
        public var status: aws.sdk.kotlin.services.proton.model.BlockerStatus? = null
        /**
         * The type of the sync blocker.
         */
        public var type: aws.sdk.kotlin.services.proton.model.BlockerType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.SyncBlocker) : this() {
            this.contexts = x.contexts
            this.createdAt = x.createdAt
            this.createdReason = x.createdReason
            this.id = x.id
            this.resolvedAt = x.resolvedAt
            this.resolvedReason = x.resolvedReason
            this.status = x.status
            this.type = x.type
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy