
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate.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.time.Instant
/**
* The profile template.
*/
public class ProfileTemplate private constructor(builder: Builder) {
/**
* The date and time recorded.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The name of the profile template.
*/
public val templateName: kotlin.String? = builder.templateName
/**
* Profile template questions.
*/
public val templateQuestions: List? = builder.templateQuestions
/**
* 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.ProfileTemplate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileTemplate(")
append("createdAt=$createdAt,")
append("templateName=$templateName,")
append("templateQuestions=$templateQuestions,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (templateName?.hashCode() ?: 0)
result = 31 * result + (templateQuestions?.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 ProfileTemplate
if (createdAt != other.createdAt) return false
if (templateName != other.templateName) return false
if (templateQuestions != other.templateQuestions) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate = Builder(this).apply(block).build()
public class Builder {
/**
* The date and time recorded.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the profile template.
*/
public var templateName: kotlin.String? = null
/**
* Profile template questions.
*/
public var templateQuestions: List? = 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.ProfileTemplate) : this() {
this.createdAt = x.createdAt
this.templateName = x.templateName
this.templateQuestions = x.templateQuestions
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ProfileTemplate = ProfileTemplate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy