
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ChoiceUpdate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* A list of choices to be updated.
*/
public class ChoiceUpdate private constructor(builder: Builder) {
/**
* 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.ChoiceUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChoiceUpdate(")
append("notes=$notes,")
append("reason=$reason,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 ChoiceUpdate
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.ChoiceUpdate = Builder(this).apply(block).build()
public class Builder {
/**
* 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.ChoiceUpdate) : this() {
this.notes = x.notes
this.reason = x.reason
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ChoiceUpdate = ChoiceUpdate(this)
internal fun correctErrors(): Builder {
if (status == null) status = ChoiceStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy