
commonMain.aws.sdk.kotlin.services.wellarchitected.model.PillarReviewSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* A pillar review summary of a lens review.
*/
public class PillarReviewSummary private constructor(builder: Builder) {
/**
* The notes associated with the workload.
*/
public val notes: kotlin.String? = builder.notes
/**
* 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 name of the pillar.
*/
public val pillarName: kotlin.String? = builder.pillarName
/**
* A map from risk names to the count of how many questions have that rating.
*/
public val prioritizedRiskCounts: Map? = builder.prioritizedRiskCounts
/**
* A map from risk names to the count of how many questions have that rating.
*/
public val riskCounts: Map? = builder.riskCounts
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.PillarReviewSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PillarReviewSummary(")
append("notes=$notes,")
append("pillarId=$pillarId,")
append("pillarName=$pillarName,")
append("prioritizedRiskCounts=$prioritizedRiskCounts,")
append("riskCounts=$riskCounts")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = notes?.hashCode() ?: 0
result = 31 * result + (pillarId?.hashCode() ?: 0)
result = 31 * result + (pillarName?.hashCode() ?: 0)
result = 31 * result + (prioritizedRiskCounts?.hashCode() ?: 0)
result = 31 * result + (riskCounts?.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 PillarReviewSummary
if (notes != other.notes) return false
if (pillarId != other.pillarId) return false
if (pillarName != other.pillarName) return false
if (prioritizedRiskCounts != other.prioritizedRiskCounts) return false
if (riskCounts != other.riskCounts) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.PillarReviewSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The notes associated with the workload.
*/
public var notes: kotlin.String? = 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 name of the pillar.
*/
public var pillarName: kotlin.String? = null
/**
* A map from risk names to the count of how many questions have that rating.
*/
public var prioritizedRiskCounts: Map? = null
/**
* A map from risk names to the count of how many questions have that rating.
*/
public var riskCounts: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.PillarReviewSummary) : this() {
this.notes = x.notes
this.pillarId = x.pillarId
this.pillarName = x.pillarName
this.prioritizedRiskCounts = x.prioritizedRiskCounts
this.riskCounts = x.riskCounts
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.PillarReviewSummary = PillarReviewSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy