
commonMain.aws.sdk.kotlin.services.wellarchitected.model.CheckSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Trusted Advisor check summary.
*/
public class CheckSummary private constructor(builder: Builder) {
/**
* Account summary associated to the check.
*/
public val accountSummary: Map? = builder.accountSummary
/**
* The ID of a choice.
*/
public val choiceId: kotlin.String? = builder.choiceId
/**
* Trusted Advisor check description.
*/
public val description: kotlin.String? = builder.description
/**
* Trusted Advisor check ID.
*/
public val id: kotlin.String? = builder.id
/**
* Well-Architected Lens ARN associated to the check.
*/
public val lensArn: kotlin.String? = builder.lensArn
/**
* Trusted Advisor check name.
*/
public val name: kotlin.String? = builder.name
/**
* 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
/**
* Provider of the check related to the best practice.
*/
public val provider: aws.sdk.kotlin.services.wellarchitected.model.CheckProvider? = builder.provider
/**
* The ID of the question.
*/
public val questionId: kotlin.String? = builder.questionId
/**
* Status associated to the check.
*/
public val status: aws.sdk.kotlin.services.wellarchitected.model.CheckStatus? = builder.status
/**
* The date and time recorded.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.CheckSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CheckSummary(")
append("accountSummary=$accountSummary,")
append("choiceId=$choiceId,")
append("description=$description,")
append("id=$id,")
append("lensArn=$lensArn,")
append("name=$name,")
append("pillarId=$pillarId,")
append("provider=$provider,")
append("questionId=$questionId,")
append("status=$status,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountSummary?.hashCode() ?: 0
result = 31 * result + (choiceId?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lensArn?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (pillarId?.hashCode() ?: 0)
result = 31 * result + (provider?.hashCode() ?: 0)
result = 31 * result + (questionId?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 CheckSummary
if (accountSummary != other.accountSummary) return false
if (choiceId != other.choiceId) return false
if (description != other.description) return false
if (id != other.id) return false
if (lensArn != other.lensArn) return false
if (name != other.name) return false
if (pillarId != other.pillarId) return false
if (provider != other.provider) return false
if (questionId != other.questionId) return false
if (status != other.status) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.CheckSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Account summary associated to the check.
*/
public var accountSummary: Map? = null
/**
* The ID of a choice.
*/
public var choiceId: kotlin.String? = null
/**
* Trusted Advisor check description.
*/
public var description: kotlin.String? = null
/**
* Trusted Advisor check ID.
*/
public var id: kotlin.String? = null
/**
* Well-Architected Lens ARN associated to the check.
*/
public var lensArn: kotlin.String? = null
/**
* Trusted Advisor check name.
*/
public var name: 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
/**
* Provider of the check related to the best practice.
*/
public var provider: aws.sdk.kotlin.services.wellarchitected.model.CheckProvider? = null
/**
* The ID of the question.
*/
public var questionId: kotlin.String? = null
/**
* Status associated to the check.
*/
public var status: aws.sdk.kotlin.services.wellarchitected.model.CheckStatus? = null
/**
* The date and time recorded.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.CheckSummary) : this() {
this.accountSummary = x.accountSummary
this.choiceId = x.choiceId
this.description = x.description
this.id = x.id
this.lensArn = x.lensArn
this.name = x.name
this.pillarId = x.pillarId
this.provider = x.provider
this.questionId = x.questionId
this.status = x.status
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.CheckSummary = CheckSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy