
commonMain.aws.sdk.kotlin.services.kafka.model.UpdateSecurityRequest.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
public class UpdateSecurityRequest private constructor(builder: Builder) {
/**
* Includes all client authentication related information.
*/
public val clientAuthentication: aws.sdk.kotlin.services.kafka.model.ClientAuthentication? = builder.clientAuthentication
/**
* The Amazon Resource Name (ARN) that uniquely identifies the cluster.
*/
public val clusterArn: kotlin.String? = builder.clusterArn
/**
* The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.
*/
public val currentVersion: kotlin.String? = builder.currentVersion
/**
* Includes all encryption-related information.
*/
public val encryptionInfo: aws.sdk.kotlin.services.kafka.model.EncryptionInfo? = builder.encryptionInfo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.UpdateSecurityRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSecurityRequest(")
append("clientAuthentication=$clientAuthentication,")
append("clusterArn=$clusterArn,")
append("currentVersion=$currentVersion,")
append("encryptionInfo=$encryptionInfo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientAuthentication?.hashCode() ?: 0
result = 31 * result + (clusterArn?.hashCode() ?: 0)
result = 31 * result + (currentVersion?.hashCode() ?: 0)
result = 31 * result + (encryptionInfo?.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 UpdateSecurityRequest
if (clientAuthentication != other.clientAuthentication) return false
if (clusterArn != other.clusterArn) return false
if (currentVersion != other.currentVersion) return false
if (encryptionInfo != other.encryptionInfo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.UpdateSecurityRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Includes all client authentication related information.
*/
public var clientAuthentication: aws.sdk.kotlin.services.kafka.model.ClientAuthentication? = null
/**
* The Amazon Resource Name (ARN) that uniquely identifies the cluster.
*/
public var clusterArn: kotlin.String? = null
/**
* The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.
*/
public var currentVersion: kotlin.String? = null
/**
* Includes all encryption-related information.
*/
public var encryptionInfo: aws.sdk.kotlin.services.kafka.model.EncryptionInfo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.UpdateSecurityRequest) : this() {
this.clientAuthentication = x.clientAuthentication
this.clusterArn = x.clusterArn
this.currentVersion = x.currentVersion
this.encryptionInfo = x.encryptionInfo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.UpdateSecurityRequest = UpdateSecurityRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kafka.model.ClientAuthentication] inside the given [block]
*/
public fun clientAuthentication(block: aws.sdk.kotlin.services.kafka.model.ClientAuthentication.Builder.() -> kotlin.Unit) {
this.clientAuthentication = aws.sdk.kotlin.services.kafka.model.ClientAuthentication.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafka.model.EncryptionInfo] inside the given [block]
*/
public fun encryptionInfo(block: aws.sdk.kotlin.services.kafka.model.EncryptionInfo.Builder.() -> kotlin.Unit) {
this.encryptionInfo = aws.sdk.kotlin.services.kafka.model.EncryptionInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy