
commonMain.aws.sdk.kotlin.services.wellarchitected.model.PillarMetric.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* A metric for a particular pillar in a lens.
*/
public class PillarMetric private constructor(builder: Builder) {
/**
* 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 questions that have been identified as risks in the pillar.
*/
public val questions: List? = builder.questions
/**
* 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.PillarMetric = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PillarMetric(")
append("pillarId=$pillarId,")
append("questions=$questions,")
append("riskCounts=$riskCounts")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pillarId?.hashCode() ?: 0
result = 31 * result + (questions?.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 PillarMetric
if (pillarId != other.pillarId) return false
if (questions != other.questions) return false
if (riskCounts != other.riskCounts) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.PillarMetric = Builder(this).apply(block).build()
public class Builder {
/**
* 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 questions that have been identified as risks in the pillar.
*/
public var questions: List? = 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.PillarMetric) : this() {
this.pillarId = x.pillarId
this.questions = x.questions
this.riskCounts = x.riskCounts
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.PillarMetric = PillarMetric(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy