
commonMain.aws.sdk.kotlin.services.connectcases.model.LayoutSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
/**
* Object for the summarized details of the layout.
*/
public class LayoutSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the layout.
*/
public val layoutArn: kotlin.String = requireNotNull(builder.layoutArn) { "A non-null value must be provided for layoutArn" }
/**
* The unique identifier for 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.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.LayoutSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LayoutSummary(")
append("layoutArn=$layoutArn,")
append("layoutId=$layoutId,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = layoutArn.hashCode()
result = 31 * result + (layoutId.hashCode())
result = 31 * result + (name.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 LayoutSummary
if (layoutArn != other.layoutArn) return false
if (layoutId != other.layoutId) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.LayoutSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the layout.
*/
public var layoutArn: kotlin.String? = null
/**
* The unique identifier for of the layout.
*/
public var layoutId: kotlin.String? = null
/**
* The name of the layout.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.LayoutSummary) : this() {
this.layoutArn = x.layoutArn
this.layoutId = x.layoutId
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.LayoutSummary = LayoutSummary(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