commonMain.aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.model
/**
* The desired instance type and desired number of replicas of each index partition.
*/
public class ScalingParameters private constructor(builder: Builder) {
/**
* The instance type that you want to preconfigure for your domain. For example, `search.m1.small`.
*/
public val desiredInstanceType: aws.sdk.kotlin.services.cloudsearch.model.PartitionInstanceType? = builder.desiredInstanceType
/**
* The number of partitions you want to preconfigure for your domain. Only valid when you select `m2.2xlarge` as the desired instance type.
*/
public val desiredPartitionCount: kotlin.Int = builder.desiredPartitionCount
/**
* The number of replicas you want to preconfigure for each index partition.
*/
public val desiredReplicationCount: kotlin.Int = builder.desiredReplicationCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ScalingParameters(")
append("desiredInstanceType=$desiredInstanceType,")
append("desiredPartitionCount=$desiredPartitionCount,")
append("desiredReplicationCount=$desiredReplicationCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = desiredInstanceType?.hashCode() ?: 0
result = 31 * result + (desiredPartitionCount)
result = 31 * result + (desiredReplicationCount)
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 ScalingParameters
if (desiredInstanceType != other.desiredInstanceType) return false
if (desiredPartitionCount != other.desiredPartitionCount) return false
if (desiredReplicationCount != other.desiredReplicationCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters = Builder(this).apply(block).build()
public class Builder {
/**
* The instance type that you want to preconfigure for your domain. For example, `search.m1.small`.
*/
public var desiredInstanceType: aws.sdk.kotlin.services.cloudsearch.model.PartitionInstanceType? = null
/**
* The number of partitions you want to preconfigure for your domain. Only valid when you select `m2.2xlarge` as the desired instance type.
*/
public var desiredPartitionCount: kotlin.Int = 0
/**
* The number of replicas you want to preconfigure for each index partition.
*/
public var desiredReplicationCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters) : this() {
this.desiredInstanceType = x.desiredInstanceType
this.desiredPartitionCount = x.desiredPartitionCount
this.desiredReplicationCount = x.desiredReplicationCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudsearch.model.ScalingParameters = ScalingParameters(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy