
commonMain.aws.sdk.kotlin.services.kafka.model.ServerlessRequest.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
/**
* Serverless cluster request.
*/
public class ServerlessRequest private constructor(builder: Builder) {
/**
* Includes all client authentication information.
*/
public val clientAuthentication: aws.sdk.kotlin.services.kafka.model.ServerlessClientAuthentication? = builder.clientAuthentication
/**
* The configuration of the Amazon VPCs for the cluster.
*/
public val vpcConfigs: List? = builder.vpcConfigs
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.ServerlessRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServerlessRequest(")
append("clientAuthentication=$clientAuthentication,")
append("vpcConfigs=$vpcConfigs")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientAuthentication?.hashCode() ?: 0
result = 31 * result + (vpcConfigs?.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 ServerlessRequest
if (clientAuthentication != other.clientAuthentication) return false
if (vpcConfigs != other.vpcConfigs) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.ServerlessRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Includes all client authentication information.
*/
public var clientAuthentication: aws.sdk.kotlin.services.kafka.model.ServerlessClientAuthentication? = null
/**
* The configuration of the Amazon VPCs for the cluster.
*/
public var vpcConfigs: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.ServerlessRequest) : this() {
this.clientAuthentication = x.clientAuthentication
this.vpcConfigs = x.vpcConfigs
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.ServerlessRequest = ServerlessRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kafka.model.ServerlessClientAuthentication] inside the given [block]
*/
public fun clientAuthentication(block: aws.sdk.kotlin.services.kafka.model.ServerlessClientAuthentication.Builder.() -> kotlin.Unit) {
this.clientAuthentication = aws.sdk.kotlin.services.kafka.model.ServerlessClientAuthentication.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy