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

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

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

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



/**
 * Container for the parameters to the `UpdateScalingParameters` operation. Specifies the name of the domain you want to update and the scaling parameters you want to configure.
 */
public class UpdateScalingParametersRequest private constructor(builder: Builder) {
    /**
     * A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The desired instance type and desired number of replicas of each index partition.
     */
    public val scalingParameters: aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters? = builder.scalingParameters

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

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

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * 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 UpdateScalingParametersRequest

        if (domainName != other.domainName) return false
        if (scalingParameters != other.scalingParameters) return false

        return true
    }

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

    public class Builder {
        /**
         * A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
         */
        public var domainName: kotlin.String? = null
        /**
         * The desired instance type and desired number of replicas of each index partition.
         */
        public var scalingParameters: aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters? = null

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy