
commonMain.aws.sdk.kotlin.services.connectcases.model.BasicLayout.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
/**
* Content specific to `BasicLayout` type. It configures fields in the top panel and More Info tab of agent application.
*/
public class BasicLayout private constructor(builder: Builder) {
/**
* This represents sections in a tab of the page layout.
*/
public val moreInfo: aws.sdk.kotlin.services.connectcases.model.LayoutSections? = builder.moreInfo
/**
* This represents sections in a panel of the page layout.
*/
public val topPanel: aws.sdk.kotlin.services.connectcases.model.LayoutSections? = builder.topPanel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.BasicLayout = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BasicLayout(")
append("moreInfo=$moreInfo,")
append("topPanel=$topPanel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = moreInfo?.hashCode() ?: 0
result = 31 * result + (topPanel?.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 BasicLayout
if (moreInfo != other.moreInfo) return false
if (topPanel != other.topPanel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.BasicLayout = Builder(this).apply(block).build()
public class Builder {
/**
* This represents sections in a tab of the page layout.
*/
public var moreInfo: aws.sdk.kotlin.services.connectcases.model.LayoutSections? = null
/**
* This represents sections in a panel of the page layout.
*/
public var topPanel: aws.sdk.kotlin.services.connectcases.model.LayoutSections? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.BasicLayout) : this() {
this.moreInfo = x.moreInfo
this.topPanel = x.topPanel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.BasicLayout = BasicLayout(this)
/**
* construct an [aws.sdk.kotlin.services.connectcases.model.LayoutSections] inside the given [block]
*/
public fun moreInfo(block: aws.sdk.kotlin.services.connectcases.model.LayoutSections.Builder.() -> kotlin.Unit) {
this.moreInfo = aws.sdk.kotlin.services.connectcases.model.LayoutSections.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.connectcases.model.LayoutSections] inside the given [block]
*/
public fun topPanel(block: aws.sdk.kotlin.services.connectcases.model.LayoutSections.Builder.() -> kotlin.Unit) {
this.topPanel = aws.sdk.kotlin.services.connectcases.model.LayoutSections.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy