
commonMain.aws.sdk.kotlin.services.connectcases.model.UpdateLayoutRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class UpdateLayoutRequest private constructor(builder: Builder) {
/**
* Information about which fields will be present in the layout, the order of the fields.
*/
public val content: aws.sdk.kotlin.services.connectcases.model.LayoutContent? = builder.content
/**
* The unique identifier of the Cases domain.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* 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 per domain.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.UpdateLayoutRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateLayoutRequest(")
append("content=$content,")
append("domainId=$domainId,")
append("layoutId=$layoutId,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * result + (domainId.hashCode())
result = 31 * result + (layoutId.hashCode())
result = 31 * result + (name?.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 UpdateLayoutRequest
if (content != other.content) return false
if (domainId != other.domainId) 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.UpdateLayoutRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Information about which fields will be present in the layout, the order of the fields.
*/
public var content: aws.sdk.kotlin.services.connectcases.model.LayoutContent? = null
/**
* The unique identifier of the Cases domain.
*/
public var domainId: kotlin.String? = null
/**
* The unique identifier of the layout.
*/
public var layoutId: kotlin.String? = null
/**
* The name of the layout. It must be unique per domain.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.UpdateLayoutRequest) : this() {
this.content = x.content
this.domainId = x.domainId
this.layoutId = x.layoutId
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.UpdateLayoutRequest = UpdateLayoutRequest(this)
internal fun correctErrors(): Builder {
if (domainId == null) domainId = ""
if (layoutId == null) layoutId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy