commonMain.aws.sdk.kotlin.services.codegurusecurity.model.Recommendation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegurusecurity-jvm Show documentation
Show all versions of codegurusecurity-jvm Show documentation
The AWS SDK for Kotlin client for CodeGuru Security
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the recommended course of action to remediate a finding.
*/
public class Recommendation private constructor(builder: Builder) {
/**
* The recommended course of action to remediate the finding.
*/
public val text: kotlin.String? = builder.text
/**
* The URL address to the recommendation for remediating the finding.
*/
public val url: kotlin.String? = builder.url
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurusecurity.model.Recommendation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Recommendation(")
append("text=$text,")
append("url=$url")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = text?.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 Recommendation
if (text != other.text) return false
if (url != other.url) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurusecurity.model.Recommendation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The recommended course of action to remediate the finding.
*/
public var text: kotlin.String? = null
/**
* The URL address to the recommendation for remediating the finding.
*/
public var url: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.Recommendation) : this() {
this.text = x.text
this.url = x.url
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurusecurity.model.Recommendation = Recommendation(this)
internal fun correctErrors(): Builder {
return this
}
}
}