
commonMain.aws.sdk.kotlin.services.wellarchitected.model.AnswerSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* An answer summary of a lens review in a workload.
*/
public class AnswerSummary private constructor(builder: Builder) {
/**
* A list of selected choices to a question in your workload.
*/
public val choiceAnswerSummaries: List? = builder.choiceAnswerSummaries
/**
* List of choices available for a question.
*/
public val choices: List? = builder.choices
/**
* Defines whether this question is applicable to a lens review.
*/
public val isApplicable: kotlin.Boolean = builder.isApplicable
/**
* The ID used to identify a pillar, for example, `security`.
*
* A pillar is identified by its PillarReviewSummary$PillarId.
*/
public val pillarId: kotlin.String? = builder.pillarId
/**
* The ID of the question.
*/
public val questionId: kotlin.String? = builder.questionId
/**
* The title of the question.
*/
public val questionTitle: kotlin.String? = builder.questionTitle
/**
* The type of the question.
*/
public val questionType: aws.sdk.kotlin.services.wellarchitected.model.QuestionType? = builder.questionType
/**
* The reason why a choice is non-applicable to a question in your workload.
*/
public val reason: aws.sdk.kotlin.services.wellarchitected.model.AnswerReason? = builder.reason
/**
* The risk for a given workload, lens review, pillar, or question.
*/
public val risk: aws.sdk.kotlin.services.wellarchitected.model.Risk? = builder.risk
/**
* List of selected choice IDs in a question answer.
*
* The values entered replace the previously selected choices.
*/
public val selectedChoices: List? = builder.selectedChoices
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.AnswerSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnswerSummary(")
append("choiceAnswerSummaries=$choiceAnswerSummaries,")
append("choices=$choices,")
append("isApplicable=$isApplicable,")
append("pillarId=$pillarId,")
append("questionId=$questionId,")
append("questionTitle=$questionTitle,")
append("questionType=$questionType,")
append("reason=$reason,")
append("risk=$risk,")
append("selectedChoices=$selectedChoices")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = choiceAnswerSummaries?.hashCode() ?: 0
result = 31 * result + (choices?.hashCode() ?: 0)
result = 31 * result + (isApplicable.hashCode())
result = 31 * result + (pillarId?.hashCode() ?: 0)
result = 31 * result + (questionId?.hashCode() ?: 0)
result = 31 * result + (questionTitle?.hashCode() ?: 0)
result = 31 * result + (questionType?.hashCode() ?: 0)
result = 31 * result + (reason?.hashCode() ?: 0)
result = 31 * result + (risk?.hashCode() ?: 0)
result = 31 * result + (selectedChoices?.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 AnswerSummary
if (choiceAnswerSummaries != other.choiceAnswerSummaries) return false
if (choices != other.choices) return false
if (isApplicable != other.isApplicable) return false
if (pillarId != other.pillarId) return false
if (questionId != other.questionId) return false
if (questionTitle != other.questionTitle) return false
if (questionType != other.questionType) return false
if (reason != other.reason) return false
if (risk != other.risk) return false
if (selectedChoices != other.selectedChoices) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.AnswerSummary = Builder(this).apply(block).build()
public class Builder {
/**
* A list of selected choices to a question in your workload.
*/
public var choiceAnswerSummaries: List? = null
/**
* List of choices available for a question.
*/
public var choices: List? = null
/**
* Defines whether this question is applicable to a lens review.
*/
public var isApplicable: kotlin.Boolean = false
/**
* The ID used to identify a pillar, for example, `security`.
*
* A pillar is identified by its PillarReviewSummary$PillarId.
*/
public var pillarId: 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
/**
* The type of the question.
*/
public var questionType: aws.sdk.kotlin.services.wellarchitected.model.QuestionType? = null
/**
* The reason why a choice is non-applicable to a question in your workload.
*/
public var reason: aws.sdk.kotlin.services.wellarchitected.model.AnswerReason? = null
/**
* The risk for a given workload, lens review, pillar, or question.
*/
public var risk: aws.sdk.kotlin.services.wellarchitected.model.Risk? = null
/**
* List of selected choice IDs in a question answer.
*
* The values entered replace the previously selected choices.
*/
public var selectedChoices: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.AnswerSummary) : this() {
this.choiceAnswerSummaries = x.choiceAnswerSummaries
this.choices = x.choices
this.isApplicable = x.isApplicable
this.pillarId = x.pillarId
this.questionId = x.questionId
this.questionTitle = x.questionTitle
this.questionType = x.questionType
this.reason = x.reason
this.risk = x.risk
this.selectedChoices = x.selectedChoices
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.AnswerSummary = AnswerSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy