All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.connectcases.model.TemplateSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.connectcases.model



/**
 * Template summary information.
 */
public class TemplateSummary private constructor(builder: Builder) {
    /**
     * The template name.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The status of the template.
     */
    public val status: aws.sdk.kotlin.services.connectcases.model.TemplateStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
    /**
     * The Amazon Resource Name (ARN) of the template.
     */
    public val templateArn: kotlin.String = requireNotNull(builder.templateArn) { "A non-null value must be provided for templateArn" }
    /**
     * The unique identifier for the template.
     */
    public val templateId: kotlin.String = requireNotNull(builder.templateId) { "A non-null value must be provided for templateId" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.TemplateSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("TemplateSummary(")
        append("name=$name,")
        append("status=$status,")
        append("templateArn=$templateArn,")
        append("templateId=$templateId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = name.hashCode()
        result = 31 * result + (status.hashCode())
        result = 31 * result + (templateArn.hashCode())
        result = 31 * result + (templateId.hashCode())
        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 TemplateSummary

        if (name != other.name) return false
        if (status != other.status) return false
        if (templateArn != other.templateArn) return false
        if (templateId != other.templateId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.TemplateSummary = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The template name.
         */
        public var name: kotlin.String? = null
        /**
         * The status of the template.
         */
        public var status: aws.sdk.kotlin.services.connectcases.model.TemplateStatus? = null
        /**
         * The Amazon Resource Name (ARN) of the template.
         */
        public var templateArn: kotlin.String? = null
        /**
         * The unique identifier for the template.
         */
        public var templateId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connectcases.model.TemplateSummary) : this() {
            this.name = x.name
            this.status = x.status
            this.templateArn = x.templateArn
            this.templateId = x.templateId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.connectcases.model.TemplateSummary = TemplateSummary(this)

        internal fun correctErrors(): Builder {
            if (name == null) name = ""
            if (status == null) status = TemplateStatus.SdkUnknown("no value provided")
            if (templateArn == null) templateArn = ""
            if (templateId == null) templateId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy