
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafkaconnect.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A summary of the custom plugin.
*/
public class CustomPluginSummary private constructor(builder: Builder) {
/**
* The time that the custom plugin was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The Amazon Resource Name (ARN) of 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
/**
* A description of the custom plugin.
*/
public val description: kotlin.String? = builder.description
/**
* The latest revision of the custom plugin.
*/
public val latestRevision: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary? = builder.latestRevision
/**
* The name of the custom plugin.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomPluginSummary(")
append("creationTime=$creationTime,")
append("customPluginArn=$customPluginArn,")
append("customPluginState=$customPluginState,")
append("description=$description,")
append("latestRevision=$latestRevision,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (customPluginArn?.hashCode() ?: 0)
result = 31 * result + (customPluginState?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (latestRevision?.hashCode() ?: 0)
result = 31 * result + (name?.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 CustomPluginSummary
if (creationTime != other.creationTime) return false
if (customPluginArn != other.customPluginArn) return false
if (customPluginState != other.customPluginState) return false
if (description != other.description) return false
if (latestRevision != other.latestRevision) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The time that the custom plugin was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of 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
/**
* A description of the custom plugin.
*/
public var description: kotlin.String? = null
/**
* The latest revision of the custom plugin.
*/
public var latestRevision: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary? = null
/**
* The name of the custom plugin.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginSummary) : this() {
this.creationTime = x.creationTime
this.customPluginArn = x.customPluginArn
this.customPluginState = x.customPluginState
this.description = x.description
this.latestRevision = x.latestRevision
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginSummary = CustomPluginSummary(this)
/**
* construct an [aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary] inside the given [block]
*/
public fun latestRevision(block: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary.Builder.() -> kotlin.Unit) {
this.latestRevision = aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy