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

aws.sdk.kotlin.services.migrationhubrefactorspaces.model.UrlEndpointConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.migrationhubrefactorspaces.model



/**
 * The configuration for the URL endpoint type.
 */
class UrlEndpointConfig private constructor(builder: Builder) {
    /**
     * The health check URL of the URL endpoint type.
     */
    val healthUrl: kotlin.String? = builder.healthUrl
    /**
     * The HTTP URL endpoint.
     */
    val url: kotlin.String? = builder.url

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

    override fun toString(): kotlin.String = buildString {
        append("UrlEndpointConfig(")
        append("healthUrl=$healthUrl,")
        append("url=$url)")
    }

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

        if (healthUrl != other.healthUrl) return false
        if (url != other.url) return false

        return true
    }

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

    class Builder {
        /**
         * The health check URL of the URL endpoint type.
         */
        var healthUrl: kotlin.String? = null
        /**
         * The HTTP URL endpoint.
         */
        var url: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.migrationhubrefactorspaces.model.UrlEndpointConfig) : this() {
            this.healthUrl = x.healthUrl
            this.url = x.url
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.migrationhubrefactorspaces.model.UrlEndpointConfig = UrlEndpointConfig(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy