commonMain.aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswer.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
/**
* An answer of the question.
*/
public class ReviewTemplateAnswer 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 your review template.
*/
public val choiceAnswers: List? = builder.choiceAnswers
/**
* List of choices available for a question.
*/
public val choices: List? = builder.choices
/**
* The helpful resource text to be displayed for a custom lens.
*
* This field does not apply to Amazon Web Services official lenses.
*/
public val helpfulResourceDisplayText: kotlin.String? = builder.helpfulResourceDisplayText
/**
* The helpful resource URL.
*
* For Amazon Web Services official lenses, this is the helpful resource URL for a question or choice.
*
* For custom lenses, this is the helpful resource URL for a question and is only provided if `HelpfulResourceDisplayText` was specified for the question.
*/
public val helpfulResourceUrl: kotlin.String? = builder.helpfulResourceUrl
/**
* The improvement plan URL for a question in an Amazon Web Services official lenses.
*
* This value is only available if the question has been answered.
*
* This value does not apply to custom lenses.
*/
public val improvementPlanUrl: kotlin.String? = builder.improvementPlanUrl
/**
* Defines whether this question is applicable to a lens review.
*/
public val isApplicable: kotlin.Boolean? = builder.isApplicable
/**
* The notes associated with the workload.
*
* For a review template, these are the notes that will be associated with the workload when the template is applied.
*/
public val notes: kotlin.String? = builder.notes
/**
* 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 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
/**
* The reason why the question is not applicable to your 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.ReviewTemplateAnswer = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReviewTemplateAnswer(")
append("answerStatus=$answerStatus,")
append("choiceAnswers=$choiceAnswers,")
append("choices=$choices,")
append("helpfulResourceDisplayText=$helpfulResourceDisplayText,")
append("helpfulResourceUrl=$helpfulResourceUrl,")
append("improvementPlanUrl=$improvementPlanUrl,")
append("isApplicable=$isApplicable,")
append("notes=$notes,")
append("pillarId=$pillarId,")
append("questionDescription=$questionDescription,")
append("questionId=$questionId,")
append("questionTitle=$questionTitle,")
append("reason=$reason,")
append("selectedChoices=$selectedChoices")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = answerStatus?.hashCode() ?: 0
result = 31 * result + (choiceAnswers?.hashCode() ?: 0)
result = 31 * result + (choices?.hashCode() ?: 0)
result = 31 * result + (helpfulResourceDisplayText?.hashCode() ?: 0)
result = 31 * result + (helpfulResourceUrl?.hashCode() ?: 0)
result = 31 * result + (improvementPlanUrl?.hashCode() ?: 0)
result = 31 * result + (isApplicable?.hashCode() ?: 0)
result = 31 * result + (notes?.hashCode() ?: 0)
result = 31 * result + (pillarId?.hashCode() ?: 0)
result = 31 * result + (questionDescription?.hashCode() ?: 0)
result = 31 * result + (questionId?.hashCode() ?: 0)
result = 31 * result + (questionTitle?.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 ReviewTemplateAnswer
if (answerStatus != other.answerStatus) return false
if (choiceAnswers != other.choiceAnswers) return false
if (choices != other.choices) return false
if (helpfulResourceDisplayText != other.helpfulResourceDisplayText) return false
if (helpfulResourceUrl != other.helpfulResourceUrl) return false
if (improvementPlanUrl != other.improvementPlanUrl) return false
if (isApplicable != other.isApplicable) return false
if (notes != other.notes) return false
if (pillarId != other.pillarId) return false
if (questionDescription != other.questionDescription) return false
if (questionId != other.questionId) return false
if (questionTitle != other.questionTitle) 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.ReviewTemplateAnswer = 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 your review template.
*/
public var choiceAnswers: List? = null
/**
* List of choices available for a question.
*/
public var choices: List? = null
/**
* The helpful resource text to be displayed for a custom lens.
*
* This field does not apply to Amazon Web Services official lenses.
*/
public var helpfulResourceDisplayText: kotlin.String? = null
/**
* The helpful resource URL.
*
* For Amazon Web Services official lenses, this is the helpful resource URL for a question or choice.
*
* For custom lenses, this is the helpful resource URL for a question and is only provided if `HelpfulResourceDisplayText` was specified for the question.
*/
public var helpfulResourceUrl: kotlin.String? = null
/**
* The improvement plan URL for a question in an Amazon Web Services official lenses.
*
* This value is only available if the question has been answered.
*
* This value does not apply to custom lenses.
*/
public var improvementPlanUrl: kotlin.String? = null
/**
* Defines whether this question is applicable to a lens review.
*/
public var isApplicable: kotlin.Boolean? = null
/**
* The notes associated with the workload.
*
* For a review template, these are the notes that will be associated with the workload when the template is applied.
*/
public var notes: kotlin.String? = 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 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
/**
* The reason why the question is not applicable to your 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.ReviewTemplateAnswer) : this() {
this.answerStatus = x.answerStatus
this.choiceAnswers = x.choiceAnswers
this.choices = x.choices
this.helpfulResourceDisplayText = x.helpfulResourceDisplayText
this.helpfulResourceUrl = x.helpfulResourceUrl
this.improvementPlanUrl = x.improvementPlanUrl
this.isApplicable = x.isApplicable
this.notes = x.notes
this.pillarId = x.pillarId
this.questionDescription = x.questionDescription
this.questionId = x.questionId
this.questionTitle = x.questionTitle
this.reason = x.reason
this.selectedChoices = x.selectedChoices
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateAnswer = ReviewTemplateAnswer(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy