
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransit.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafkaconnect.model
/**
* Details of encryption in transit to the Apache Kafka cluster.
*/
public class KafkaClusterEncryptionInTransit private constructor(builder: Builder) {
/**
* The type of encryption in transit to the Apache Kafka cluster.
*/
public val encryptionType: aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransitType = requireNotNull(builder.encryptionType) { "A non-null value must be provided for encryptionType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransit = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KafkaClusterEncryptionInTransit(")
append("encryptionType=$encryptionType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryptionType.hashCode()
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 KafkaClusterEncryptionInTransit
if (encryptionType != other.encryptionType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransit = Builder(this).apply(block).build()
public class Builder {
/**
* The type of encryption in transit to the Apache Kafka cluster.
*/
public var encryptionType: aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransitType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransit) : this() {
this.encryptionType = x.encryptionType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.KafkaClusterEncryptionInTransit = KafkaClusterEncryptionInTransit(this)
internal fun correctErrors(): Builder {
if (encryptionType == null) encryptionType = KafkaClusterEncryptionInTransitType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy