
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ImprovementSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* An improvement summary of a lens review in a workload.
*/
public class ImprovementSummary private constructor(builder: Builder) {
/**
* The improvement plan URL for a question in an Amazon Web Services official lenses.
*
* This value is only available if the question has been answered.
*
* This value does not apply to custom lenses.
*/
public val improvementPlanUrl: kotlin.String? = builder.improvementPlanUrl
/**
* The improvement plan details.
*/
public val improvementPlans: List? = builder.improvementPlans
/**
* The ID used to identify a pillar, for example, `security`.
*
* A pillar is identified by its PillarReviewSummary$PillarId.
*/
public val pillarId: kotlin.String? = builder.pillarId
/**
* The ID of the question.
*/
public val questionId: kotlin.String? = builder.questionId
/**
* The title of the question.
*/
public val questionTitle: kotlin.String? = builder.questionTitle
/**
* The risk for a given workload, lens review, pillar, or question.
*/
public val risk: aws.sdk.kotlin.services.wellarchitected.model.Risk? = builder.risk
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ImprovementSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImprovementSummary(")
append("improvementPlanUrl=$improvementPlanUrl,")
append("improvementPlans=$improvementPlans,")
append("pillarId=$pillarId,")
append("questionId=$questionId,")
append("questionTitle=$questionTitle,")
append("risk=$risk")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = improvementPlanUrl?.hashCode() ?: 0
result = 31 * result + (improvementPlans?.hashCode() ?: 0)
result = 31 * result + (pillarId?.hashCode() ?: 0)
result = 31 * result + (questionId?.hashCode() ?: 0)
result = 31 * result + (questionTitle?.hashCode() ?: 0)
result = 31 * result + (risk?.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 ImprovementSummary
if (improvementPlanUrl != other.improvementPlanUrl) return false
if (improvementPlans != other.improvementPlans) return false
if (pillarId != other.pillarId) return false
if (questionId != other.questionId) return false
if (questionTitle != other.questionTitle) return false
if (risk != other.risk) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ImprovementSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The improvement plan URL for a question in an Amazon Web Services official lenses.
*
* This value is only available if the question has been answered.
*
* This value does not apply to custom lenses.
*/
public var improvementPlanUrl: kotlin.String? = null
/**
* The improvement plan details.
*/
public var improvementPlans: List? = null
/**
* The ID used to identify a pillar, for example, `security`.
*
* A pillar is identified by its PillarReviewSummary$PillarId.
*/
public var pillarId: kotlin.String? = null
/**
* The ID of the question.
*/
public var questionId: kotlin.String? = null
/**
* The title of the question.
*/
public var questionTitle: kotlin.String? = null
/**
* The risk for a given workload, lens review, pillar, or question.
*/
public var risk: aws.sdk.kotlin.services.wellarchitected.model.Risk? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ImprovementSummary) : this() {
this.improvementPlanUrl = x.improvementPlanUrl
this.improvementPlans = x.improvementPlans
this.pillarId = x.pillarId
this.questionId = x.questionId
this.questionTitle = x.questionTitle
this.risk = x.risk
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ImprovementSummary = ImprovementSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy