
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ChoiceImprovementPlan.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* The choice level improvement plan.
*/
public class ChoiceImprovementPlan private constructor(builder: Builder) {
/**
* The ID of a choice.
*/
public val choiceId: kotlin.String? = builder.choiceId
/**
* The display text for the improvement plan.
*/
public val displayText: kotlin.String? = builder.displayText
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ChoiceImprovementPlan = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChoiceImprovementPlan(")
append("choiceId=$choiceId,")
append("displayText=$displayText,")
append("improvementPlanUrl=$improvementPlanUrl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = choiceId?.hashCode() ?: 0
result = 31 * result + (displayText?.hashCode() ?: 0)
result = 31 * result + (improvementPlanUrl?.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 ChoiceImprovementPlan
if (choiceId != other.choiceId) return false
if (displayText != other.displayText) return false
if (improvementPlanUrl != other.improvementPlanUrl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ChoiceImprovementPlan = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of a choice.
*/
public var choiceId: kotlin.String? = null
/**
* The display text for the improvement plan.
*/
public var displayText: 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ChoiceImprovementPlan) : this() {
this.choiceId = x.choiceId
this.displayText = x.displayText
this.improvementPlanUrl = x.improvementPlanUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ChoiceImprovementPlan = ChoiceImprovementPlan(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy