
commonMain.aws.sdk.kotlin.services.ecr.model.Remediation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information on 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 the finding.
*/
public val recommendation: aws.sdk.kotlin.services.ecr.model.Recommendation? = builder.recommendation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.Remediation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Remediation(")
append("recommendation=$recommendation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = recommendation?.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
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.Remediation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains information about the recommended course of action to remediate the finding.
*/
public var recommendation: aws.sdk.kotlin.services.ecr.model.Recommendation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.Remediation) : this() {
this.recommendation = x.recommendation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.Remediation = Remediation(this)
/**
* construct an [aws.sdk.kotlin.services.ecr.model.Recommendation] inside the given [block]
*/
public fun recommendation(block: aws.sdk.kotlin.services.ecr.model.Recommendation.Builder.() -> kotlin.Unit) {
this.recommendation = aws.sdk.kotlin.services.ecr.model.Recommendation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy