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

commonMain.aws.sdk.kotlin.services.codebuild.model.EnvironmentLanguage.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codebuild.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A set of Docker images that are related by programming language and are managed by CodeBuild.
 */
public class EnvironmentLanguage private constructor(builder: Builder) {
    /**
     * The list of Docker images that are related by the specified programming language.
     */
    public val images: List? = builder.images
    /**
     * The programming language for the Docker images.
     */
    public val language: aws.sdk.kotlin.services.codebuild.model.LanguageType? = builder.language

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

    override fun toString(): kotlin.String = buildString {
        append("EnvironmentLanguage(")
        append("images=$images,")
        append("language=$language")
        append(")")
    }

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

        if (images != other.images) return false
        if (language != other.language) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The list of Docker images that are related by the specified programming language.
         */
        public var images: List? = null
        /**
         * The programming language for the Docker images.
         */
        public var language: aws.sdk.kotlin.services.codebuild.model.LanguageType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.EnvironmentLanguage) : this() {
            this.images = x.images
            this.language = x.language
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy