
commonMain.aws.sdk.kotlin.services.kafka.model.RebootBrokerRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafka.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Reboots a node.
*/
public class RebootBrokerRequest private constructor(builder: Builder) {
/**
* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time.
*/
public val brokerIds: List? = builder.brokerIds
/**
* The Amazon Resource Name (ARN) of the cluster to be updated.
*/
public val clusterArn: kotlin.String? = builder.clusterArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.RebootBrokerRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RebootBrokerRequest(")
append("brokerIds=$brokerIds,")
append("clusterArn=$clusterArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = brokerIds?.hashCode() ?: 0
result = 31 * result + (clusterArn?.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 RebootBrokerRequest
if (brokerIds != other.brokerIds) return false
if (clusterArn != other.clusterArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.RebootBrokerRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time.
*/
public var brokerIds: List? = null
/**
* The Amazon Resource Name (ARN) of the cluster to be updated.
*/
public var clusterArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.RebootBrokerRequest) : this() {
this.brokerIds = x.brokerIds
this.clusterArn = x.clusterArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.RebootBrokerRequest = RebootBrokerRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy