
commonMain.aws.sdk.kotlin.services.lightsail.model.ContainerImage.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes a container image that is registered to an Amazon Lightsail container service.
*/
public class ContainerImage private constructor(builder: Builder) {
/**
* The timestamp when the container image was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The digest of the container image.
*/
public val digest: kotlin.String? = builder.digest
/**
* The name of the container image.
*/
public val image: kotlin.String? = builder.image
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.ContainerImage = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ContainerImage(")
append("createdAt=$createdAt,")
append("digest=$digest,")
append("image=$image")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (digest?.hashCode() ?: 0)
result = 31 * result + (image?.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 ContainerImage
if (createdAt != other.createdAt) return false
if (digest != other.digest) return false
if (image != other.image) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.ContainerImage = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp when the container image was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The digest of the container image.
*/
public var digest: kotlin.String? = null
/**
* The name of the container image.
*/
public var image: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.ContainerImage) : this() {
this.createdAt = x.createdAt
this.digest = x.digest
this.image = x.image
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.ContainerImage = ContainerImage(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy