commonMain.aws.sdk.kotlin.services.codegurusecurity.model.Remediation.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurusecurity.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about how to remediate a finding.
*/
public class Remediation private constructor(builder: Builder) {
/**
* An object that contains information about the recommended course of action to remediate a finding.
*/
public val recommendation: aws.sdk.kotlin.services.codegurusecurity.model.Recommendation? = builder.recommendation
/**
* A list of `SuggestedFix` objects. Each object contains information about a suggested code fix to remediate the finding.
*/
public val suggestedFixes: List? = builder.suggestedFixes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurusecurity.model.Remediation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Remediation(")
append("recommendation=$recommendation,")
append("suggestedFixes=$suggestedFixes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = recommendation?.hashCode() ?: 0
result = 31 * result + (suggestedFixes?.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 Remediation
if (recommendation != other.recommendation) return false
if (suggestedFixes != other.suggestedFixes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurusecurity.model.Remediation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains information about the recommended course of action to remediate a finding.
*/
public var recommendation: aws.sdk.kotlin.services.codegurusecurity.model.Recommendation? = null
/**
* A list of `SuggestedFix` objects. Each object contains information about a suggested code fix to remediate the finding.
*/
public var suggestedFixes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.Remediation) : this() {
this.recommendation = x.recommendation
this.suggestedFixes = x.suggestedFixes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurusecurity.model.Remediation = Remediation(this)
/**
* construct an [aws.sdk.kotlin.services.codegurusecurity.model.Recommendation] inside the given [block]
*/
public fun recommendation(block: aws.sdk.kotlin.services.codegurusecurity.model.Recommendation.Builder.() -> kotlin.Unit) {
this.recommendation = aws.sdk.kotlin.services.codegurusecurity.model.Recommendation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}