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

commonMain.aws.sdk.kotlin.services.ecr.model.DescribeRepositoryCreationTemplatesResponse.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 DescribeRepositoryCreationTemplatesResponse private constructor(builder: Builder) {
    /**
     * The `nextToken` value to include in a future `DescribeRepositoryCreationTemplates` request. When the results of a `DescribeRepositoryCreationTemplates` request exceed `maxResults`, this value can be used to retrieve the next page of results. This value is `null` when there are no more results to return.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The registry ID associated with the request.
     */
    public val registryId: kotlin.String? = builder.registryId
    /**
     * The details of the repository creation templates.
     */
    public val repositoryCreationTemplates: List? = builder.repositoryCreationTemplates

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeRepositoryCreationTemplatesResponse(")
        append("nextToken=$nextToken,")
        append("registryId=$registryId,")
        append("repositoryCreationTemplates=$repositoryCreationTemplates")
        append(")")
    }

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

        if (nextToken != other.nextToken) return false
        if (registryId != other.registryId) return false
        if (repositoryCreationTemplates != other.repositoryCreationTemplates) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The `nextToken` value to include in a future `DescribeRepositoryCreationTemplates` request. When the results of a `DescribeRepositoryCreationTemplates` request exceed `maxResults`, this value can be used to retrieve the next page of results. This value is `null` when there are no more results to return.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The registry ID associated with the request.
         */
        public var registryId: kotlin.String? = null
        /**
         * The details of the repository creation templates.
         */
        public var repositoryCreationTemplates: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy