
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.ProvisionedCapacityUpdate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafkaconnect.model
/**
* An update to a connector's fixed capacity.
*/
public class ProvisionedCapacityUpdate private constructor(builder: Builder) {
/**
* The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8.
*/
public val mcuCount: kotlin.Int = builder.mcuCount
/**
* The number of workers that are allocated to the connector.
*/
public val workerCount: kotlin.Int = builder.workerCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafkaconnect.model.ProvisionedCapacityUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProvisionedCapacityUpdate(")
append("mcuCount=$mcuCount,")
append("workerCount=$workerCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mcuCount
result = 31 * result + (workerCount)
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 ProvisionedCapacityUpdate
if (mcuCount != other.mcuCount) return false
if (workerCount != other.workerCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.ProvisionedCapacityUpdate = Builder(this).apply(block).build()
public class Builder {
/**
* The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8.
*/
public var mcuCount: kotlin.Int = 0
/**
* The number of workers that are allocated to the connector.
*/
public var workerCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.ProvisionedCapacityUpdate) : this() {
this.mcuCount = x.mcuCount
this.workerCount = x.workerCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.ProvisionedCapacityUpdate = ProvisionedCapacityUpdate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy