commonMain.aws.sdk.kotlin.services.redshift.model.ReferenceLink.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A link to an Amazon Redshift Advisor reference for more information about a recommendation.
*/
public class ReferenceLink private constructor(builder: Builder) {
/**
* The URL address to find more information.
*/
public val link: kotlin.String? = builder.link
/**
* The hyperlink text that describes the link to more information.
*/
public val text: kotlin.String? = builder.text
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ReferenceLink = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReferenceLink(")
append("link=$link,")
append("text=$text")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = link?.hashCode() ?: 0
result = 31 * result + (text?.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 ReferenceLink
if (link != other.link) return false
if (text != other.text) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ReferenceLink = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The URL address to find more information.
*/
public var link: kotlin.String? = null
/**
* The hyperlink text that describes the link to more information.
*/
public var text: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ReferenceLink) : this() {
this.link = x.link
this.text = x.text
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ReferenceLink = ReferenceLink(this)
internal fun correctErrors(): Builder {
return this
}
}
}