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