
commonMain.aws.sdk.kotlin.services.connectcases.model.CreateLayoutResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class CreateLayoutResponse private constructor(builder: Builder) {
/**
* 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" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.CreateLayoutResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateLayoutResponse(")
append("layoutArn=$layoutArn,")
append("layoutId=$layoutId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = layoutArn.hashCode()
result = 31 * result + (layoutId.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 CreateLayoutResponse
if (layoutArn != other.layoutArn) return false
if (layoutId != other.layoutId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.CreateLayoutResponse = Builder(this).apply(block).build()
public class Builder {
/**
* 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.CreateLayoutResponse) : this() {
this.layoutArn = x.layoutArn
this.layoutId = x.layoutId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.CreateLayoutResponse = CreateLayoutResponse(this)
internal fun correctErrors(): Builder {
if (layoutArn == null) layoutArn = ""
if (layoutId == null) layoutId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy