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

commonMain.aws.sdk.kotlin.services.codegurureviewer.model.DescribeRepositoryAssociationResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codegurureviewer.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeRepositoryAssociationResponse private constructor(builder: Builder) {
    /**
     * Information about the repository association.
     */
    public val repositoryAssociation: aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation? = builder.repositoryAssociation
    /**
     * An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
     * + A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or `Secret`). Tag keys are case sensitive.
     * + An optional field known as a *tag value* (for example, `111122223333`, `Production`, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeRepositoryAssociationResponse(")
        append("repositoryAssociation=$repositoryAssociation,")
        append("tags=$tags")
        append(")")
    }

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

        if (repositoryAssociation != other.repositoryAssociation) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Information about the repository association.
         */
        public var repositoryAssociation: aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation? = null
        /**
         * An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
         * + A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or `Secret`). Tag keys are case sensitive.
         * + An optional field known as a *tag value* (for example, `111122223333`, `Production`, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codegurureviewer.model.DescribeRepositoryAssociationResponse) : this() {
            this.repositoryAssociation = x.repositoryAssociation
            this.tags = x.tags
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy