
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ProfileQuestionUpdate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* An update to a profile question.
*/
public class ProfileQuestionUpdate private constructor(builder: Builder) {
/**
* The ID of the question.
*/
public val questionId: kotlin.String? = builder.questionId
/**
* The selected choices.
*/
public val selectedChoiceIds: List? = builder.selectedChoiceIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ProfileQuestionUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileQuestionUpdate(")
append("questionId=$questionId,")
append("selectedChoiceIds=$selectedChoiceIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = questionId?.hashCode() ?: 0
result = 31 * result + (selectedChoiceIds?.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 ProfileQuestionUpdate
if (questionId != other.questionId) return false
if (selectedChoiceIds != other.selectedChoiceIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ProfileQuestionUpdate = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the question.
*/
public var questionId: kotlin.String? = null
/**
* The selected choices.
*/
public var selectedChoiceIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ProfileQuestionUpdate) : this() {
this.questionId = x.questionId
this.selectedChoiceIds = x.selectedChoiceIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ProfileQuestionUpdate = ProfileQuestionUpdate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy