
commonMain.aws.sdk.kotlin.services.opensearch.model.PackageVersionHistory.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Details about a package version.
*/
public class PackageVersionHistory private constructor(builder: Builder) {
/**
* A message associated with the package version when it was uploaded.
*/
public val commitMessage: kotlin.String? = builder.commitMessage
/**
* The date and time when the package was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The package version.
*/
public val packageVersion: kotlin.String? = builder.packageVersion
/**
* Additional information about plugin properties if the package is a `ZIP-PLUGIN` package.
*/
public val pluginProperties: aws.sdk.kotlin.services.opensearch.model.PluginProperties? = builder.pluginProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.PackageVersionHistory = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PackageVersionHistory(")
append("commitMessage=$commitMessage,")
append("createdAt=$createdAt,")
append("packageVersion=$packageVersion,")
append("pluginProperties=$pluginProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commitMessage?.hashCode() ?: 0
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (packageVersion?.hashCode() ?: 0)
result = 31 * result + (pluginProperties?.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 PackageVersionHistory
if (commitMessage != other.commitMessage) return false
if (createdAt != other.createdAt) return false
if (packageVersion != other.packageVersion) return false
if (pluginProperties != other.pluginProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.PackageVersionHistory = Builder(this).apply(block).build()
public class Builder {
/**
* A message associated with the package version when it was uploaded.
*/
public var commitMessage: kotlin.String? = null
/**
* The date and time when the package was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The package version.
*/
public var packageVersion: kotlin.String? = null
/**
* Additional information about plugin properties if the package is a `ZIP-PLUGIN` package.
*/
public var pluginProperties: aws.sdk.kotlin.services.opensearch.model.PluginProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.PackageVersionHistory) : this() {
this.commitMessage = x.commitMessage
this.createdAt = x.createdAt
this.packageVersion = x.packageVersion
this.pluginProperties = x.pluginProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.PackageVersionHistory = PackageVersionHistory(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.PluginProperties] inside the given [block]
*/
public fun pluginProperties(block: aws.sdk.kotlin.services.opensearch.model.PluginProperties.Builder.() -> kotlin.Unit) {
this.pluginProperties = aws.sdk.kotlin.services.opensearch.model.PluginProperties.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy