commonMain.aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateSummary.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary of a review template.
*/
public class ReviewTemplateSummary private constructor(builder: Builder) {
/**
* Description of the review template.
*/
public val description: kotlin.String? = builder.description
/**
* Lenses associated with the review template.
*/
public val lenses: List? = builder.lenses
/**
* An Amazon Web Services account ID.
*/
public val owner: kotlin.String? = builder.owner
/**
* The review template ARN.
*/
public val templateArn: kotlin.String? = builder.templateArn
/**
* The name of the review template.
*/
public val templateName: kotlin.String? = builder.templateName
/**
* The latest status of a review template.
*/
public val updateStatus: aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateUpdateStatus? = builder.updateStatus
/**
* The date and time recorded.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReviewTemplateSummary(")
append("description=$description,")
append("lenses=$lenses,")
append("owner=$owner,")
append("templateArn=$templateArn,")
append("templateName=$templateName,")
append("updateStatus=$updateStatus,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (lenses?.hashCode() ?: 0)
result = 31 * result + (owner?.hashCode() ?: 0)
result = 31 * result + (templateArn?.hashCode() ?: 0)
result = 31 * result + (templateName?.hashCode() ?: 0)
result = 31 * result + (updateStatus?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 ReviewTemplateSummary
if (description != other.description) return false
if (lenses != other.lenses) return false
if (owner != other.owner) return false
if (templateArn != other.templateArn) return false
if (templateName != other.templateName) return false
if (updateStatus != other.updateStatus) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Description of the review template.
*/
public var description: kotlin.String? = null
/**
* Lenses associated with the review template.
*/
public var lenses: List? = null
/**
* An Amazon Web Services account ID.
*/
public var owner: kotlin.String? = null
/**
* The review template ARN.
*/
public var templateArn: kotlin.String? = null
/**
* The name of the review template.
*/
public var templateName: kotlin.String? = null
/**
* The latest status of a review template.
*/
public var updateStatus: aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateUpdateStatus? = null
/**
* The date and time recorded.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateSummary) : this() {
this.description = x.description
this.lenses = x.lenses
this.owner = x.owner
this.templateArn = x.templateArn
this.templateName = x.templateName
this.updateStatus = x.updateStatus
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ReviewTemplateSummary = ReviewTemplateSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy