
commonMain.aws.sdk.kotlin.services.wellarchitected.model.NotificationSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* A notification summary return object.
*/
public class NotificationSummary private constructor(builder: Builder) {
/**
* Summary of lens upgrade.
*/
public val lensUpgradeSummary: aws.sdk.kotlin.services.wellarchitected.model.LensUpgradeSummary? = builder.lensUpgradeSummary
/**
* The type of notification.
*/
public val type: aws.sdk.kotlin.services.wellarchitected.model.NotificationType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.NotificationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NotificationSummary(")
append("lensUpgradeSummary=$lensUpgradeSummary,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lensUpgradeSummary?.hashCode() ?: 0
result = 31 * result + (type?.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 NotificationSummary
if (lensUpgradeSummary != other.lensUpgradeSummary) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.NotificationSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Summary of lens upgrade.
*/
public var lensUpgradeSummary: aws.sdk.kotlin.services.wellarchitected.model.LensUpgradeSummary? = null
/**
* The type of notification.
*/
public var type: aws.sdk.kotlin.services.wellarchitected.model.NotificationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.NotificationSummary) : this() {
this.lensUpgradeSummary = x.lensUpgradeSummary
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.NotificationSummary = NotificationSummary(this)
/**
* construct an [aws.sdk.kotlin.services.wellarchitected.model.LensUpgradeSummary] inside the given [block]
*/
public fun lensUpgradeSummary(block: aws.sdk.kotlin.services.wellarchitected.model.LensUpgradeSummary.Builder.() -> kotlin.Unit) {
this.lensUpgradeSummary = aws.sdk.kotlin.services.wellarchitected.model.LensUpgradeSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy