All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ecr.model.AwsEcrContainerImageDetails.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ecr.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * The image details of the Amazon ECR container image.
 */
public class AwsEcrContainerImageDetails private constructor(builder: Builder) {
    /**
     * The architecture of the Amazon ECR container image.
     */
    public val architecture: kotlin.String? = builder.architecture
    /**
     * The image author of the Amazon ECR container image.
     */
    public val author: kotlin.String? = builder.author
    /**
     * The image hash of the Amazon ECR container image.
     */
    public val imageHash: kotlin.String? = builder.imageHash
    /**
     * The image tags attached to the Amazon ECR container image.
     */
    public val imageTags: List? = builder.imageTags
    /**
     * The platform of the Amazon ECR container image.
     */
    public val platform: kotlin.String? = builder.platform
    /**
     * The date and time the Amazon ECR container image was pushed.
     */
    public val pushedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.pushedAt
    /**
     * The registry the Amazon ECR container image belongs to.
     */
    public val registry: kotlin.String? = builder.registry
    /**
     * The name of the repository the Amazon ECR container image resides in.
     */
    public val repositoryName: kotlin.String? = builder.repositoryName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.AwsEcrContainerImageDetails = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AwsEcrContainerImageDetails(")
        append("architecture=$architecture,")
        append("author=$author,")
        append("imageHash=$imageHash,")
        append("imageTags=$imageTags,")
        append("platform=$platform,")
        append("pushedAt=$pushedAt,")
        append("registry=$registry,")
        append("repositoryName=$repositoryName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = architecture?.hashCode() ?: 0
        result = 31 * result + (author?.hashCode() ?: 0)
        result = 31 * result + (imageHash?.hashCode() ?: 0)
        result = 31 * result + (imageTags?.hashCode() ?: 0)
        result = 31 * result + (platform?.hashCode() ?: 0)
        result = 31 * result + (pushedAt?.hashCode() ?: 0)
        result = 31 * result + (registry?.hashCode() ?: 0)
        result = 31 * result + (repositoryName?.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 AwsEcrContainerImageDetails

        if (architecture != other.architecture) return false
        if (author != other.author) return false
        if (imageHash != other.imageHash) return false
        if (imageTags != other.imageTags) return false
        if (platform != other.platform) return false
        if (pushedAt != other.pushedAt) return false
        if (registry != other.registry) return false
        if (repositoryName != other.repositoryName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.AwsEcrContainerImageDetails = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The architecture of the Amazon ECR container image.
         */
        public var architecture: kotlin.String? = null
        /**
         * The image author of the Amazon ECR container image.
         */
        public var author: kotlin.String? = null
        /**
         * The image hash of the Amazon ECR container image.
         */
        public var imageHash: kotlin.String? = null
        /**
         * The image tags attached to the Amazon ECR container image.
         */
        public var imageTags: List? = null
        /**
         * The platform of the Amazon ECR container image.
         */
        public var platform: kotlin.String? = null
        /**
         * The date and time the Amazon ECR container image was pushed.
         */
        public var pushedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The registry the Amazon ECR container image belongs to.
         */
        public var registry: kotlin.String? = null
        /**
         * The name of the repository the Amazon ECR container image resides in.
         */
        public var repositoryName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ecr.model.AwsEcrContainerImageDetails) : this() {
            this.architecture = x.architecture
            this.author = x.author
            this.imageHash = x.imageHash
            this.imageTags = x.imageTags
            this.platform = x.platform
            this.pushedAt = x.pushedAt
            this.registry = x.registry
            this.repositoryName = x.repositoryName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ecr.model.AwsEcrContainerImageDetails = AwsEcrContainerImageDetails(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy