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

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iottwinmaker.model

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

/**
 * The sync resource summary.
 */
public class SyncResourceSummary private constructor(builder: Builder) {
    /**
     * The external ID.
     */
    public val externalId: kotlin.String? = builder.externalId
    /**
     * The resource ID.
     */
    public val resourceId: kotlin.String? = builder.resourceId
    /**
     * The resource type.
     */
    public val resourceType: aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceType? = builder.resourceType
    /**
     * The sync resource summary status.
     */
    public val status: aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceStatus? = builder.status
    /**
     * The update date and time.
     */
    public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.updateDateTime

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

    override fun toString(): kotlin.String = buildString {
        append("SyncResourceSummary(")
        append("externalId=$externalId,")
        append("resourceId=$resourceId,")
        append("resourceType=$resourceType,")
        append("status=$status,")
        append("updateDateTime=$updateDateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = externalId?.hashCode() ?: 0
        result = 31 * result + (resourceId?.hashCode() ?: 0)
        result = 31 * result + (resourceType?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updateDateTime?.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 SyncResourceSummary

        if (externalId != other.externalId) return false
        if (resourceId != other.resourceId) return false
        if (resourceType != other.resourceType) return false
        if (status != other.status) return false
        if (updateDateTime != other.updateDateTime) return false

        return true
    }

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

    public class Builder {
        /**
         * The external ID.
         */
        public var externalId: kotlin.String? = null
        /**
         * The resource ID.
         */
        public var resourceId: kotlin.String? = null
        /**
         * The resource type.
         */
        public var resourceType: aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceType? = null
        /**
         * The sync resource summary status.
         */
        public var status: aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceStatus? = null
        /**
         * The update date and time.
         */
        public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceSummary) : this() {
            this.externalId = x.externalId
            this.resourceId = x.resourceId
            this.resourceType = x.resourceType
            this.status = x.status
            this.updateDateTime = x.updateDateTime
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceStatus] inside the given [block]
         */
        public fun status(block: aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceStatus.Builder.() -> kotlin.Unit) {
            this.status = aws.sdk.kotlin.services.iottwinmaker.model.SyncResourceStatus.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy