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

commonMain.aws.sdk.kotlin.services.codeconnections.model.GetSyncConfigurationResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codeconnections.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetSyncConfigurationResponse private constructor(builder: Builder) {
    /**
     * The details about the sync configuration for which you want to retrieve information.
     */
    public val syncConfiguration: aws.sdk.kotlin.services.codeconnections.model.SyncConfiguration? = builder.syncConfiguration

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

    override fun toString(): kotlin.String = buildString {
        append("GetSyncConfigurationResponse(")
        append("syncConfiguration=$syncConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = syncConfiguration?.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 GetSyncConfigurationResponse

        if (syncConfiguration != other.syncConfiguration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The details about the sync configuration for which you want to retrieve information.
         */
        public var syncConfiguration: aws.sdk.kotlin.services.codeconnections.model.SyncConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeconnections.model.GetSyncConfigurationResponse) : this() {
            this.syncConfiguration = x.syncConfiguration
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy