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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateTemplateSyncConfigResponse private constructor(builder: Builder) {
    /**
     * The template sync configuration detail data that's returned by Proton.
     */
    public val templateSyncConfig: aws.sdk.kotlin.services.proton.model.TemplateSyncConfig? = builder.templateSyncConfig

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

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

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

        if (templateSyncConfig != other.templateSyncConfig) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The template sync configuration detail data that's returned by Proton.
         */
        public var templateSyncConfig: aws.sdk.kotlin.services.proton.model.TemplateSyncConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.UpdateTemplateSyncConfigResponse) : this() {
            this.templateSyncConfig = x.templateSyncConfig
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy