
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplateQuestion.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* A profile template question.
*/
public class ProfileTemplateQuestion private constructor(builder: Builder) {
/**
* The maximum number of choices selected.
*/
public val maxSelectedChoices: kotlin.Int = builder.maxSelectedChoices
/**
* The minimum number of choices selected.
*/
public val minSelectedChoices: kotlin.Int = builder.minSelectedChoices
/**
* The question choices.
*/
public val questionChoices: List? = builder.questionChoices
/**
* The description of the question.
*/
public val questionDescription: kotlin.String? = builder.questionDescription
/**
* 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.ProfileTemplateQuestion = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileTemplateQuestion(")
append("maxSelectedChoices=$maxSelectedChoices,")
append("minSelectedChoices=$minSelectedChoices,")
append("questionChoices=$questionChoices,")
append("questionDescription=$questionDescription,")
append("questionId=$questionId,")
append("questionTitle=$questionTitle")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxSelectedChoices
result = 31 * result + (minSelectedChoices)
result = 31 * result + (questionChoices?.hashCode() ?: 0)
result = 31 * result + (questionDescription?.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 ProfileTemplateQuestion
if (maxSelectedChoices != other.maxSelectedChoices) return false
if (minSelectedChoices != other.minSelectedChoices) return false
if (questionChoices != other.questionChoices) return false
if (questionDescription != other.questionDescription) 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.ProfileTemplateQuestion = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum number of choices selected.
*/
public var maxSelectedChoices: kotlin.Int = 0
/**
* The minimum number of choices selected.
*/
public var minSelectedChoices: kotlin.Int = 0
/**
* The question choices.
*/
public var questionChoices: List? = null
/**
* The description of the question.
*/
public var questionDescription: kotlin.String? = 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.ProfileTemplateQuestion) : this() {
this.maxSelectedChoices = x.maxSelectedChoices
this.minSelectedChoices = x.minSelectedChoices
this.questionChoices = x.questionChoices
this.questionDescription = x.questionDescription
this.questionId = x.questionId
this.questionTitle = x.questionTitle
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplateQuestion = ProfileTemplateQuestion(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy