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

commonMain.aws.sdk.kotlin.services.cloudsearch.model.UpdateScalingParametersResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cloudsearch.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The result of a `UpdateScalingParameters` request. Contains the status of the newly-configured scaling parameters.
 */
public class UpdateScalingParametersResponse private constructor(builder: Builder) {
    /**
     * The status and configuration of a search domain's scaling parameters.
     */
    public val scalingParameters: aws.sdk.kotlin.services.cloudsearch.model.ScalingParametersStatus? = builder.scalingParameters

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

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

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

        if (scalingParameters != other.scalingParameters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The status and configuration of a search domain's scaling parameters.
         */
        public var scalingParameters: aws.sdk.kotlin.services.cloudsearch.model.ScalingParametersStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.UpdateScalingParametersResponse) : this() {
            this.scalingParameters = x.scalingParameters
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy