commonMain.aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswerSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The summary of review template answers.
*/
public class ReviewTemplateAnswerSummary private constructor(builder: Builder) {
/**
* The status of whether or not this question has been answered.
*/
public val answerStatus: aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswerStatus? = builder.answerStatus
/**
* A list of selected choices to a question in the review template.
*/
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 question.
*/
public val questionType: aws.sdk.kotlin.services.wellarchitected.model.QuestionType? = builder.questionType
/**
* The reason why a choice is not-applicable to a question in the review template.
*/
public val reason: aws.sdk.kotlin.services.wellarchitected.model.AnswerReason? = builder.reason
/**
* 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.ReviewTemplateAnswerSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReviewTemplateAnswerSummary(")
append("answerStatus=$answerStatus,")
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("selectedChoices=$selectedChoices")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = answerStatus?.hashCode() ?: 0
result = 31 * result + (choiceAnswerSummaries?.hashCode() ?: 0)
result = 31 * result + (choices?.hashCode() ?: 0)
result = 31 * result + (isApplicable?.hashCode() ?: 0)
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 + (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 ReviewTemplateAnswerSummary
if (answerStatus != other.answerStatus) return false
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 (selectedChoices != other.selectedChoices) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswerSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status of whether or not this question has been answered.
*/
public var answerStatus: aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswerStatus? = null
/**
* A list of selected choices to a question in the review template.
*/
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? = null
/**
* 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 question.
*/
public var questionType: aws.sdk.kotlin.services.wellarchitected.model.QuestionType? = null
/**
* The reason why a choice is not-applicable to a question in the review template.
*/
public var reason: aws.sdk.kotlin.services.wellarchitected.model.AnswerReason? = 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.ReviewTemplateAnswerSummary) : this() {
this.answerStatus = x.answerStatus
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.selectedChoices = x.selectedChoices
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswerSummary = ReviewTemplateAnswerSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy