
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.WorkerConfigurationRevisionDescription.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
/**
* The description of the worker configuration revision.
*/
public class WorkerConfigurationRevisionDescription private constructor(builder: Builder) {
/**
* The time that the worker configuration was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The description of the worker configuration revision.
*/
public val description: kotlin.String? = builder.description
/**
* Base64 encoded contents of the connect-distributed.properties file.
*/
public val propertiesFileContent: kotlin.String? = builder.propertiesFileContent
/**
* The description of a revision of the worker configuration.
*/
public val revision: kotlin.Long = builder.revision
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafkaconnect.model.WorkerConfigurationRevisionDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkerConfigurationRevisionDescription(")
append("creationTime=$creationTime,")
append("description=$description,")
append("propertiesFileContent=*** Sensitive Data Redacted ***,")
append("revision=$revision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (propertiesFileContent?.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 WorkerConfigurationRevisionDescription
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (propertiesFileContent != other.propertiesFileContent) return false
if (revision != other.revision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.WorkerConfigurationRevisionDescription = Builder(this).apply(block).build()
public class Builder {
/**
* The time that the worker configuration was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the worker configuration revision.
*/
public var description: kotlin.String? = null
/**
* Base64 encoded contents of the connect-distributed.properties file.
*/
public var propertiesFileContent: kotlin.String? = null
/**
* The description of a revision of the worker configuration.
*/
public var revision: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.WorkerConfigurationRevisionDescription) : this() {
this.creationTime = x.creationTime
this.description = x.description
this.propertiesFileContent = x.propertiesFileContent
this.revision = x.revision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.WorkerConfigurationRevisionDescription = WorkerConfigurationRevisionDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy