
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ChoiceAnswer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* A choice that has been answered on a question in your workload.
*/
public class ChoiceAnswer private constructor(builder: Builder) {
/**
* The ID of a choice.
*/
public val choiceId: kotlin.String? = builder.choiceId
/**
* The notes associated with a choice.
*/
public val notes: kotlin.String? = builder.notes
/**
* The reason why a choice is non-applicable to a question in your workload.
*/
public val reason: aws.sdk.kotlin.services.wellarchitected.model.ChoiceReason? = builder.reason
/**
* The status of a choice.
*/
public val status: aws.sdk.kotlin.services.wellarchitected.model.ChoiceStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ChoiceAnswer = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChoiceAnswer(")
append("choiceId=$choiceId,")
append("notes=$notes,")
append("reason=$reason,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = choiceId?.hashCode() ?: 0
result = 31 * result + (notes?.hashCode() ?: 0)
result = 31 * result + (reason?.hashCode() ?: 0)
result = 31 * result + (status?.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 ChoiceAnswer
if (choiceId != other.choiceId) return false
if (notes != other.notes) return false
if (reason != other.reason) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ChoiceAnswer = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of a choice.
*/
public var choiceId: kotlin.String? = null
/**
* The notes associated with a choice.
*/
public var notes: kotlin.String? = null
/**
* The reason why a choice is non-applicable to a question in your workload.
*/
public var reason: aws.sdk.kotlin.services.wellarchitected.model.ChoiceReason? = null
/**
* The status of a choice.
*/
public var status: aws.sdk.kotlin.services.wellarchitected.model.ChoiceStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ChoiceAnswer) : this() {
this.choiceId = x.choiceId
this.notes = x.notes
this.reason = x.reason
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ChoiceAnswer = ChoiceAnswer(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy