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

commonMain.aws.sdk.kotlin.services.ecr.model.UpdateRepositoryCreationTemplateResponse.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.SdkDsl

public class UpdateRepositoryCreationTemplateResponse private constructor(builder: Builder) {
    /**
     * The registry ID associated with the request.
     */
    public val registryId: kotlin.String? = builder.registryId
    /**
     * The details of the repository creation template associated with the request.
     */
    public val repositoryCreationTemplate: aws.sdk.kotlin.services.ecr.model.RepositoryCreationTemplate? = builder.repositoryCreationTemplate

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateRepositoryCreationTemplateResponse(")
        append("registryId=$registryId,")
        append("repositoryCreationTemplate=$repositoryCreationTemplate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = registryId?.hashCode() ?: 0
        result = 31 * result + (repositoryCreationTemplate?.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 UpdateRepositoryCreationTemplateResponse

        if (registryId != other.registryId) return false
        if (repositoryCreationTemplate != other.repositoryCreationTemplate) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The registry ID associated with the request.
         */
        public var registryId: kotlin.String? = null
        /**
         * The details of the repository creation template associated with the request.
         */
        public var repositoryCreationTemplate: aws.sdk.kotlin.services.ecr.model.RepositoryCreationTemplate? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ecr.model.UpdateRepositoryCreationTemplateResponse) : this() {
            this.registryId = x.registryId
            this.repositoryCreationTemplate = x.repositoryCreationTemplate
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.ecr.model.RepositoryCreationTemplate] inside the given [block]
         */
        public fun repositoryCreationTemplate(block: aws.sdk.kotlin.services.ecr.model.RepositoryCreationTemplate.Builder.() -> kotlin.Unit) {
            this.repositoryCreationTemplate = aws.sdk.kotlin.services.ecr.model.RepositoryCreationTemplate.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy