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

commonMain.aws.sdk.kotlin.services.codeartifact.model.RepositorySummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codeartifact.model

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

/**
 * Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The [ListRepositories](https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListRepositories.html) operation returns a list of `RepositorySummary` objects.
 */
public class RepositorySummary private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account ID that manages the repository.
     */
    public val administratorAccount: kotlin.String? = builder.administratorAccount
    /**
     * The ARN of the repository.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * A timestamp that represents the date and time the repository was created.
     */
    public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The description of the repository.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the domain that contains the repository.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
     */
    public val domainOwner: kotlin.String? = builder.domainOwner
    /**
     * The name of the repository.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("RepositorySummary(")
        append("administratorAccount=$administratorAccount,")
        append("arn=$arn,")
        append("createdTime=$createdTime,")
        append("description=$description,")
        append("domainName=$domainName,")
        append("domainOwner=$domainOwner,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = administratorAccount?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (createdTime?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (domainName?.hashCode() ?: 0)
        result = 31 * result + (domainOwner?.hashCode() ?: 0)
        result = 31 * result + (name?.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 RepositorySummary

        if (administratorAccount != other.administratorAccount) return false
        if (arn != other.arn) return false
        if (createdTime != other.createdTime) return false
        if (description != other.description) return false
        if (domainName != other.domainName) return false
        if (domainOwner != other.domainOwner) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Web Services account ID that manages the repository.
         */
        public var administratorAccount: kotlin.String? = null
        /**
         * The ARN of the repository.
         */
        public var arn: kotlin.String? = null
        /**
         * A timestamp that represents the date and time the repository was created.
         */
        public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the repository.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the domain that contains the repository.
         */
        public var domainName: kotlin.String? = null
        /**
         * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
         */
        public var domainOwner: kotlin.String? = null
        /**
         * The name of the repository.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.RepositorySummary) : this() {
            this.administratorAccount = x.administratorAccount
            this.arn = x.arn
            this.createdTime = x.createdTime
            this.description = x.description
            this.domainName = x.domainName
            this.domainOwner = x.domainOwner
            this.name = x.name
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy