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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdatePackageGroupOriginConfigurationResponse private constructor(builder: Builder) {
    /**
     * Information about the updated allowed repositories after processing the request.
     */
    public val allowedRepositoryUpdates: Map>>? = builder.allowedRepositoryUpdates
    /**
     * The package group and information about it after processing the request.
     */
    public val packageGroup: aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription? = builder.packageGroup

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePackageGroupOriginConfigurationResponse(")
        append("allowedRepositoryUpdates=$allowedRepositoryUpdates,")
        append("packageGroup=$packageGroup")
        append(")")
    }

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

        if (allowedRepositoryUpdates != other.allowedRepositoryUpdates) return false
        if (packageGroup != other.packageGroup) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Information about the updated allowed repositories after processing the request.
         */
        public var allowedRepositoryUpdates: Map>>? = null
        /**
         * The package group and information about it after processing the request.
         */
        public var packageGroup: aws.sdk.kotlin.services.codeartifact.model.PackageGroupDescription? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.UpdatePackageGroupOriginConfigurationResponse) : this() {
            this.allowedRepositoryUpdates = x.allowedRepositoryUpdates
            this.packageGroup = x.packageGroup
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy