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

commonMain.aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codestarconnections.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateSyncBlockerRequest private constructor(builder: Builder) {
    /**
     * The ID of the sync blocker to be updated.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The reason for resolving the sync blocker.
     */
    public val resolvedReason: kotlin.String? = builder.resolvedReason
    /**
     * The name of the resource for the sync blocker to be updated.
     */
    public val resourceName: kotlin.String? = builder.resourceName
    /**
     * The sync type of the sync blocker to be updated.
     */
    public val syncType: aws.sdk.kotlin.services.codestarconnections.model.SyncConfigurationType? = builder.syncType

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateSyncBlockerRequest(")
        append("id=$id,")
        append("resolvedReason=$resolvedReason,")
        append("resourceName=$resourceName,")
        append("syncType=$syncType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = id?.hashCode() ?: 0
        result = 31 * result + (resolvedReason?.hashCode() ?: 0)
        result = 31 * result + (resourceName?.hashCode() ?: 0)
        result = 31 * result + (syncType?.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 UpdateSyncBlockerRequest

        if (id != other.id) return false
        if (resolvedReason != other.resolvedReason) return false
        if (resourceName != other.resourceName) return false
        if (syncType != other.syncType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the sync blocker to be updated.
         */
        public var id: kotlin.String? = null
        /**
         * The reason for resolving the sync blocker.
         */
        public var resolvedReason: kotlin.String? = null
        /**
         * The name of the resource for the sync blocker to be updated.
         */
        public var resourceName: kotlin.String? = null
        /**
         * The sync type of the sync blocker to be updated.
         */
        public var syncType: aws.sdk.kotlin.services.codestarconnections.model.SyncConfigurationType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerRequest) : this() {
            this.id = x.id
            this.resolvedReason = x.resolvedReason
            this.resourceName = x.resourceName
            this.syncType = x.syncType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy