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

commonMain.aws.sdk.kotlin.services.connect.model.DescribeInstanceStorageConfigResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.connect.model



public class DescribeInstanceStorageConfigResponse private constructor(builder: Builder) {
    /**
     * A valid storage type.
     */
    public val storageConfig: aws.sdk.kotlin.services.connect.model.InstanceStorageConfig? = builder.storageConfig

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

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

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

        if (storageConfig != other.storageConfig) return false

        return true
    }

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

    public class Builder {
        /**
         * A valid storage type.
         */
        public var storageConfig: aws.sdk.kotlin.services.connect.model.InstanceStorageConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connect.model.DescribeInstanceStorageConfigResponse) : this() {
            this.storageConfig = x.storageConfig
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy