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

commonMain.aws.sdk.kotlin.services.auditmanager.model.Url.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.auditmanager.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Short for uniform resource locator. A URL is used as a unique identifier to locate a resource on the internet.
 */
public class Url private constructor(builder: Builder) {
    /**
     * The name or word that's used as a hyperlink to the URL.
     */
    public val hyperlinkName: kotlin.String? = builder.hyperlinkName
    /**
     * The unique identifier for the internet resource.
     */
    public val link: kotlin.String? = builder.link

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

    override fun toString(): kotlin.String = buildString {
        append("Url(")
        append("hyperlinkName=$hyperlinkName,")
        append("link=$link")
        append(")")
    }

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

        if (hyperlinkName != other.hyperlinkName) return false
        if (link != other.link) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name or word that's used as a hyperlink to the URL.
         */
        public var hyperlinkName: kotlin.String? = null
        /**
         * The unique identifier for the internet resource.
         */
        public var link: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.Url) : this() {
            this.hyperlinkName = x.hyperlinkName
            this.link = x.link
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy