
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary.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
/**
* Details about the revision of a custom plugin.
*/
public class CustomPluginRevisionSummary private constructor(builder: Builder) {
/**
* The format of the plugin file.
*/
public val contentType: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginContentType? = builder.contentType
/**
* The time that the custom plugin was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The description of the custom plugin.
*/
public val description: kotlin.String? = builder.description
/**
* Details about the custom plugin file.
*/
public val fileDescription: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginFileDescription? = builder.fileDescription
/**
* Information about the location of the custom plugin.
*/
public val location: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginLocationDescription? = builder.location
/**
* 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.CustomPluginRevisionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomPluginRevisionSummary(")
append("contentType=$contentType,")
append("creationTime=$creationTime,")
append("description=$description,")
append("fileDescription=$fileDescription,")
append("location=$location,")
append("revision=$revision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = contentType?.hashCode() ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (fileDescription?.hashCode() ?: 0)
result = 31 * result + (location?.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 CustomPluginRevisionSummary
if (contentType != other.contentType) return false
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (fileDescription != other.fileDescription) return false
if (location != other.location) return false
if (revision != other.revision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The format of the plugin file.
*/
public var contentType: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginContentType? = null
/**
* The time that the custom plugin was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the custom plugin.
*/
public var description: kotlin.String? = null
/**
* Details about the custom plugin file.
*/
public var fileDescription: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginFileDescription? = null
/**
* Information about the location of the custom plugin.
*/
public var location: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginLocationDescription? = 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.CustomPluginRevisionSummary) : this() {
this.contentType = x.contentType
this.creationTime = x.creationTime
this.description = x.description
this.fileDescription = x.fileDescription
this.location = x.location
this.revision = x.revision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginRevisionSummary = CustomPluginRevisionSummary(this)
/**
* construct an [aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginFileDescription] inside the given [block]
*/
public fun fileDescription(block: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginFileDescription.Builder.() -> kotlin.Unit) {
this.fileDescription = aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginFileDescription.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginLocationDescription] inside the given [block]
*/
public fun location(block: aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginLocationDescription.Builder.() -> kotlin.Unit) {
this.location = aws.sdk.kotlin.services.kafkaconnect.model.CustomPluginLocationDescription.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy