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

commonMain.aws.sdk.kotlin.services.codecatalyst.model.Ide.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.codecatalyst.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about an integrated development environment (IDE) used in a Dev Environment.
 */
public class Ide private constructor(builder: Builder) {
    /**
     * The name of the IDE.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A link to the IDE runtime image.
     */
    public val runtime: kotlin.String? = builder.runtime

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

    override fun toString(): kotlin.String = buildString {
        append("Ide(")
        append("name=$name,")
        append("runtime=$runtime")
        append(")")
    }

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

        if (name != other.name) return false
        if (runtime != other.runtime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the IDE.
         */
        public var name: kotlin.String? = null
        /**
         * A link to the IDE runtime image.
         */
        public var runtime: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codecatalyst.model.Ide) : this() {
            this.name = x.name
            this.runtime = x.runtime
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy