
commonMain.aws.sdk.kotlin.services.kafka.model.VpcConnectivity.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
/**
* VPC connectivity access control for brokers.
*/
public class VpcConnectivity private constructor(builder: Builder) {
/**
* Includes all client authentication information for VPC connectivity.
*/
public val clientAuthentication: aws.sdk.kotlin.services.kafka.model.VpcConnectivityClientAuthentication? = builder.clientAuthentication
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.VpcConnectivity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcConnectivity(")
append("clientAuthentication=$clientAuthentication")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientAuthentication?.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 VpcConnectivity
if (clientAuthentication != other.clientAuthentication) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.VpcConnectivity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Includes all client authentication information for VPC connectivity.
*/
public var clientAuthentication: aws.sdk.kotlin.services.kafka.model.VpcConnectivityClientAuthentication? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.VpcConnectivity) : this() {
this.clientAuthentication = x.clientAuthentication
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.VpcConnectivity = VpcConnectivity(this)
/**
* construct an [aws.sdk.kotlin.services.kafka.model.VpcConnectivityClientAuthentication] inside the given [block]
*/
public fun clientAuthentication(block: aws.sdk.kotlin.services.kafka.model.VpcConnectivityClientAuthentication.Builder.() -> kotlin.Unit) {
this.clientAuthentication = aws.sdk.kotlin.services.kafka.model.VpcConnectivityClientAuthentication.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy