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