
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafkaconnect.model
/**
* Details about a custom plugin.
*/
public class CustomPluginDescription private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the custom plugin.
*/
public val customPluginArn: kotlin.String? = builder.customPluginArn
/**
* The revision of the custom plugin.
*/
public val revision: kotlin.Long = builder.revision
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomPluginDescription(")
append("customPluginArn=$customPluginArn,")
append("revision=$revision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = customPluginArn?.hashCode() ?: 0
result = 31 * result + (revision.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 CustomPluginDescription
if (customPluginArn != other.customPluginArn) return false
if (revision != other.revision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginDescription = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the custom plugin.
*/
public var customPluginArn: kotlin.String? = null
/**
* The revision of the custom plugin.
*/
public var revision: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginDescription) : this() {
this.customPluginArn = x.customPluginArn
this.revision = x.revision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginDescription = CustomPluginDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy