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