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