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

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

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

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



public class GetLayoutResponse private constructor(builder: Builder) {
    /**
     * Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field.
     */
    public val content: aws.sdk.kotlin.services.connectcases.model.LayoutContent? = builder.content
    /**
     * The Amazon Resource Name (ARN) of the newly created layout.
     */
    public val layoutArn: kotlin.String = requireNotNull(builder.layoutArn) { "A non-null value must be provided for layoutArn" }
    /**
     * The unique identifier of the layout.
     */
    public val layoutId: kotlin.String = requireNotNull(builder.layoutId) { "A non-null value must be provided for layoutId" }
    /**
     * The name of the layout. It must be unique.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("GetLayoutResponse(")
        append("content=$content,")
        append("layoutArn=$layoutArn,")
        append("layoutId=$layoutId,")
        append("name=$name,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = content?.hashCode() ?: 0
        result = 31 * result + (layoutArn.hashCode())
        result = 31 * result + (layoutId.hashCode())
        result = 31 * result + (name.hashCode())
        result = 31 * result + (tags?.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 GetLayoutResponse

        if (content != other.content) return false
        if (layoutArn != other.layoutArn) return false
        if (layoutId != other.layoutId) return false
        if (name != other.name) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field.
         */
        public var content: aws.sdk.kotlin.services.connectcases.model.LayoutContent? = null
        /**
         * The Amazon Resource Name (ARN) of the newly created layout.
         */
        public var layoutArn: kotlin.String? = null
        /**
         * The unique identifier of the layout.
         */
        public var layoutId: kotlin.String? = null
        /**
         * The name of the layout. It must be unique.
         */
        public var name: kotlin.String? = null
        /**
         * A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connectcases.model.GetLayoutResponse) : this() {
            this.content = x.content
            this.layoutArn = x.layoutArn
            this.layoutId = x.layoutId
            this.name = x.name
            this.tags = x.tags
        }

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

        internal fun correctErrors(): Builder {
            if (layoutArn == null) layoutArn = ""
            if (layoutId == null) layoutId = ""
            if (name == null) name = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy