
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.CustomPlugin.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafkaconnect.model
/**
* A plugin is an AWS resource that contains the code that defines a connector's logic.
*/
public class CustomPlugin private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the custom plugin.
*/
public val customPluginArn: kotlin.String = requireNotNull(builder.customPluginArn) { "A non-null value must be provided for 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.CustomPlugin = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomPlugin(")
append("customPluginArn=$customPluginArn,")
append("revision=$revision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = customPluginArn.hashCode()
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 CustomPlugin
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.CustomPlugin = 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.CustomPlugin) : this() {
this.customPluginArn = x.customPluginArn
this.revision = x.revision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.CustomPlugin = CustomPlugin(this)
internal fun correctErrors(): Builder {
if (customPluginArn == null) customPluginArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy